def get_children(self, obj):
        """ Get the object's children. """

        # fixme: This could be uglier, but I can't work out how ;^)
        index = 0
        children = []
        for extension in obj.__extension_registry__.get_extensions(obj.id):
            parent = SingleValueTreeNodeObject(value=obj, _index=index)
            children.append(parent.node_for('', extension))
            index += 1

        return children
    def get_children(self, obj):
        """ Get the object's children. """

        # fixme: This could be uglier, but I can't work out how ;^)
        index    = 0
        children = []
        for extension in obj.__extension_registry__.get_extensions(obj.id):
            parent = SingleValueTreeNodeObject(value=obj, _index=index)
            children.append(parent.node_for('', extension))
            index += 1

        return children
Beispiel #3
0
    def get_children(self, obj):
        """ Get the object's children. """

        svtno = SingleValueTreeNodeObject()

        nodes = []
        for service in obj.services:
            node = svtno.node_for(repr(service.obj), service.obj)
            node._protocol_ = obj.name
            node._service_id_ = service.id
            nodes.append(node)

        return nodes
    def get_children(self, obj):
        """ Get the object's children. """

        svtno = SingleValueTreeNodeObject()

        nodes = []
        for service in obj.services:
            node = svtno.node_for(repr(service.obj), service.obj)
            node._protocol_   = obj.name
            node._service_id_ = service.id
            nodes.append(node)

        return nodes