def add_object ( self , obj ) : if obj . top_level_object : if isinstance ( obj , DotNetNamespace ) : self . namespaces [ obj . name ] = obj self . objects [ obj . id ] = obj
a pythonobject is not attached to a node
Add object to local and app environment storage
def add_object(self, obj):
        """Add object to local and app environment storage

        :param obj: Instance of a .NET object
        """
        if obj.top_level_object:
            if isinstance(obj, DotNetNamespace):
                self.namespaces[obj.name] = obj
        self.objects[obj.id] = obj