I'm trying to retrieve properties "nom" and "prenom" from a tweaked User object using :
<dtml-with "REQUEST.AUTHENTICATED_USER"><dtml-with "getUser(id_resp_val)"><dtml-var nom><dtml-var prenom></dtml-with></dtml-with>
where "id_resp_val'" contains the user login name..
I get the following error ...
Error Type: AttributeError
Error Value: __hash__

Traceback (innermost last):
  File C:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line 214, in publish_module
  File C:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line 179, in publish
  File C:\Program Files\Zope\lib\python\Zope\__init__.py, line 202, in zpublisher_exception_hook
    (Object: CatalogAware)
  File C:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line 165, in publish
  File C:\Program Files\Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply
    (Object: manage_editBonAchatForm)
  File C:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line 102, in call_object
    (Object: manage_editBonAchatForm)
  File C:\Program Files\Zope\lib\python\App\special_dtml.py, line 120, in __call__
    (Object: manage_editBonAchatForm)
    (Info: C:\Program Files\Zope\lib\python\Products\BonAchat/BonAchatEdit.dtml)
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__
    (Object: manage_editBonAchatForm)
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_With.py, line 148, in render
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_With.py, line 133, in render
    (Object: getUser(id_resp_val))
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_Util.py, line 335, in eval
    (Object: getUser(id_resp_val))
    (Info: getUser)
  File <string>, line 0, in ?
  File C:\Program Files\Zope\lib\python\AccessControl\User.py, line 666, in getUser
    (Object: RoleManager)
  File C:\Program Files\Zope\lib\python\ZODB\PersistentMapping.py, line 129, in get
AttributeError: (see above)
I must have made a mistake somewhere ....
How can I do it ?
Thanks by advance

Reply via email to