[Zope-dev] Calendar tag 0.9.6 breaks with 2.2.0b3??
Dr. Ross Lazarus
rossl@med.usyd.edu.au
Wed, 28 Jun 2000 16:14:17 +1000
Trying the new 2.2.0b3 zope.
One zclass using ty's calendar tag now breaks with an error message I
just cannot figure out -
Error Type: TypeError
Error Value: unexpected keyword argument: linkDate
Traceback (innermost last):
File /usr/local/zope/zope22b3/lib/python/ZPublisher/Publish.py, line
222, in publish_module
File /usr/local/zope/zope22b3/lib/python/ZPublisher/Publish.py, line
187, in publish
File /usr/local/zope/zope22b3/lib/python/Zope/__init__.py, line 221,
in zpublisher_exception_hook
(Object: CatalogAware)
File /usr/local/zope/zope22b3/lib/python/ZPublisher/Publish.py, line
171, in publish
File /usr/local/zope/zope22b3/lib/python/ZPublisher/mapply.py, line
160, in mapply
(Object: updatePBLdates_calendar)
File /usr/local/zope/zope22b3/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: updatePBLdates_calendar)
File /usr/local/zope/zope22b3/lib/python/OFS/DTMLMethod.py, line 167,
in __call__
(Object: updatePBLdates_calendar)
File
/usr/local/zope/zope22b3/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
(Object: updatePBLdates_calendar)
File
/usr/local/zope/zopeinstancehome/Products/Calendar/CalendarTag.py, line
277, in render
File
/usr/local/zope/zopeinstancehome/Products/Calendar/CalendarTag.py, line
313, in render_wm
File
/usr/local/zope/zopeinstancehome/Products/Calendar/CalendarTag.py, line
339, in render_day_
File /usr/local/zope/zope22b3/lib/python/DocumentTemplate/DT_Util.py,
line 262, in namespace
TypeError: (see above)
I added __allow_access_to_unprotected_subobjects__=1 to the CalendarTag
class just in case.
The offending line in CalendarTag.py is
ns = namespace(self,
date = date,
mode = self.mode,
firstday = firstday,
setCalendar = self.setCalendar_,
getCalendar = self.getCalendar_,
linkDate = self.linkDate_
)[0]
namespace in DT_Util seems harmless enough -
def namespace(self, **kw):
"""Create a tuple consisting of a single instance whos attributes are
provided as keyword arguments."""
return apply(self, (), kw)
Anyone ??