Hi,
Im using sqlobject 0.7.1b1
My testclass is:
class TestObject(sqlobject.SQLObject):
class sqlmeta:
idName = "Test_Id"
style = sqlobject.MixedCaseStyle(longID=True)
table = "Test"
fromDatabase=True
sqlobject.SQLObject._connection.debug=True
My testsript:
result = TestObject.get(1)
Concerning the debug message, sqlobject finds the other columns:
##############################################################################################################
1/COMMIT : auto
1/QueryOne: SELECT Test_Id, Method_Name, Method_Description, Name FROM Test WHERE Test_Id = (1)
1/QueryR : SELECT Test_Id, Method_Name, Method_Description, Name FROM Test WHERE Test_Id = (1)
1/COMMIT : auto
##############################################################################################################
But if i try to get access to an attribute:
print "foo:" + str(result.Name)
I get the errormessage:
AttributeError: 'TestObject' object has no attribute 'Name'
Does anyone of you can help me??
Thx for your answers
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss