Exemplo n.º 1
0
    def AddObject(self, name, sources, objtype, **kwargs):
        add_props = {'sources': sources}

        table = ParsePropertyTable(kwargs)
        for k, v in table.iteritems():
            add_props[k] = add_props.get(k, []) + v

        # For all GN property:value pairs in the environment
        for k, v in self.add_attributes.iteritems():
            add_props[k] = add_props.get(k, []) + v

        self.tracker.AddObject(name, objtype, add_props, self.del_attributes)
Exemplo n.º 2
0
  def AddObject(self, name, sources, objtype, **kwargs):
    add_props = { 'sources': sources }

    table = ParsePropertyTable(kwargs)
    for k,v in table.iteritems():
      add_props[k] = add_props.get(k, []) + v

    # For all GN property:value pairs in the environment
    for k,v in self.add_attributes.iteritems():
      add_props[k] = add_props.get(k, []) + v

    self.tracker.AddObject(name, objtype, add_props, self.del_attributes)
Exemplo n.º 3
0
 def FilterOut(self, **kwargs):
     table = ParsePropertyTable(kwargs)
     for k, v in table.iteritems():
         self.del_attributes[k] = self.del_attributes.get(k, []) + v
Exemplo n.º 4
0
 def Append(self, **kwargs):
     table = ParsePropertyTable(kwargs)
     for k, v in table.iteritems():
         self.add_attributes[k] = self.add_attributes.get(k, []) + v
Exemplo n.º 5
0
 def FilterOut(self, **kwargs):
   table = ParsePropertyTable(kwargs)
   for k,v in table.iteritems():
     self.del_attributes[k] = self.del_attributes.get(k,[]) + v
Exemplo n.º 6
0
 def Append(self, **kwargs):
   table = ParsePropertyTable(kwargs)
   for k,v in table.iteritems():
     self.add_attributes[k] = self.add_attributes.get(k,[]) + v