On Tue, Jan 27, 2009 at 16:31, Milos Prudek <pru...@bvx.cz> wrote:
> Actually, it does not look like that. It is not followed by method definition.
> Here is all the context:
>
> class JMZPTMacros:
>  #All the ZPT Objects will be loaded as attributes of my
>  #JMZPTMacros class
>
>  security=ClassSecurityInfo()
>  security.declarePublic()

<snip>

> So, since there are many correct calls of declarePublic(), what does the
> incorrect (paremeter-less) call near the top of the class do?

As the bottom of my email stated, use declareObjectPublic() in this
case. The rest of the security calls are then somewhat redundant,
probably put in because the first declarePublic didn't do what the
author expected of it..

-- 
Martijn Pieters
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to