From: Luke O. <lu...@me...> - 2004-05-19 07:22:54
|
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. |