"goff" <[EMAIL PROTECTED]> writes:

Greetings,
 I have to classes (User & Group), glued together with a RelatedJoin.
I also got the intermidateTable 'user_group' as a separate class to
have DELETE ON CASCADE. Now I want to restrict the user.addGroup and
group.addUser functions so that certain checks are applied to one both
objects. For example I want to enforce that only users starting with an
"A" are allowed to become members of the Administrator group, just
because my name does. How would I do that?

You write the logic of your application in your controller.  There you'd check
the user's name and group name.  If your rules are satisfied you add the
record to the database.

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