[Zope] Re: [Zope-dev] CalendarTag fix for Zope 2.2

2000-07-17 Thread IbaƱez Palomar Juan David


Shane already told me about this bug, the latest release (0.9.17) is fixed.

> 
> 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  [EMAIL PROTECTED]
> Digital Creations   "Zope Dealers"   http://www.zope.org
> 
> ___
> 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 )
> 
> 


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




[Zope] Re: [Zope-dev] CalendarTag fix for Zope 2.2

2000-07-16 Thread Darrell Gallion

Speaking of the calendar tag, which I'm very grateful for.
I noticed that changing the mode setting in one browser was seen in all
others.

calendar.py
line ~323:
def render(self, md):
self.mode = 'month'

Forcing the mode to month seems to work. The view will be month unless the
url contains a mode.

Also changed it to give me access to the  tags of each day.




  
  
  





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



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