"goff" <[EMAIL PROTECTED]> writes:

Ok,
 do I get this right: SQLObject makes it dead easy to create join
tables and to add entries to them, but as soon as I want to remove
entries implictly by removing one of the referenced rows I am on my
own?

I gather that instead of
     Group.delete(group1.id)
I should rather write something like:
     for user in group1.users: group1.removeUser(user)
     for perm in group1.permissions: group1.removePermission(perm)
because of RelatedJoin's lack of cascade support?

And all this because I just want to use the default turbogears.identity
framework as generated by 'tg-admin quickstart -i' ?

... this just doesnt feel right ...

I have the same opinion.  This is why I always add an ON DELETE CASCADE / ON
DELETE RESTRICT clause to those tables.  :-)

--
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
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