[Zope] Python objects reference?
Florent Guillaume
fg@nuxeo.com
17 Oct 2001 12:49:27 GMT
Create an external method called "ihasattr" containing:
from Acquisition import aq_base
def ihasattr(self, obj, attr):
return hasattr(aq_base(obj), attr)
and use that function.
> But I only want my_index to become 0 when the object and ONLY then
> object, i. e. without acquisition, has the prop dirIndex.
> s. th. like in DTML:
> <dtml-if "_.hasattr(aq_explicit,'dirIndex')">
>
> Can anyone help me please? Where can I get information about python
> script? I looked at python.org, but didn't find what I was looking
> for...
--
Florent Guillaume, Nuxeo SARL (Paris, France)
+33 1 40 33 79 10 http://nuxeo.com mailto:fg@nuxeo.com