[Zope] ZopeTime Error

Mike Doanh Tran mtran@shufflemasterrd.com
Mon, 29 Oct 2001 09:09:05 -0600


I install a calendar product call SempoiCalendar  on our company's site which 
call the ZopeTime().date() == date.Date() method to check for the current 
date and highlight that event. When i loggin as a manager  of the site, i can 
view the calendar just fine. Howerver, when i loggin as a regular user i get 
the error listed below. i gave the user the following security priviliges:

1. Access Contents Info
2.  View
3. Add SempoiCalendar Item

It seems like the user does not have permission to access the ZopeTime 
method, only a Manager can.  The user can view other section of the calendar 
that does not call on the ZopeTime() method.  Can anyone give me a clue on 
how to fix this please?  Thanks for any suggestions.

Mike




Zope Error:

Error Type: NameError
Error Value: ZopeTime

Traceback (innermost last):
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
    (Object: RoleManager)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: view)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
    (Object: view)
  File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 189, in __call__
    (Object: view)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 538, in 
__call__
    (Object: view)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_In.py, line 647, in 
renderwob
    (Object: getMonthItem(start_date=ZopeDate))
  File /usr/local/zope/lib/python/DocumentTemplate/DT_Util.py, line 334, in 
eval
    (Object: getMonthItem(start_date=ZopeDate))
    (Info: ZopeDate)
  File <string>, line 0, in ?
  File /usr/local/zope/lib/python/Shared/DC/ZRDB/DA.py, line 482, in __call__
    (Object: getMonthItem)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 538, in 
__call__
    (Object: <string>)
  File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 182, in __call__
    (Object: ZopeDate)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 538, in 
__call__
    (Object: ZopeDate)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_Var.py, line 278, in 
render
    (Object: ZopeTime())
  File /usr/local/zope/lib/python/DocumentTemplate/DT_Util.py, line 334, in 
eval
    (Object: ZopeTime())
    (Info: ZopeTime)
  File <string>, line 0, in ?
NameError: (see above)