[Zope] dummy class security problem

Chris Withers chrisw@nipltd.com
Wed, 07 Mar 2001 19:16:37 +0000


magnus/Websys@websys.no wrote:
> 
> of the mail.  Any suggestions for making the 'name' property of
> _dummy 'public' to Zope?
> 

Try changing :

> class _dummy:
>     def __init__(self, name):
>         self.name=name

to:

class _dummy:
    def __init__(self, name):
         self._name=_name

    name__roles__=None
    def name(self):
	return _name

cheers,

Chris