Re: [Zope] Re: Transactions in Zope?
26 Nov
2001
26 Nov
'01
6:01 a.m.
Bruce Eckel wrote:
try this:
except smtplib.SMTPSenderRefused: get_transaction().abort() return "Invalid email address: please press your" "browser's 'back' key and correct it"
Actually, just thought about this... Probably the 'correct' way to do all this is to not catch the exception but to modify your standard_error_message to display the right thing when this exception is encountered. That way, IIRC, Zope will take care of aborting the transaction for you. cheers, Chris
8897
Age (days ago)
8897
Last active (days ago)
0 comments
1 participants
participants (1)
-
Chris Withers