[Zope] Re: Product Creation and Permission]
Casey Duncan
cduncan@kaivo.com
Fri, 04 May 2001 08:22:06 -0600
Jason Joy wrote:
>
> I also found this interesting.
>
> In a regular vanilla DTML document, if you put this in:
>
> <dtml-var "REQUEST['AUTHENTICATED_USER']">
>
> You'll get something like this back:
>
> jj
>
> However, in method B of my Product, when it goes to the index_html for the
> product, and I put in the above, I get this back:
>
> Site Error
> An error was encountered while publishing this resource.
>
> exceptions.TypeError
>
> Sorry, a site error occurred.
>
> Traceback (innermost last):
> File /usr/local/Zope-2.3.2/lib/python/ZPublisher/Publish.py, line 223, in
> publish_module
> File /usr/local/Zope-2.3.2/lib/python/ZPublisher/Publish.py, line 187, in
> publish
> File /usr/local/Zope-2.3.2/lib/python/ZPublisher/Publish.py, line 171, in
> publish
> File /usr/local/Zope-2.3.2/lib/python/ZPublisher/mapply.py, line 160, in
> mapply
> (Object: index_html)
> File /usr/local/Zope-2.3.2/lib/python/ZPublisher/Publish.py, line 112, in
> call_object
> (Object: index_html)
> File /usr/local/Zope-2.3.2/lib/python/App/special_dtml.py, line 127, in
> __call__
> (Object: index_html)
> File /usr/local/Zope-2.3.2/lib/python/DocumentTemplate/DT_String.py, line
> 538, in __call__
> (Object: index_html)
> File /usr/local/Zope-2.3.2/lib/python/DocumentTemplate/DT_Util.py, line 334,
> in eval
> (Object: REQUEST['AUTHENTICATED_USER'])
> (Info: REQUEST)
> File <string>, line 0, in ?
> File /usr/local/Zope-2.3.2/lib/python/DocumentTemplate/DT_Util.py, line 161,
> in careful_getitem
> TypeError: sequence index must be integer
>
> Which I think is directly related to what I am experiencing with getting the
> manage_main.
>
> Jason
>
Very interesting. Can you post the revised Python code of your product?
--
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>