Adding a user to a group...

3 views
Skip to first unread message

sams...@gmail.com

unread,
Jul 23, 2008, 3:12:30 AM7/23/08
to TurboGears
Under TG 1.0.5 I'd like to add a user to a group from inside my
application.

Seems like it should be easy, right? Just stuff it right into the
user_group table.

But for some reason the user_group table isn't defined directly in my
model.py. Why is that?

The shell has a function named addUser for SQLObject. But even with
the help of rgrep, I can't find where that is defined.

So how do I easily add a user to a group?

Diez B. Roggisch

unread,
Jul 23, 2008, 3:58:06 AM7/23/08
to turbo...@googlegroups.com
sams...@gmail.com schrieb:

Please read the documentation of SQLObject, especially for many to many
relationships:

http://www.sqlobject.org/SQLObject.html#many-to-many-relationships

Diez

Reply all
Reply to author
Forward
0 new messages