[TransWarp] Component hierarchy traversal

Phillip J. Eby pje at telecommunity.com
Fri Oct 10 16:54:01 EDT 2003


At 07:35 PM 10/10/03 +0200, Radek Kanovsky wrote:
>     def computeValue (self, comp, instanceDict, attrName) :
>         root = binding.lookupComponent(self, ICommandRoot)
>         root._registerCommand(comp, self.cmdname, self.cmd)
>         return self.cmd

That should be:

         root = binding.lookupComponent(comp, ICommandRoot)

I changed that, and this is the output I get:

======
Registered commands:

Command 'foo':
    /*/bar    <__main__.Bar object at 0x01B61240>
    /*/foo    <__main__.Foo object at 0x01B752A0>

Command 'bar':
    /*/bar    <__main__.Bar object at 0x01B61240>

======




More information about the PEAK mailing list