def _ignore(self, name): if name == Attribute.getTypeName(): return True if name == Option.getTypeName(): return True if name == Object.getInstanceQualifier(): return True return False
def __init__(self, factories=None, *args, **kwargs): super(Renderable,self).__init__(factories=factories, *args, **kwargs) self._resolvedAssetPaths = False self.instanced = False self.instanceid = Renderable._instanceid self.attributes = self.getMember(Attribute.getTypeName()) self.options = self.getMember(Option.getTypeName()) Renderable._instanceid += 1
def addAttribute(self, name, paramsdict): attr = Attribute(name) for key, val in paramsdict.iteritems(): attr.addParameter(key, val) self.attributes.append(attr)
def _initMembersDict(self): # import pdb; pdb.set_trace() super(Renderable, self)._initMembersDict() self._members[Attribute.getTypeName()] = [Attribute, []] self._members[Option.getTypeName()] = [Option, []]