[Zope] python script ques

Aseem Mohanty aseem@neurobehavioralsystems.com
Mon, 10 Jun 2002 00:03:33 -0700

Hi all,

If I want to know whether or not an object bound to the 'context' 
variable in Python Script has a specific child, how do I do it?

For e.g.

    if context.[has_child]('help'):
        if context.help.[has_child](topic):
           path = context.help.absolute_url() + '/topic"
            path = None
    return path

Is there a "has_child" function? I tried to do some stuff with traversal 
but failed miserable (probably didnt understand it well enuff).

 Aseem Mohanty							   
 Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 
 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231		  	
 "I saw `cout' being shifted "Hello world" times to the left and  
  stopped right there!!"                        -- Steve Gonedes