class User(Storage): def __init__(id):
self.userrow=db.query('select * from users where id= $self._id',vars=locals())[0]
for k in self.userrow.keys():setattr(self,k,self.userrow[k]) #self.k=self.userrow[k] both setattra and self.k = self.userrow methods are not working after inheriting from storage >>> j. j.__class__ j.__gt__ j.__repr__ j.getliveuserrow j.popitem j.__cmp__ j.__hash__ j.__setattr__ j.getphotos j.publishfeed j.__contains__ j.__init__ j.__setitem__ j.getuserrow j.save j.__delattr__ j.__iter__ j.__str__ j.has_key j.setdefault j.__delitem__ j.__le__ j.__weakref__ j.items j.setlastlogin j.__dict__ j.__len__ j.clear j.iteritems j.setlastlogin300 j.__doc__ j.__lt__ j.copy j.iterkeys j.update j.__eq__ j.__module__ j.fromkeys j.itervalues j.values j.__ge__ j.__ne__ j.get j.keys j.__getattr__ j.__new__ j.getfeeds j.kissallfriends j.__getattribute__ j.__reduce__ j.getfriends j.pokeallfriends j.__getitem__ j.__reduce_ex__ j.getlastloginstr j.pop without Storage class User: all the column elements are accessible as j.htmlcodes j.first_name and so on j. j.__class__ j.hotmail j.number_userpics j.__doc__ j.htmlcodes j.number_uservideos j.__init__ j.id j.number_votes j.__module__ j.interests j.pageviews j.aim j.ip j.password j.books j.kissallfriends j.pokeallfriends j.city j.last_login j.profilepic j.created j.last_name j.publishfeed j.dob j.liketomeet j.rating j.email j.movies j.rawpassword j.email_subscribe j.music j.save j.favoritestuff j.myrand j.setlastlogin j.first_name j.number_activities j.setlastlogin300 j.gender j.number_comments j.site j.getfeeds j.number_communities j.skype j.getfriends j.number_friends j.television j.getlastloginstr j.number_pages j.userid j.getliveuserrow j.number_pictures j.username j.getphotos j.number_polls j.userrow j.getuserrow j.number_posts j.validuser j.groups j.number_useraudios j.vanity j.hash j.number_usermessages j.yahoo j.heroes j.number_usermessages_sent j.zip Brent Pedersen wrote: i think you have it all, just have User be inherit from Storage: --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~--- |
- [webpy] preparing local variables of class user using db.li... Paul
- [webpy] Re: preparing local variables of class user us... Brent Pedersen
- [webpy] Re: preparing local variables of class use... Paul Jobs
- [webpy] Re: preparing local variables of class use... Paul Jobs
- [webpy] Re: preparing local variables of class... Brent Pedersen
- [webpy] Re: preparing local variables of c... paul jobs
- [webpy] Re: preparing local variables... Brent Pedersen
