Hallo, agarbutt hat gesagt: // agarbutt wrote: > > Take a look at this. I have started writing a custom exception handler for > my pyNuke project over at SF.net. > You have to realize that the custom exception handlers are context specific > and therefore the code must be put into your __init__.py for the context. > Also check out the ExceptionHander.py in your WebKit dir. The class has > some in-code documentation. > > http://cvs.sourceforge.net/viewcvs.py/*checkout*/pynuke/pyNuke/__init__.py?c > ontent-type=text%2Fplain&rev=1.4
Ah, okay, so I have to init the Exception handler in the contextInitialize step. Where to create a custom handler was one of the things I didn't understand. Thanks for pointing this out. BTW: I didn't know pyNuke until now. Looks very interesting. You don't use something like SQLObject(.org) for DB access, ot do you? In my now nearly finished shop application (in use at normalmailorder.de/shop) two weeks ago I switched to using SQLObject, - which wasn't available when I started that project - and I must say: It feels sooo much better using something like p=Product(id) self.writeln( p.name + "costs " + str(p.price) + " Euro") than all this "execute('select * from my_table where id = %d' % id).fetch()" I had before. It also made the code much shorter and easier to extend later. Might be worth a look for pyNuke, too. ciao -- Frank Barknecht _ ______footils.org__ ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss