[Zope-dev] Can't access manage_access ...

2001-05-06 Thread Joachim Werner

Hi!

Anyone seen this before?

It happens when I want to access a folder's manage_access page. The thing
worked all the time, and I don't know what could have changed that. The Zope
version is 2.3.1. source version with Python 1.5.2. There also seem to be
problems with some of the permissions set on that page (they don't work):

Error Type: AttributeError
Error Value: __getitem__

Traceback (innermost last):
  File /var/lib/zope/iuvenoProducts/lib/python/ZPublisher/Publish.py, line
223, in publish_module
  File /var/lib/zope/iuvenoProducts/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /var/lib/zope/iuvenoProducts/lib/python/Zope/__init__.py, line 221,
in zpublisher_exception_hook
(Object: Traversable)
  File /var/lib/zope/iuvenoProducts/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /var/lib/zope/iuvenoProducts/lib/python/ZPublisher/mapply.py, line
160, in mapply
(Object: manage_access)
  File /var/lib/zope/iuvenoProducts/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: manage_access)
  File /var/lib/zope/iuvenoProducts/lib/python/AccessControl/Role.py, line
258, in manage_access
(Object: Traversable)
  File
/var/lib/zope/iuvenoProducts/lib/python/Shared/DC/Scripts/Bindings.py, line
324, in __call__
(Object: _normal_manage_access)
  File
/var/lib/zope/iuvenoProducts/lib/python/Shared/DC/Scripts/Bindings.py, line
354, in _bindAndExec
(Object: _normal_manage_access)
  File /var/lib/zope/iuvenoProducts/lib/python/App/special_dtml.py, line
236, in _exec
(Object: _normal_manage_access)
  File /var/lib/zope/iuvenoProducts/lib/python/DocumentTemplate/DT_With.py,
line 146, in render
(Object: _.namespace(valid_roles=valid_roles()))
  File /var/lib/zope/iuvenoProducts/lib/python/DocumentTemplate/DT_In.py,
line 646, in renderwob
(Object: permission_settings)
  File /var/lib/zope/iuvenoProducts/lib/python/AccessControl/Role.py, line
182, in permission_settings
(Object: Traversable)
  File /var/lib/zope/iuvenoProducts/lib/python/AccessControl/Role.py, line
177, in lambda
AttributeError: (see above)




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Can't access manage_access ...

2001-05-06 Thread Joachim Werner

Additional remark: It goes away if I remove all ZClasses from the folder.
Strange ...


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Can't access manage_access ...

2001-05-06 Thread Dieter Maurer

Joachim Werner writes:
  It happens when I want to access a folder's manage_access page
 
  Error Type: AttributeError
  Error Value: __getitem__
  
  Traceback (innermost last):
  
File /var/lib/zope/iuvenoProducts/lib/python/AccessControl/Role.py, line
  177, in lambda
  AttributeError: (see above)

Seems that valid_roles (called on the folder) no longer returns a sequence...
May be someone has defined an object of this name.

To find out the culprit, it would probably the easiest thing
to add a print statement in Role.py that outputs
valid together with the result of getId(), if this is defined.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )