[Zope] ZopeTime help needed

Jim Sanford snafford@bellsouth.net
Sun, 14 Nov 1999 09:11:15 -0600


Am using Zope 1.10.3 on slackware.

<!--#var "ZopeTime().strftime('%Y%m%d')"--> in a ZSQL Method works.

<!--#var "ZopeTime().strftime('%Y%m%d')"--> in a DTML MEthod or DTML
Document gives "You are not authorized to access ZopeTime" error

This is in a folder 1 down from the root.

It works in DTML Methods or Documents at the root.

The only difference is that additional roles are added in the folder down 1
level but I still have a manager role with full access.

Here is the traceback:
------------------------------------
Traceback (innermost last):
  File /usr/local/dc/Zope1.1/lib/python/ZPublisher/Publish.py, line 877, in
publish_module
  File /usr/local/dc/Zope1.1/lib/python/ZPublisher/Publish.py, line 590, in
publish
    (Info: /alarmcheck/Query/test1)
  File /usr/local/dc/Zope1.1/lib/python/OFS/DTMLDocument.py, line 213, in
__call__
    (Object: test1)
  File /usr/local/dc/Zope1.1/lib/python/OFS/DTMLDocument.py, line 209, in
__call__
    (Object: test1)
  File /usr/local/dc/Zope1.1/lib/python/DocumentTemplate/DT_String.py, line
513, in __call__
    (Object: test1)
  File /usr/local/dc/Zope1.1/lib/python/DocumentTemplate/DT_Util.py, line
260, in eval
    (Object: ZopeTime().strftime('%Y%m%d'))
Unauthorized: (see above)
---------------------------------
Any ideas?


Jim Sanford
snafford@bellsouth.net