[Zope] CalendarTag fix for Zope 2.2

Tres Seaver tseaver@palladion.com
Sun, 16 Jul 2000 21:55:48 -0400


Here is a small patch to make the lovely calendar tag play nice with
DT_Util.namespace() in Zope 2.2:

 $ diff -c lib/python/Products/Calendar/CalendarTag.py \
lib/python/Products/Calendar/CalendarTag.py.org
*** lib/python/Products/Calendar/CalendarTag.py      Sun Jul 16 21:39:27 2000
--- lib/python/Products/Calendar/CalendarTag.py.org  Sun Jul 16 21:41:40 2000
***************
*** 248,254 ****
      __call__ = render

      def render_day_(self, md, date, firstday):
!         ns = namespace(md,
              date = date,
              mode = self.mode,
              firstday = firstday,
--- 248,254 ----
      __call__ = render

      def render_day_(self, md, date, firstday):
!         ns = namespace(self,
              date = date,
              mode = self.mode,
              firstday = firstday,

namespace() now insists that its self argument be an InstanceDict,
which caused it to barf.
 
-- 
=========================================================
Tres Seaver                          tseaver@digicool.com
Digital Creations   "Zope Dealers"   http://www.zope.org