Archive for the 'Zope' Category

Printing Stack Trace

Wednesday, May 9th, 2007

Useful for printing out the stack trace when debugging calls within Zope code:

items = traceback.extract_stack()
for stackItem in items:
msg = ‘ %s:%s:’ % (os.path.basename(stackItem[0]), stackItem[1])
logger.warn(’%s:’ % msg)

Zope3 Events (note to self)

Friday, March 30th, 2007

I haven’t blogged enough about Zope, specifically my great wins with Zope 3’s architecture. I’m a huge fan and I’ve got quite a few huge wins I would like to share., Such is life, leaving me being too damn busy to spend much time thinking outside of work (or family). For quite […]

SysLog Support In Zope

Wednesday, October 25th, 2006

I recently had to setup syslog support in my Zope instance. I guess I’d never had to do that in the past, as I didn’t recall there was support in ZConf for this. I knew with the switch to python’s logging package, this wouldn’t be difficult to do - so I went about writing […]