[ZCM] [ZC] 1653/ 4 Comment "acl_users fails if an object named 'user' exists"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Fri Jan 7 11:02:18 EST 2005


Issue #1653 Update (Comment) "acl_users fails if an object named 'user' exists"
 Status Pending, Zope/bug low
To followup, visit:
  http://collector.zope.org/Zope/1653

==============================================================
= Comment - Entry #4 by efge on Jan 7, 2005 11:02 am

I'd rather just change the DTML. Subclasses of User may want to call the same template with original semantics and would fail. Or some overloaded template would be surprised to receive user__...

________________________________________
= Comment - Entry #3 by shh on Jan 7, 2005 10:58 am


Uploaded:  "editUser.patch"
 - http://collector.zope.org/Zope/1653/editUser.patch/view
I have attached a patch.
________________________________________
= Comment - Entry #2 by efge on Jan 7, 2005 10:18 am

Original thread is
http://mail.zope.org/pipermail/zope/2005-January/155742.html
________________________________________
= Request - Entry #1 by efge on Jan 7, 2005 10:17 am

If an object named 'user' exists alongside a user folder, the editUser.dtml page fails to display:

Request URL http://localhost:8080/acl_users/manage_users
     * Module ZPublisher.Publish, line 101, in publish
     * Module ZPublisher.mapply, line 88, in mapply
     * Module ZPublisher.Publish, line 39, in call_object
     * Module AccessControl.User, line 939, in manage_users
     * Module Shared.DC.Scripts.Bindings, line 306, in __call__
     * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
     * Module App.special_dtml, line 175, in _exec
     * Module DocumentTemplate.DT_Util, line 198, in eval
       __traceback_info__: user
     * Module <string>, line 0, in ?
 AttributeError: name

This is due to references to user.name in the DTML.

==============================================================



More information about the Zope-Collector-Monitor mailing list