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
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
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
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
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
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.