dtml-var owner? author? editor?
Hi Zopistas, I want to include the owner (from acl_users) of a page in my HTML-output. Unfortunately I'm not able to produce what I want. Any hints? Thanks, p@rick
On Wednesday 25 October 2000 09:58, Patrick Koetter wrote:
Hi Zopistas,
I want to include the owner (from acl_users) of a page in my HTML-output.
Unfortunately I'm not able to produce what I want.
Any hints?
Thanks,
p@rick
i would think that <dtml-var "AUTHENTICATED_USER.getUserName()"> is what you want
_______________________________________________ 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 )
-- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine Strange how laughter looks like crying with no sound, and raindrops taste like tears .. without the pain
I want to include the owner (from acl_users) of a page in my HTML-output.
<dtml-var "AUTHENTICATED_USER.getUserName()"> is what you want
Not exactly. This only returns the AUTHENTICATED_USER, or am I wrong? What I want is: 'Anonymous User' surfs to my site. She surfs trough the HTML output generated by zope, while zope not only tells her the content provided, but also the Name of the Zope-owner of the document (e.g patrick is owner of index_html --> that info is also displayed to the anonymous user) Thanks for more help, p@
On Wednesday 25 October 2000 16:01, Patrick Koetter wrote:
I want to include the owner (from acl_users) of a page in my
HTML-output.
<dtml-var "AUTHENTICATED_USER.getUserName()"> is what you want
Not exactly. This only returns the AUTHENTICATED_USER, or am I wrong? What I want is: 'Anonymous User' surfs to my site. She surfs trough the HTML output generated by zope, while zope not only tells her the content provided, but also the Name of the Zope-owner of the document (e.g patrick is owner of index_html --> that info is also displayed to the anonymous user)
Thanks for more help,
ok, i see what you want to do. i thought that you have a "author" property somewhere. i'm sorry to say that i can't be of any more help. i guess you can test for ownership of objects in zope since there exist a take ownership button. check the source, probably. zopeinstalldir/lib/python/AccessControl/Owned.py tell us what you got :)
p@
-- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine use Zope? then you got HOPE!
participants (2)
-
Bak @ kedai -
Patrick Koetter