[quote="andrew"]I am attempting some extensions to TinyERP. Does cr.execute return the SQL error code? Am I thinking at too low a level and worrying needlessly? I don't see "official" code checking, so can I assume that any SQL errors will be handled gracefully by the core code?[/quote]
I think you are missing the fact that 'cr' is just the connection to the database. This is done using the psycopg database connector. The docs for that are here: http://www.initd.org/tracker/psycopg/wiki/psycopg2_documentation There's a lot going on -- I too am struggling to learn how terp is put together, so I can write what I need. I'm lucky that I've been using psycopg for years and get to skip that part of the learning curve, that's all. _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman/listinfo/tinyerp-users
