On Mon, 23 Oct 2000 15:59:24 +0100, Chris Withers <[EMAIL PROTECTED]>
wrote:
(untested hints to follow)
>> class MyProduct(OFS.SimpleItem.SimpleItem):
>> """...
>> """
>>
>> __ac_permissions__=(
>> ('Use MyProduct' , ('a_method',),('Manager',)),
>> )
>>
>> a_methodisDocTemp=1
>>
>> def a_method(self,ignored,md):
>> list = []
>> for name in self.get_contents():
>> list.append(DisplayClass(name,self))
list.append(DisplayClass(name,self).__of__(self))
>>
>> return list
>
>The important bits of DisplayClass look like:
>
>> class DisplayClass(Globals.Persistent):
class DisplayClass(Globals.Persistent, Acquisition.Implicit):
>> """ """
>>
>> __allow_access_to_unprotected_subobjects__=1
>>
>> meta_type = 'CaseDisplay'
>>
>> __ac_permissions__=(
>> ('View', ('get_name',),('Anonymous',)),
>> )
>
Toby Dickenson
[EMAIL PROTECTED]
_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )