[Zope] Calendar - tag

Rick Morrow rmorrow@delfax.net
Mon, 25 Jun 2001 09:33:41 -0400 (EDT)


On Mon, 25 Jun 2001, Tom Deprez wrote:

> Hi,
>
>
> Anybody experiencing the same problems with the calendar tag product as I do
> on Zope 2.3.3?
>
> Zope Error
> Zope has encountered an error while publishing this resource.
>
> Error Type: NameError
> Error Value: split


	Okay, and no sooner do I post a 'me too' to the list but I find
the problem.  It seems that CalendarTag.py was depending on DT_Util.py
(part of the DocumentTemplate module) for the importing of the split
function from the python strings module.  DT_Util.py was changed in 2.3.3.

	The simple fix for this is the add the 'split' function to the
import list for the string module in CalendarTag.py and restart Zope.

Here's a quick diff from the version 1.0.4 CalendarTag.py file, line 7;

---------------<change from>------------------
from string import capitalize, join, replace
-------------------8X-------------------------

----------------<change to>-------------------
from string import capitalize, join, replace, split
-------------------8X-------------------------

	This will get you up and running until the author posts an update.
Hopefully there weren't too many other glitches like this. :-)

-- 

----------------------------------------------------------------
Rick Morrow, North Bay, Ontario, Canada - rmorrow@delfax.net
Unix & Internetworking Systems Consultant
PGP Public Key: http://www.delfax.net/~rmorrow/pgp_pub_keys.html