Re: [Zope] declarePublic function

2009-01-28 Thread Milos Prudek
As the bottom of my email stated, use declareObjectPublic() in this case. The rest of the security calls are then somewhat redundant, Yes, I used your advice and it seems to have resolved the issue. Thank you! -- Milos Prudek ___ Zope maillist -

[Zope] declarePublic function

2009-01-27 Thread Milos Prudek
I would like to upgrade my site from Zope 2.7.x to Zope 2.10.x When I try to run my site under Zope 2.10.x, I get this exception: class JMZPTMacros: File /home/orl/Zope/Products/JMZPTMacros/JMZPTMacros.py, line 28, in JMZPTMacros security.declarePublic() TypeError: declarePublic() takes

Re: [Zope] declarePublic function

2009-01-27 Thread Martijn Pieters
On Tue, Jan 27, 2009 at 14:06, Milos Prudek pru...@bvx.cz wrote: I would like to upgrade my site from Zope 2.7.x to Zope 2.10.x When I try to run my site under Zope 2.10.x, I get this exception: class JMZPTMacros: File /home/orl/Zope/Products/JMZPTMacros/JMZPTMacros.py, line 28, in

Re: [Zope] declarePublic function

2009-01-27 Thread Milos Prudek
JMZPTMacros. Most likely, the author meant to protect the method right below that line. To illustrate, the code probably looks something like: security.declarePublic() def someMethod(self, REQUEST): Actually, it does not look like that. It is not followed by method definition. Here is

Re: [Zope] declarePublic function

2009-01-27 Thread Martijn Pieters
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