[Zope] ZopeTime Error

Mike Doanh Tran mtran@shufflemasterrd.com
Mon, 29 Oct 2001 10:38:53 -0700


----------  Forwarded Message  ----------
Subject: Re: [Zope] ZopeTime Error
Date: Mon, 29 Oct 2001 11:24:14 -0600
From: Mike Doanh Tran <mtran@shufflemasterrd.com>
To: complaw@hal-pc.org


Ron,

I tried your suggestions.  I gave my defined user the same permission setting
in the security tab as the Manager Role( basically everything).  But i still 
get the same error. The ZopeTime() method is a call to the python DateTime 
Object, it does not relate to my installed Product.

I am running Zope 2.4.1 on Redhat 7.1 with Python 2.1.1 using Apache rewrite
engine rule .  I added a "User Defined Role" in the security tab.  Could it
be that my Defined User does not have the permission to call the python's
ZopeTime().Date()? Does the linux permission on /usr/local/zope/lib/python
have to set to a certain RWE by the webserver?  Does anyone knows? 
Thanks for any suggesstions.

Mike

On Monday 29 October 2001 08:50, you wrote:
> 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 )

-------------------------------------------------------