On Mar 29, 11:35 am, "Riddler" <[EMAIL PROTECTED]> wrote:
> ... Guys,
>
> @classmethod
> def save(self):
> session = create_session()
> session.save(self)
> DBObj.session.flush()
> self.isRecordExist = True
> ...
save() should not be a class method, since the "self" argument is the
class not the instance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---