19 Apr
2002
19 Apr
'02
6:19 p.m.
Dennis Allison writes:
... Now, to decide whether to include a note or not, I need to look at the contents of the childNode, in particular, it's attributes. But how does one reference the child node instance to enquire about its nodeName, for example. The obvious approach
child.__get_nodeName()
fails in an External Method (the code is in the Python-level Extensions directory, not the Product's own Extension directory--is that a problem?). Zope does not use attribute names beginning with "_" for public use.
The correct name for the method is "getNodeName", defined in "OFS.ZDOM.Element". With my "DocFinder" product <http://www.dieter.handshake.de/pyprojects/zope> you can easily find out what methods an object supports.... Dieter