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.
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
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.
Frank Barknecht _ ______footils.org__