From: Michel T. <mic...@ya...> - 2004-10-14 05:11:57
|
Hi guys! I recently faced some problems with RelatedJoin, he is droping the attribute name I use and using another, the class method added by a s. I like to make programs in my language, the plural form is not made this way, and in english it isn't sometimes too. ----- from sqlobject import * CONNECTION='a connection string' class Person(SQLObject): _connection=CONNECTION name=StringCol() roles=RelatedJoin('Role') class Role(SQLObject): _connection=CONNECTION description=StringCol() people=RelatedJoin('Person') if __name__=='__main__': Person.createTable() Role.createTable() p=Person(name='person test') r=Role(description='role test') p.addRole(r) p.roles # ok r.persons # ok r.people # ops ---- I upgraded the version last saturday, I used the site package 0.6, the old one was 0.6 too, but from svn... Is this a bug or this is the correct way of work now? thanks for attention! ===== -- Michel Thadeu Sabchuk Curitiba/PR _______________________________________________________ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/ |