From: Eduardo E. <eel...@na...> - 2004-05-18 22:16:21
|
Hi All, >>> from SQLObject import * >>> __connection__ = MySQLConnection(name = 'system_conn', user = 'user', passwd = 'pass', host = 'host', db = 'db', debug = True) >>> class SysUser (SQLObject): ... name = StringCol(length=10, alternateID=True) ... >>> u = SysUser.get(1) Traceback (most recent call last): File "<stdin>", line 1, in ? AttributeError: type object 'SysUser' has no attribute 'get' How can I load an existing instance? TIA. Ed. |