> Why "1" and not "True"?  Python has True / False for boolean operations.
its not a bool value, its an errorcode

> Why not raising an exception and the catching it?  This is the best idiom for 
> errors, IMHO.
i'm raising errors in the email class and catching them, then returning
True/False to the caller.
personally, i like errors being raised too -- but in the past I've
found errors dealing with email are often better in a True/False
context because you need to swap code in for something else.  the
idiomatic way of writing to a sendmail pipe is based on a bool , so I
decided that  my email wrapper would be best off returning a bool as
well.

do you have any clue on how i can raise an error in my controller to
process as another method?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to