[Zope] Product AttributeError __error_log__ ???

Stefan H. Holek stefan@epy.co.at
Wed, 04 Dec 2002 12:02:35 +0100


--On Mittwoch, 04. Dezember 2002 11:39 +0100 chrisf <chrisf@fagmed.uit.no> 
wrote:

>
> I have an error_log and a no site_root.
> DTML and other exceptions are registered, but not from my python
> product.
> Do I need to inherit from a special 'logger class'
>

No, but you must make sure the app object can be acquired.

Line 134 of module Zope is:

log = aq_acquire(published, '__error_log__', containment=1)

Either you have to _setObject() you object or wrap it manually.

Stefan


--
Those who write software only for pay should go hurt some other field.
/Erik Naggum/