[Zope] Re: Product Creation and Permission]

Jason Joy kyroraz@usa.net
3 May 2001 14:51:03 MST


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 th=
e
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, i=
n
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, li=
ne
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


> The other thing I now notice is that you are mixing the old security
> model with __ac_permissions__ with the new one "classSecurityInfo".
> =

> This is likely confusing Zope. Drop the __ac_permissions__ stuff.
> =

> -- =

> | Casey Duncan
> | Kaivo, Inc.
> | cduncan@kaivo.com
> `------------------>
> =

> _______________________________________________
> 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 )


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=3D=
1