One of my SQLObjects has an alternateID column. e.g.:
class Card(SQLObject):
serial = StringCol(length=10, alternateID=True)
when user enters an existing value for the serial column, i should give
him a meaningful error message. However, SQLObject only raises an
OperationalError exception on this condition. I can hardly tell it from
a database connection failure. What is the canon way to know it?
--
Qiangning Hong
http://www.hongqn.com
Registered Linux User #396996
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss