Ji Zhang
unread,Oct 23, 2012, 10:28:03 AM10/23/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlal...@googlegroups.com
Hi,
I need to mapper a class to table which contains a dynamic table name like tbl_data_20121023. When writing the __repr__ method, I want to print out the mapped table name. How to do that?
def __repr__(self):
return '<%s: %s %s>' % (self.???tablename???, self.field1, self.field2)
Thanks.