[Zope-CMF] Where do CMF get the "Creator" variable from ?
Gitte Wange
gitte@mmmanager.org
Tue, 3 Jul 2001 17:59:03 +0200
Hello,
I would like to be able to display my users real name instead of just their
username. I have added a property to the memberdata object called real_name.
Now I want to display my users realname in the blark at my CMF portal. In the
code for the Blackfolder_view method it display the &dtml-Creator; variable.
So I thought that maybe I could find the user object with the Creator ID and
ask for the real name. But no ... I have tried this:
<dtml-let created_by="portal_membership.getMemberById(Creator)">
<dtml-call "REQUEST.set('realname',created_by.real_name)">
</dtml-let>
But I get this error:
Error Type: AttributeError
Error Value: 'None' object has no attribute 'real_name'
So I guess it isn't a valid user object it returns.
Any ideas ?
Regards,
--
Gitte Wange Jensen
Sys Admin, Developer and a lot more
MMmanager.org Aps, Denmark
Phone: +45 29 72 79 72
Email: gitte@mmmanager.org
Web: www.mmmanager.org
Quote of the day:
..Unix, MS-DOS, and Windows NT
(also known as the Good, the Bad and the Ugly).
- Matt Welsh