Re: [Zope-dev] Zope 2.7 memory behaviour

2004-03-25 Thread Stefan Doerig
Dieter Maurer wrote: Your test looks quite innocent. I tried to reproduce it (about 5.000 ab requests against something similar to your mon-clear) and could not see any memory leak. Especially, no HTTPRequest or ImplicitAcquirerWrapper were leaked. However, you may have an AccessRule (or some

Re: [Zope-dev] manage_access patch

2004-03-25 Thread Chris Withers
Johan Carlsson wrote: So where should I send the patch, I'm not currently active as a Zope contributor. Whack it in the collector... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___

Re: [Zope-dev] Pointless exception re-raising in DA.py

2004-03-25 Thread Chris Withers
Clemens Robbenhaar wrote: Ok, if this is the proper dance to catch such exceptions with Zope without risking ZODB corruption I will go with it. So far I have not been sure, that ConflictError is the only type needing special treatement in these cases. Well, the PROPER dance would be to only catch

Re: [Zope-dev] Pointless exception re-raising in DA.py

2004-03-25 Thread Chris Withers
Dieter Maurer wrote: try: DB__=dbc() except: exc_type, exc_value, trc = sys.exc_info() raise DatabaseError('%s is not connected to a database' % self.id, exc_type, exc_value), trc I didn't know you could re-raise a traceback like

Re: [Zope-dev] PageTemplateFile vs. Bindings vs. Security

2004-03-25 Thread Chris Withers
Shane Hathaway wrote: That sounds mighty handy. What needs to happen for that to happen? A voluntary volunteer needs to volunteer voluntarily. I think I was offering to be such a person. So, what would such a person need to do? Chris -- Simplistix - Content Management, Zope Python Consulting

Re: [Zope-dev] Pointless exception re-raising in DA.py

2004-03-25 Thread Andrew Bennetts
On Thu, Mar 25, 2004 at 10:23:27AM +, Chris Withers wrote: Dieter Maurer wrote: try: DB__=dbc() except: exc_type, exc_value, trc = sys.exc_info() raise DatabaseError('%s is not connected to a database' % self.id, exc_type,

Re: [Zope-dev] PageTemplateFile vs. Bindings vs. Security

2004-03-25 Thread Martijn Faassen
Shane Hathaway wrote: There certainly ought to be a way to create an unrestricted PageTemplateFile, though it should be an explicit step. That is a good suggestion. I'd like that option. It would also be a potential performance benefit. On the other hand, in situations where the PageTemplate

Re: [Zope-dev] PageTemplateFile vs. Bindings vs. Security

2004-03-25 Thread Jamie Heilman
Martijn Faassen wrote: Shane Hathaway wrote: There certainly ought to be a way to create an unrestricted PageTemplateFile, though it should be an explicit step. That is a good suggestion. I'd like that option. It would also be a potential performance benefit. On the other hand, in

Re: [Zope-dev] PageTemplateFile vs. Bindings vs. Security

2004-03-25 Thread Dario Lopez-Ksten
Jamie Heilman wrote: Martijn Faassen wrote: On the other hand, in situations where the PageTemplate designers are *not* security conscious (they're designers, not primarily programmers) the option of explicit checks is useful. PageTemplateFile is a class used by Product authors, just like

Re: [Zope-dev] Catching (external database connectivity) specific exceptions; was: Pointless exception re-raising in DA.py

2004-03-25 Thread Clemens Robbenhaar
Chris Withers writes: Clemens Robbenhaar wrote: Ok, if this is the proper dance to catch such exceptions with Zope without risking ZODB corruption I will go with it. So far I have not been sure, that ConflictError is the only type needing special treatement in these cases.

Re: [Zope-dev] PageTemplateFile vs. Bindings vs. Security

2004-03-25 Thread Martijn Faassen
Jamie Heilman wrote: Martijn Faassen wrote: Shane Hathaway wrote: There certainly ought to be a way to create an unrestricted PageTemplateFile, though it should be an explicit step. That is a good suggestion. I'd like that option. It would also be a potential performance benefit. On the other

Re: [Zope-dev] PageTemplateFile vs. Bindings vs. Security

2004-03-25 Thread Martijn Faassen
Dario Lopez-Ksten wrote: Jamie Heilman wrote: Martijn Faassen wrote: On the other hand, in situations where the PageTemplate designers are *not* security conscious (they're designers, not primarily programmers) the option of explicit checks is useful. PageTemplateFile is a class used by

Re: [Zope-dev] PageTemplateFile vs. Bindings vs. Security

2004-03-25 Thread Dario Lopez-Ksten
Martijn Faassen wrote: I'm advocating an explicit option to disable security checks here. I'm just also advocating that the current behavior can be sensible in certain circumstances. This is the only backwards compatible way anyway. +1 Anyway, I disagree on the general philosophical point that