It fails with fields of date. It shows:
created_at=*datetime.datetime(2008, 7, 13, 13, 59, 57)*
On Jun 21, 7:25 pm, Michael Bayer <[EMAIL PROTECTED]> wrote:
> that __repr__ is pretty tortured too; a typical ORM-agnostic approach
> is:
>
> def __repr__(self):
> return "%s(%s)" % (
> (self.__class__.__name__),
> ', '.join(["%s=%r" % (key, getattr(self, key))
> for key in sorted(self.__dict__.keys())
> if not key.startswith('_')]))
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---