broken root security tab
Hello, I recently upgraded to Zope 2.3.2 and added several new products. Sometime during that process, my root security tab stopped working with: Error Type: TypeError Error Value: string member test needs char left operand A quick mailing list search indicates that it is probably related to a missing ',' in one of the products, but I am just guessing. How can I track down the source of this error? I tried to run the python debugger, but trying to access Zpublish.Zope('/manage_access') simply denies access. I'm rather new to Zope debugging, so any help would be appreciated. Thanks, Dave -- Dave Ahn | ahn@vec.wfubmc.edu | Wake Forest University Baptist Medical Center When you were born, you cried and the world rejoiced. Try to live your life so that when you die, you will rejoice and the world will cry. -1/2 jj^2
Right click on the page with the error and view the source. In the page source you should have a traceback. At the very least it should way which product the error is in. Most likely it will have the line the error is at. On Sun, 6 May 2001, Dave Ahn wrote:
Hello,
I recently upgraded to Zope 2.3.2 and added several new products. Sometime during that process, my root security tab stopped working with:
Error Type: TypeError Error Value: string member test needs char left operand
A quick mailing list search indicates that it is probably related to a missing ',' in one of the products, but I am just guessing.
How can I track down the source of this error? I tried to run the python debugger, but trying to access Zpublish.Zope('/manage_access') simply denies access. I'm rather new to Zope debugging, so any help would be appreciated.
Thanks, Dave -- Dave Ahn | ahn@vec.wfubmc.edu | Wake Forest University Baptist Medical Center
When you were born, you cried and the world rejoiced. Try to live your life so that when you die, you will rejoice and the world will cry. -1/2 jj^2
_______________________________________________ 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 )
This is what I get: Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_access) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_access) File /usr/lib/zope/lib/python/AccessControl/Role.py, line 257, in manage_access (Object: ApplicationDefaultPermissions) File /usr/lib/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: _normal_manage_access) File /usr/lib/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: _normal_manage_access) File /usr/lib/zope/lib/python/App/special_dtml.py, line 236, in _exec (Object: _normal_manage_access) File /usr/lib/zope/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: _.namespace(valid_roles=valid_roles())) File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 650, in renderwob (Object: permission_settings) File /usr/lib/zope/lib/python/AccessControl/Role.py, line 182, in permission_settings (Object: ApplicationDefaultPermissions) File /usr/lib/zope/lib/python/AccessControl/Role.py, line 177, in <lambda> TypeError: (see above) The relevant lines from Role.py appear to be: d={'name': name, 'acquire': type(roles) is ListType and 'CHECKED' or '', 'roles': map( lambda ir, roles=roles, valid=valid, ip=ip: { 'name': "p%dr%d" % (ip,ir), 'checked': (valid[ir] in roles) and 'CHECKED' or '', }, indexes) } Any suggestions on how to fix this? Thanks, Dave On Sun, May 06, 2001 at 12:03:59AM +0000, kosh@aesaeion.com wrote:
Right click on the page with the error and view the source. In the page source you should have a traceback. At the very least it should way which product the error is in. Most likely it will have the line the error is at.
On Sun, 6 May 2001, Dave Ahn wrote:
Hello,
I recently upgraded to Zope 2.3.2 and added several new products. Sometime during that process, my root security tab stopped working with:
Error Type: TypeError Error Value: string member test needs char left operand
A quick mailing list search indicates that it is probably related to a missing ',' in one of the products, but I am just guessing.
How can I track down the source of this error? I tried to run the python debugger, but trying to access Zpublish.Zope('/manage_access') simply denies access. I'm rather new to Zope debugging, so any help would be appreciated.
Thanks, Dave -- Dave Ahn | ahn@vec.wfubmc.edu | Wake Forest University Baptist Medical Center
When you were born, you cried and the world rejoiced. Try to live your life so that when you die, you will rejoice and the world will cry. -1/2 jj^2
_______________________________________________ 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 )
_______________________________________________ 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 )
-- Dave Ahn | ahn@vec.wfubmc.edu | Wake Forest University Baptist Medical Center When you were born, you cried and the world rejoiced. Try to live your life so that when you die, you will rejoice and the world will cry. -1/2 jj^2
participants (2)
-
Dave Ahn -
kosh@aesaeion.com