Hi All i create a folder "user" in RootFolder, but when i acces acl_users and i click in any user.... the zope return with error. this is a bug, ok? _______________________________________________________________________ Copa 2002 Yahoo! - Patrocinador oficial da Copa do Mundo da FIFA 2002 http://br.sports.yahoo.com/fifaworldcup/
I'm afraid I don't understand, can you try again? ----- Original Message ----- From: "Daniel Schmitz" <dpsgd@yahoo.com.br> To: <zope@zope.org> Sent: Thursday, June 27, 2002 9:26 AM Subject: [Zope] Folder "user" ------ it is a BUG?????
Hi All
i create a folder "user" in RootFolder, but when i acces acl_users and i click in any user.... the zope return with error.
this is a bug, ok?
____________________________________________________________________ ___
Copa 2002 Yahoo! - Patrocinador oficial da Copa do Mundo da FIFA 2002 http://br.sports.yahoo.com/fifaworldcup/
_______________________________________________ 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 )
hi, I think it is a bug. - Create a folder with ID=user in your Root. - go to acl_users and click on a user. Then you get a name-error. Traceback below, greetings maik. On Thu, 2002-06-27 at 16:16, Chris McDonough wrote:
I'm afraid I don't understand, can you try again?
----- Original Message ----- From: "Daniel Schmitz" <dpsgd@yahoo.com.br> To: <zope@zope.org> Sent: Thursday, June 27, 2002 9:26 AM Subject: [Zope] Folder "user" ------ it is a BUG?????
Hi All
i create a folder "user" in RootFolder, but when i acces acl_users and i click in any user.... the zope return with error.
this is a bug, ok?
Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: name Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Powered by Zope Traceback (innermost last): File /home/zope/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /home/zope/lib/python/ZPublisher/Publish.py, line 114, in publish File /home/zope/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: acl_users) File /home/zope/lib/python/ZPublisher/Publish.py, line 98, in publish File /home/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_users) File /home/zope/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_users) File /home/zope/lib/python/AccessControl/User.py, line 926, in manage_users (Object: acl_users) File /home/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__ (Object: _editUser) File /home/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec (Object: _editUser) File /home/zope/lib/python/App/special_dtml.py, line 172, in _exec (Object: _editUser) File /home/zope/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: user.name) (Info: user) File <string>, line 0, in ? AttributeError: (see above) -- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
You are indeed right, this is a bug. It happens because the editUser.dtml file references the name "user" without qualification, and finds the "user" folder in the root before it finds the "user" argument passed in as a keyword. I'm trying to figure out how to fix it now. Thanks! - C On Thu, 2002-06-27 at 10:29, Maik Jablonski wrote:
hi,
I think it is a bug.
- Create a folder with ID=user in your Root. - go to acl_users and click on a user. Then you get a name-error.
Traceback below,
greetings maik.
On Thu, 2002-06-27 at 16:16, Chris McDonough wrote:
I'm afraid I don't understand, can you try again?
----- Original Message ----- From: "Daniel Schmitz" <dpsgd@yahoo.com.br> To: <zope@zope.org> Sent: Thursday, June 27, 2002 9:26 AM Subject: [Zope] Folder "user" ------ it is a BUG?????
Hi All
i create a folder "user" in RootFolder, but when i acces acl_users and i click in any user.... the zope return with error.
this is a bug, ok?
Zope has encountered an error while publishing this resource.
Error Type: AttributeError Error Value: name
Troubleshooting Suggestions
* The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error.
For more detailed information about the error, please refer to the HTML source for this page.
If the error persists please contact the site maintainer. Thank you for your patience.
Powered by Zope
Traceback (innermost last): File /home/zope/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /home/zope/lib/python/ZPublisher/Publish.py, line 114, in publish File /home/zope/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: acl_users) File /home/zope/lib/python/ZPublisher/Publish.py, line 98, in publish File /home/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_users) File /home/zope/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_users) File /home/zope/lib/python/AccessControl/User.py, line 926, in manage_users (Object: acl_users) File /home/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__ (Object: _editUser) File /home/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec (Object: _editUser) File /home/zope/lib/python/App/special_dtml.py, line 172, in _exec (Object: _editUser) File /home/zope/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: user.name) (Info: user) File <string>, line 0, in ? AttributeError: (see above)
-- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
_______________________________________________ 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 )
On Thursday 27 Jun 2002 3:56 pm, Chris McDonough wrote:
You are indeed right, this is a bug. It happens because the editUser.dtml file references the name "user" without qualification, and finds the "user" folder in the root before it finds the "user" argument passed in as a keyword. I'm trying to figure out how to fix it now.
Oh yeah, sure, Zope is packed full of bugs like this. Its got alot better since Zope 2.0, but this is still a major problem. Try this patch, which will dump out any name looked up but not found in the root application object. Next, go poking around inside the management interface, or inside your favorite product. Some of these do not indicate a problem, but most are caused by dtml or acquisition-heavy code that uses the wrong namespace search order. For every name listed, you can change the behaviour of Zope by adding an object or property of the same name to the root folder. Index: Application.py =================================================================== RCS file: /cvs-repository/Zope/lib/python/OFS/Application.py,v retrieving revision 1.183 diff -r1.183 Application.py 83a84,89
def __getattr__(self,n,k={}): if not k.has_key(n): print >> sys.stderr,n k[n]=0 raise AttributeError(n)
=?iso-8859-1?Q?Daniel_Schmitz?= writes:
i create a folder "user" in RootFolder, but when i acces acl_users and i click in any user.... the zope return with error.
this is a bug, ok? Probably. Do you want to file a bug report in <http://collector.zope.org>?
Dieter
participants (5)
-
Chris McDonough -
Daniel Schmitz -
Dieter Maurer -
Maik Jablonski -
Toby Dickenson