Hello.
> tg-admin quickstart --sqlalchemy -i teste
[...]
> tg-admin sql create
[...]
> tg-admin shell
>>> g = Group(group_name = 'teste', display_name = 'Teste')
>>> g
<teste.model.Group object at 0xb726ad4c>
>>> x = User(user_name = 'ni', display_name = 'the knight')
>>> x
<teste.model.User object at 0xb726adec>
>>> x.groups
Traceback (most recent call last):
File "<console>", line 1, in ?
AttributeError: 'User' object has no attribute 'groups'
>>> x.relations
{'groups': <sqlalchemy.ext.activemapper.many_to_many object at 0xb725326c>}
>>> ^d
Okay, I must have skipped some important part of the ActiveMapper
Crash Course, even it being just one snippet of code :), but are not
those relations supposed to work?
And after dealing with 4 different models and discovering that I have
to manually create the (what, 8?) relation tables to the many_to_many
stuff, I'm tempted to try the apparently savior TurboEntity, but:
1) Visit/Identity is working ok with TEntitity? For all I'm seeing,
it's almost similar to SQLObject...
2) Has anyone tested TEntitity in any stress situation?
Thanks for any help...
[]s
core
http://core.eti.br
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---