[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 )




Re: [Zope] calendarTag exception

2000-07-06 Thread Darrell Gallion

Thanks.
Found the mail on this. Upgraded to Beta3 and changed the demo in this way.
Change --> 
To   --> 

Then things started working.
--Darrell


- Original Message - 
From: "Shane Hathaway" <[EMAIL PROTECTED]>
To: "Darrell Gallion" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, July 06, 2000 5:28 PM
Subject: Re: [Zope] calendarTag exception


> Zope 2.2.0 revealed a bug in CalendarTag.  The maintainer will be fixing
> it shortly.
> 
> Shane
> 



___
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] calendarTag exception

2000-07-06 Thread Darrell Gallion

Trying to use the calendarTag and get this error.
I'm using the example code from
http://yyy.zope.org/Members/judell/CalendarTagExample
Before I redesign this thing, it seemed I must be doing something dumb.
I'm using this version Calendar-0.9.13.tar.tgz and Zope-2.2.0b1

--Darrell

Error Type: KeyError
Error Value: BASE1

Traceback (innermost last):
 ...
  File E:\zope\public\lib\python\DocumentTemplate\DT_String.py, line 504, in
__call__
(Object: index_html)
  File E:\zope\public\lib\python\Products\Calendar\CalendarTag.py, line 227,
in render
  File E:\zope\public\lib\python\Products\Calendar\CalendarTag.py, line 346,
in render_dwm
  File E:\zope\public\lib\python\Products\Calendar\CalendarTag.py, line 374,
in render_day_
  File E:\zope\public\lib\python\DocumentTemplate\DT_Util.py, line 263, in
namespace
  File E:\zope\public\lib\python\Products\Calendar\CalendarTag.py, line 177,
in render
KeyError: (see above)



___
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 )