Re: [Zope-dev] is an object in a folder

2004-08-26 Thread Christian Theune
Am Di, den 24.08.2004 schrieb Florent Guillaume um 17:48: from Acquisition import aq_base ... def hasObject(self, id): Test if an object is in the current object. if hasattr(aq_base(self), id): return 1 return 0 It would be nice

Re: [Zope-dev] is an object in a folder

2004-08-26 Thread Maciej Pietrzak
On Thu, Aug 26, 2004 at 08:29:19AM +0200, Christian Theune wrote: Am Di, den 24.08.2004 schrieb Florent Guillaume um 17:48: from Acquisition import aq_base ... def hasObject(self, id): Test if an object is in the current object. if

Re: [Zope-dev] APE leaving SQL transactions open

2004-08-26 Thread Paolo Bizzarri
Hi Shane, we have a PostgreSQL DA object in place, but we are not using it in our tests. Hope this helps. Best regards. Paolo One thing I wonder, though, is whether you're simultaneously connecting to Postgres using a Zope database adapter. It shouldn't matter, but who knows, maybe it

[Zope-dev] Protected session items?

2004-08-26 Thread Lennart Regebro
In TransientObject __guarded_setitem__ is just set to __setitem__. This means, that everything you set in the session dictionary is changeable through user code. Is there a good reason for this? I think it would be nice if I could set secret things in the session, mainly authentication

[Zope-dev] Re: is an object in a folder

2004-08-26 Thread sureshvv
Why not: def hasObject(self, id): Test if an object is in the current object. return id in self.objectIds() Suresh Florent Guillaume [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'd like to add a method like def hasObject(self, id): Test

Re: [Zope-dev] Protected session items?

2004-08-26 Thread Chris McDonough
On Thu, 2004-08-26 at 11:06, Lennart Regebro wrote: In TransientObject __guarded_setitem__ is just set to __setitem__. This means, that everything you set in the session dictionary is changeable through user code. Is there a good reason for this? I don't think __guarded_setitem__ is at fault.