[Zope] UserDb and AUTHENTICATED_USER
Ross J. Reedstrom
reedstrm@wallace.ece.rice.edu
Sun, 16 May 1999 19:40:19 -0500 (CDT)
Hey Zopers-
I just tripped over an interesting problem. I'm trying to use the UserDb
product with Zope 1.11.0.pr1. Everything's been going swimmingly, (once
I patched it) until I hit this little snag. I'm just trying to add a File
object, and set a property on it 'addedby' equal to the current value of
'AUTHENTICATED_USER'.
I have a normal User Folder in the root of the Zope site, and a UserDb
in a Folder. If I'm connected as a user defined in the main User Folder,
everything works fine. If I'm connected as a UserDb defined person,
however, I get the error below. This all happens in the folder that has
the UserDB folder in it.
Anybody see why this isn't working?
Ross
Traceback below:
You are not authorized to access <em>AUTHENTICATED_USER</em>.
<p><a href="http://www.zope.org/Credits"><img src="http://localhost:9673/p_/ZopeButton" width="115" height="50" border="0" alt="Powered by Zope"></a></p>
</BODY></HTML>
<!--
Traceback (innermost last):
File lib/python/ZPublisher/Publish.py, line 255, in publish_module
File lib/python/ZPublisher/Publish.py, line 157, in publish
File lib/python/ZPublisher/mapply.py, line 154, in mapply
(Object: addFileAction)
File lib/python/ZPublisher/Publish.py, line 98, in call_object
(Object: addFileAction)
File lib/python/OFS/DTMLMethod.py, line 158, in __call__
(Object: addFileAction)
File lib/python/OFS/DTMLMethod.py, line 154, in __call__
(Object: addFileAction)
File lib/python/DocumentTemplate/DT_String.py, line 514, in __call__
(Object: addFileAction)
File lib/python/DocumentTemplate/DT_Util.py, line 315, in eval
(Object: _.getitem(REQUEST['id']).manage_addProperty(
'addedby',REQUEST['AUTHENTICATED_USER'], 'string'))
File <string>, line 0, in ?
File lib/python/DocumentTemplate/DT_Util.py, line 155, in careful_getitem
Unauthorized: (see above)
--
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St., Houston, TX 77005