[Zope] Zope Permissions Killing Me

Joshua Lanza jlanza@vorsite.com
Wed, 19 Dec 2001 22:43:20 -0800


When I try to create a new Foo object (through the site, not the
management console), I get the enter id and password dialog. No matter
which user I supply, I get "You are not authorized to access
FooClass_Properties". I have gone into the FooClass_Properties object
and set the permission for Manage properties to View. Manage Properties
is the only permission that appears in the Define Permissions tab.=20

Additionally, I have set every other permission in the class to the most
liberal possible setting, including enabling every proxy that is
available. I am completely stumped. All the doc I find says "allow
specified roles to access portal content", and that's usually the end of
the discussion. 85% of my dev time with Zope has been spent trying to
allow users to access my pages.=20

Please help ~=20
Josh

Here's the trace:

<!--
Traceback (innermost last):
  File F:\PROGRA~1\ZOPESI~1\lib\python\ZPublisher\Publish.py, line 223,
in publish_module
  File F:\PROGRA~1\ZOPESI~1\lib\python\ZPublisher\Publish.py, line 187,
in publish
  File F:\PROGRA~1\ZOPESI~1\lib\python\ZPublisher\Publish.py, line 171,
in publish
  File F:\PROGRA~1\ZOPESI~1\lib\python\ZPublisher\mapply.py, line 160,
in mapply
    (Object: add_foo)
  File F:\PROGRA~1\ZOPESI~1\lib\python\ZPublisher\Publish.py, line 112,
in call_object
    (Object: add_foo)
  File F:\PROGRA~1\ZOPESI~1\lib\python\OFS\DTMLMethod.py, line 195, in
__call__
    (Object: add_foo)
  File F:\PROGRA~1\ZOPESI~1\lib\python\DocumentTemplate\DT_String.py,
line 546, in __call__
    (Object: add_foo)
  File F:\PROGRA~1\ZOPESI~1\lib\python\DocumentTemplate\DT_With.py, line
149, in render
    (Object: manage_addProduct['P2PCC'])
  File F:\PROGRA~1\ZOPESI~1\lib\python\DocumentTemplate\DT_Util.py, line
231, in eval
    (Object: FooClass_add(_.None, _, NoRedir=3D1))
    (Info: _)
  File &lt;string&gt;, line 2, in f
    (Object: guarded_getattr)
  File F:\PROGRA~1\ZOPESI~1\lib\python\OFS\DTMLMethod.py, line 188, in
__call__
    (Object: FooClass_add)
  File F:\PROGRA~1\ZOPESI~1\lib\python\DocumentTemplate\DT_String.py,
line 546, in __call__
    (Object: FooClass_add)
  File F:\PROGRA~1\ZOPESI~1\lib\python\DocumentTemplate\DT_With.py, line
149, in render
    (Object: FooClass.createInObjectManager(REQUEST['id'], REQUEST))
  File F:\PROGRA~1\ZOPESI~1\lib\python\DocumentTemplate\DT_Util.py, line
231, in eval
    (Object:
propertysheets.FooClass_Properties.manage_editProperties(REQUEST))
    (Info: REQUEST)
  File &lt;string&gt;, line 2, in f
    (Object: guarded_getattr)
  File F:\PROGRA~1\ZOPESI~1\lib\python\AccessControl\DTML.py, line 101,
in guarded_getattr
    (Object: add_foo)
  File F:\PROGRA~1\ZOPESI~1\lib\python\AccessControl\ZopeGuards.py, line
120, in guarded_getattr
  File F:\PROGRA~1\ZOPESI~1\lib\python\AccessControl\ZopeGuards.py, line
103, in aq_validate
  File F:\PROGRA~1\ZOPESI~1\lib\python\AccessControl\SecurityManager.py,
line 149, in validate
  File
F:\PROGRA~1\ZOPESI~1\lib\python\AccessControl\ZopeSecurityPolicy.py,
line 216, in validate
Unauthorized: (see above)

-->