User management pages bug when exists a folder 'user'
Hi guys. I'm trying to figure out a way around acquision. I have a folder object in the root called 'user'. It's name causes a conflict in the DTML namespace in editUser.dtml at Zope/lib/python/AccessControl/dtml/editUser.dtml In editUser.dtml, there is a line <dtml-var expr="user.name"> This causes an error, as it acquires my folder object 'user', instead of the user object created by Zope/lib/python/AccessControl/User.py, function manage_users. Question: How can I bypass acquision, so I don't have to rename the folder. Thanks, Troy
Farrell, Troy writes:
I'm trying to figure out a way around acquision. I have a folder object in the root called 'user'. It's name causes a conflict in the DTML namespace in editUser.dtml at Zope/lib/python/AccessControl/dtml/editUser.dtml
In editUser.dtml, there is a line <dtml-var expr="user.name"> You can enhance "editUser.dtml" to make is more resilient with respect to name clashes.
You can use "dtml-with" to control the lookup order. Dieter
participants (2)
-
Dieter Maurer -
Farrell, Troy