[Zope] Python objects reference?

Lars Heber Lars.Heber@t-systems.de
Tue, 16 Oct 2001 17:38:17 +0200


After receiving a snippet of python script, I finally decided to have a
closer look at that language, and I was surprised how simple and
comfortable it is. I think I'll like it!
But: Where can I find a reference for the objects I can use in those
scripts?
I received the following snippet:

try:
  my_index = context.dirIndex.
except:
  my_index = 0

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

TIA
--
Lars Heber, mailto:Lars.Heber@t-systems.de

T-Systems, debis Systemhaus GEI GmbH, Geschaeftsstelle Sachsen