On Fri, 2008-01-25 at 09:26 -0800, noodyn wrote: > Hi, > i'm trying to add users without using catwalk and without shell, just > code. > so what i'm trying: (adduser_func is called by a form) > > def adduser_func(self, name="", passwd="", email="none", > group=""): > from model import Group > user = model.User(user_name=name, password=passwd, > email_address=email) > g=Group.select(group) > g.addUser(user)
> but the error in adduser_func: > g.addUser(user) > AttributeError: 'SelectResults' object has no attribute 'addUser' user = model.User(user_name=name, password=passwd, email_address=email) user.addGroup(group) cheers, C. -- Christopher R. Gabriel Truelite Srl [EMAIL PROTECTED] (email/jabber) Via Monferrato, 6 http://www.truelite.it/ 50142 Firenze Office. +39-055-7879597 ext. 102 Fax. +39-055-7333336 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

