[Zope] ZopeTime Error

complaw@hal-pc.org complaw@hal-pc.org
Mon, 29 Oct 2001 15:50:51 GMT


There is a permission problem with your product.  Don't worry, this should be
easily fixed.  Get to the manage page of the folder in question (e.g.,
http://localhost:8080/myFolder/manage).  Then select the "Security" tab.  There,
you will be presented with a list of things that your users (usually in the
'Anonymous' role) can and cannot do.  One of those (many) buttons needs to be
set so that the average user can run the ZopeTime method (or whatever method it
is that they do not have permission to execute).

At first there is some trial and error if you don't know exactly which method
(and there may be more than one) that you user's lack permission.  Try the ones
that are most obvious, but you may have to do some trial and error to get it
right.  I think the zope site has a URL with a complete list of the objects and
methods (try the Zope Documentation Project (ZDP.zope.org)).

Good luck,

Ron



> 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)
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
>