[Zope-dev] Object ownership

Michel Pelletier michel@digicool.com
Wed, 15 Dec 1999 10:10:34 -0500


> -----Original Message-----
> From: Toby Dickenson [mailto:tdickenson@geminidataloggers.com]
> Sent: Wednesday, December 15, 1999 4:51 AM
> To: zope-dev@zope.org
> Subject: RE: [Zope-dev] Object ownership
> 
> 
> > 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>

There is an Owner method for cataloging purposes for catalog aware
objects, or there was at one point.  I have it in my bag for attaching
to portal objects when we move into content managment.  I think
something like this should be part of the framework, though.

-Michel