Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1503 (closed task: fixed)

Opened 12 years ago

Last modified 12 years ago

SQL Alchemy Objects are not automatic saved anymore

Reported by: ivolooser Owned by: anonymous
Priority: normal Milestone: 1.0.4
Component: TurboGears Version: 1.0.3
Severity: normal Keywords:


Since i test using Turbogears 1.0.4Beta i have to add session.save(g) to all my Save methods.

Version 1.0.3

 def saveadd(self, *args, **kwargs): 
         group = Group( 
               group_name = kwargs['group_name'], 
               display_name = kwargs['display_name'] 
         raise turbogears.redirect("/group/") 

Version 1.0.4Beta

def saveadd(self, *args, **kwargs): 
         group = Group() 
         group.group_name = kwargs['group_name'] 
         group.display_name = kwargs['display_name'] 
         raise turbogears.redirect("/group/") 

It whould be easier enable autosave the like before.

Change History

comment:1 Changed 12 years ago by faide

  • Status changed from new to closed
  • Resolution set to fixed

This is fixed in the SVN and thus will be included in the b3

Note: See TracTickets for help on using tickets.