[Zope-dev] Object ownership

Toby Dickenson tdickenson@geminidataloggers.com
Wed, 15 Dec 1999 09:51:11 -0000


> is there a method that i could use to find out an object's owner?

I have this in my Intranet standard_html_header. (Its also a good example of
dtml gone wild)


<dtml-if get_local_roles>
    <dtml-in get_local_roles>
        <dtml-if "'Owner' in _['sequence-item'] and _['sequence-key'] !=
'za'">
            <dtml-if one_owner_already_mentioned>
                ;
             <dtml-else>
                This page is maintained by
               <dtml-call
"REQUEST.set('one_owner_already_mentioned','yes')">
            </dtml-if>
            <a href="mailto:<dtml-var sequence-key>"><dtml-var
sequence-key></a>
        </dtml-if>
    </dtml-in>
    <dtml-if one_owner_already_mentioned>
    </dtml-if>
</dtml-if>