[Zope] Newbie question : ZopeTime & permissions

Manuel Amador (Rudd-O) amador@alomega.com
Mon, 16 Oct 2000 23:49:47 -0500


--------------A9875BC7D53E5CDA03940B55
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

access contents information
I guess.

Aaron Straup Cope wrote:

> Hi,
>
> My name is Aaron.
>
> I am trying to set up zope with (atleast) three roles : manager, admin,
> user.
>
> I'd like to give the last two the bare minimum Security permissions
> possible and adding them as needed later on.
>
> My problem is that I can't seem to figure out, specifically, which
> permissions to give a user that will allow them to read ZopeTime().
>
> (see below)
>
> For the admin user, I have set the Access content information and View *
> options globally. I've tried guessing at some others, but there are alot
> of possible combinations to try so I thought maybe I would just ask.
>
> Related, is there a detailed description of the default Security
> settings? I've checked the mailing lists and the Zope docs and if it's
> there, I guess I missed it.
>
> Thanks,
>
> <dtml-call "REQUEST.set('ts', ZopeTime())">
> <dtml-call "REQUEST.set('foo',_.str(_.int(ts)))">
>
> <dtml-var foo>
>
> Traceback (innermost last):
>   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in
> publish_module
>   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in
> publish
>   File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in
> zpublisher_exception_hook
>     (Object: Traversable)
>   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in
> publish
>   File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in
> mapply
>     (Object: test)
>   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in
> call_object
>     (Object: test)
>   File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in
> __call__
>     (Object: test)
>   File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line
> 528, in __call__
>     (Object: test)
>   File /usr/local/zope.old/lib/python/DocumentTemplate/DT_Util.py, line
> 337, in eval
>     (Object: REQUEST.set('ts', ZopeTime()))
>     (Info: REQUEST)
>   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 )

--
Manuel Amador (Rudd-O)



--------------A9875BC7D53E5CDA03940B55
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
access contents information
<br>I guess.
<p>Aaron Straup Cope wrote:
<blockquote TYPE=CITE>Hi,
<p>My name is Aaron.
<p>I am trying to set up zope with (atleast) three roles : manager, admin,
<br>user.
<p>I'd like to give the last two the bare minimum Security permissions
<br>possible and adding them as needed later on.
<p>My problem is that I can't seem to figure out, specifically, which
<br>permissions to give a user that will allow them to read ZopeTime().
<p>(see below)
<p>For the admin user, I have set the Access content information and View
*
<br>options globally. I've tried guessing at some others, but there are
alot
<br>of possible combinations to try so I thought maybe I would just ask.
<p>Related, is there a detailed description of the default Security
<br>settings? I've checked the mailing lists and the Zope docs and if it's
<br>there, I guess I missed it.
<p>Thanks,
<p>&lt;dtml-call "REQUEST.set('ts', ZopeTime())">
<br>&lt;dtml-call "REQUEST.set('foo',_.str(_.int(ts)))">
<p>&lt;dtml-var foo>
<p>Traceback (innermost last):
<br>&nbsp; File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line
222, in
<br>publish_module
<br>&nbsp; File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line
187, in
<br>publish
<br>&nbsp; File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221,
in
<br>zpublisher_exception_hook
<br>&nbsp;&nbsp;&nbsp; (Object: Traversable)
<br>&nbsp; File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line
171, in
<br>publish
<br>&nbsp; File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line
160, in
<br>mapply
<br>&nbsp;&nbsp;&nbsp; (Object: test)
<br>&nbsp; File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line
112, in
<br>call_object
<br>&nbsp;&nbsp;&nbsp; (Object: test)
<br>&nbsp; File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line
177, in
<br>__call__
<br>&nbsp;&nbsp;&nbsp; (Object: test)
<br>&nbsp; File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py,
line
<br>528, in __call__
<br>&nbsp;&nbsp;&nbsp; (Object: test)
<br>&nbsp; File /usr/local/zope.old/lib/python/DocumentTemplate/DT_Util.py,
line
<br>337, in eval
<br>&nbsp;&nbsp;&nbsp; (Object: REQUEST.set('ts', ZopeTime()))
<br>&nbsp;&nbsp;&nbsp; (Info: REQUEST)
<br>&nbsp; File &lt;string>, line 0, in ?
<br>NameError: (see above)
<p>_______________________________________________
<br>Zope maillist&nbsp; -&nbsp; Zope@zope.org
<br><a href="http://lists.zope.org/mailman/listinfo/zope">http://lists.zope.org/mailman/listinfo/zope</a>
<br>**&nbsp;&nbsp; No cross posts or HTML encoding!&nbsp; **
<br>(Related lists -
<br>&nbsp;<a href="http://lists.zope.org/mailman/listinfo/zope-announce">http://lists.zope.org/mailman/listinfo/zope-announce</a>
<br>&nbsp;<a href="http://lists.zope.org/mailman/listinfo/zope-dev">http://lists.zope.org/mailman/listinfo/zope-dev</a>
)</blockquote>

<pre>--&nbsp;
Manuel Amador (Rudd-O)</pre>
&nbsp;</html>

--------------A9875BC7D53E5CDA03940B55--