Did I find the right examples for you? yes no

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)
set up the Troy property interface -- allow normal properties (set as
extensible), and initialize from a given dictionary (`inits`).  If inits
is of any other type than dict, we attempt to cast it to a dict.

src/t/r/troy-0.0.3/troy/workload/compute_unit_description.py   troy(Download)
    def __init__ (self, descr={}) :
 
        tu.Properties.__init__ (self, descr)
 
        # register properties

src/t/r/troy-0.0.3/troy/overlay/overlay_description.py   troy(Download)
            descr = dict()
 
        tu.Properties.__init__ (self, descr)
 
        # register properties

src/t/r/troy-0.0.3/troy/overlay/pilot_description.py   troy(Download)
    def __init__ (self, descr={}) :
 
        # initialize properties
        tu.Properties.__init__ (self, descr)
 

src/t/r/troy-0.0.3/troy/workload/task_description.py   troy(Download)
        self.outputs           = list()
 
        tu.Properties.__init__ (self, descr)
 
 
 
        # we need to re-initialize our properties with the expanded dict values
        tu.Properties.__init__ (self, td_dict)
 
 

src/t/r/troy-0.0.3/troy/workload/relation.py   troy(Download)
            raise ValueError ("no 'tail' in RelationDescription")
 
        tu.Properties.__init__ (self, descr)
 
        # register properties

src/t/r/troy-0.0.3/troy/workload/task.py   troy(Download)
        self.session  = session
 
        tu.Properties.__init__ (self, descr)
 
        # register properties

src/t/r/troy-0.0.3/troy/workload/relation_description.py   troy(Download)
        # FIXME
 
        tu.Properties.__init__ (self, descr)
 
 

src/t/r/troy-0.0.3/troy/workload/compute_unit.py   troy(Download)
 
        # set properties which are known from the description
        tu.Properties.__init__ (self, descr)
 
        # register properties

src/t/r/troy-0.0.3/troy/overlay/pilot.py   troy(Download)
            self.overlay.timed_component (self, 'troy.Pilot', self.id)
 
        tu.Properties.__init__ (self, descr)
 
        # register properties

src/t/r/troy-0.0.3/troy/overlay/overlay.py   troy(Download)
        self.session.timed_component (self, 'troy.Overlay', self.id)
 
        tu.Properties.__init__ (self, descr)
 
        # register properties, initialize state

  1 | 2  Next