> Should not be necessary - it works for me without any dirty hacks.
>
> In a quickstarted project I changed Permission.groups to
> groups = dynamic_loader(Group, secondary=group_permission_table)
> and then the following just worked:
>
>     @expose()
>     def insert_a_record(self):
>         p = DBSession.query(Permission).get(1)
>         g = DBSession.query(Group).get(1)
>         p.groups.append(g)
>         return "Successful!"
>
> Tested with SA 0.5.4 and zope.sa 0.4.

I had tested it with SA 0.5.1 etc., the default that comes with TG2
rc1, and dirtying was necessary. Will try with TG latest version...

thanks,
Sanjay

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to