[Zope-CMF] Trouble using workflow script to send email.
Lennart Regebro
regebro at nuxeo.com
Tue Feb 10 05:18:11 EST 2004
From: "Nava, Christopher L. Contractor" <navachrl at JICPAC.PACOM.MIL>
> Also, Anyone have some debugging tips for a newbie python programmer?
Scripts are a bit of a pain to debug.
Two ways:
from zLOG import LOG
LOG('blablabla', 200, 'more text you want printed', 'even more text yu want
printed')
This will print out a log. You may have to change the rights to what can be
imported first, I think you aren't aloowed to import things from zLOG by
default.
Second trick is to do a raise str(whatever) in the middle of a script to
check the variables.
In this case, a raise str(msg) to check what the message is, or a raise
str(context.getReviewersFor(object)) to make sure you really HAVE a list,
are good things to start with.
More information about the Zope-CMF
mailing list