From: Eduardo E. <eel...@na...> - 2004-05-19 14:53:02
|
Oops. I downloaded the 0.6 docs with the 0.5 tar.gz. Thank you, guys. Ed. Luke Opperman wrote: > in the 0.6/SVN branch, SysUser.get(id) exists (API change/addition), but > SysUser(id) will still work. (Ian, is this planned to be deprecated? I'm > trying to recall the implications of this API change - was > _init/construction > intended to be used to replace .new(), and get() the preferred way to > retrieve > existing objects?) > > if you are using 0.5.x, then Oleg's answer below is correct. > > - Luke > >>> >>> How can I load an existing instance? >> >> >>>>> u = SysUser(1) # just so simple ;) >> >> >> or, using your alternateID: >> >>>>> u = SysUser.byName("Eduardo") >> >> >> Oleg. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click |