On Thu, Mar 30, 2006 at 05:48:53PM -0300, Jorge Godoy wrote:
> Oleg Broytmann <[EMAIL PROTECTED]> writes:
> >    I see a way to do it once for the entire program using metaclasses but
> > it's too complex to explain in a short email. (At least I think I see a
> > way, but I may be wrong...)
> 
> Using a decorator might also be an interesting idea.  It can wrap the function
> in the try/except and handle the exception somehow.

   But you have to decorate a lot of methods manually, where a metaclass
can automate the process.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to