[Zope-dev] Re: security problem in an monkey-patch

2007-09-19 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joachim Schmitz wrote: Hi, I have monkey-patched the QueueCatalog to adopt it to our needs, which works fine. I now wanted to introduce a new feature: The QueueCatalog should be bypassed during mass-import of data. So I introduced a new

[Zope-dev] Re: security problem in an monkey-patch

2007-09-19 Thread Joachim Schmitz
Tres Seaver schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 security.declareProtected(view_management_screens, 'getBypassQueue') def getBypassQueue(self): get _by_pass if not hasattr(self,_bypass): self._bypass = False return self._bypass I would write this