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 Traceback (innermost last): File /opt/zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /opt/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /opt/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /opt/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /opt/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: Calendar_html) File /opt/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: Calendar_html) File /opt/zope/lib/python/OFS/DTMLDocument.py, line 189, in __call__ (Object: Calendar_html) File /opt/zope/lib/python/DocumentTemplate/DT_String.py, line 540, in __call__ (Object: Calendar_html) File /opt/zope/lib/python/Products/Calendar/CalendarTag.py, line 608, in render (Object: calendar) NameError: (see above) Regards, Tom.
On Mon, 25 Jun 2001, Tom Deprez wrote:
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 [...]
I get the same error since I upgraded to 2.3.3. I'm using what looks to be the latest Calendar Tag product (1.0.4) from the zope site as well. -- ---------------------------------------------------------------- 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
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
On Monday 25 June 2001 20:18, 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
the fix is to also import split when imoprting string from string import capitalize, join, replace, split i dont know how it works in previous version of CalendarTag hth
participants (3)
-
bak -
Rick Morrow -
Tom Deprez