Re: [Zope] try clause in external method

2008-04-15 Thread Chris Withers
Jonathan wrote: A couple of things... 1) Have bare try/except clauses may cause you grief ;-)19 Specifically, in this case, I'll bet an unexpected exception is being raised and swallowed... 2) When an error is trapped by the 'try' statement the transaction is not committed (ie. nothing

Re: [Zope] try clause in external method

2008-04-14 Thread Jonathan
- Original Message - From: Garry Saddington [EMAIL PROTECTED] To: zope@zope.org Sent: Monday, April 14, 2008 3:19 PM Subject: [Zope] try clause in external method I have the following external method which takes an input .csv file and enters the data into a database by calling

[Zope] try clause in external method

2008-04-14 Thread Garry Saddington
I have the following external method which takes an input .csv file and enters the data into a database by calling a ZSQL method. There may be errors in the input file and so I am trying to catch them and insert each bad row in a different table. The errors are detected by table constraints on