"Dr. Ross Lazarus" wrote:
> >  > 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]

I haven't tried this, but I think if you change the "self" argument in
the namespace() call from CalendarTag to "md", the problem will be
resolved.  I think that's what Ty meant to do, but the old mechanism
didn't care; it didn't even look at the first argument.  In other words:

> >  >         ns = namespace(md,
> >  >             date = date,
> >  >             mode = self.mode,
> >  >             firstday = firstday,
> >  >             setCalendar = self.setCalendar_,
> >  >             getCalendar = self.getCalendar_,
> >  >             linkDate = self.linkDate_
> >  >         )[0]

Of course, it's kinda crazy for me to be sending out untested patches to
other people's work.  :-)  But if this works, it will also be
backwards-compatible.

Shane

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to