[ZPT] Calling complex product tags from ZPT
Florent Guillaume
fg@nuxeo.com
Fri, 12 Jul 2002 14:56:44 +0000 (UTC)
J C Lawrence <claw@kanga.nu> wrote:
> > open('/tmp/kk', 'w').write('pt_getContext from NuxWidgets\n')
>
> <nod>
>
> I'll be doing that next.
For debugging, it's much cleaner to use the supported method:
from zLOG import LOG, DEBUG
LOG('mymodule', DEBUG, 'doing foo, bar=%s' % str(bar))
You'll then see the debugging messages in your event log
(STUPID_LOG_FILE or stderr), provided you have set
STUPID_LOG_LEVEL=-200 .
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com