Dear sqlobject-discuss,
i have problem with initiating class definition for an already
existing tables.
this is a mysql database
here is my class definition:
class ts_user(SQLObject):
class sqlmeta:
table="ts_user"
idName="username"
idType=str
fromDatabase=True
but it makes an assertionerror requesting to specify forceDBName
= True argument for every column.
is there a way to overcome this requirements?
of course if i specify fromDatabase=True i would expect to
automatically get the field definitions
strange is that on another computer the code is working well
(without defining every column)
sqlobject version is 0.7.0 py version is 2.4.2
--
Best regards,
Ivan Horvath
Chief Programmer
Alcatel ISD
PMS 2000 Product Team
H-1116, Budapest
Kondorfa u. 10.
Tel.: +36 1 209 9546
Fax.: +36 1 209 9599
Mobil: +36 30 257 0235
VOIP: +49 511 676 478010
mailto:[EMAIL PROTECTED]
Anyone who has never made a mistake has never tried anything new.
/Albert Einstein/
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss