Exemplo n.º 1
0
	def _insert_object(self, pane, obj):
		"Insert @obj in @pane: prepare the object, then emit pane-reset"
		sc = GetSourceController()
		sc.decorate_object(obj)
		self.emit("pane-reset", pane, search.wrap_rankable(obj))
Exemplo n.º 2
0
def dress_leaves(seq, action):
	"""yield items of @seq "dressed" by the source controller"""
	sc = GetSourceController()
	for itm in seq:
		sc.decorate_object(itm.object, action=action)
		yield itm
Exemplo n.º 3
0
 def _decorate_object(self, *objects):
     sc = GetSourceController()
     for obj in objects:
         sc.decorate_object(obj)
Exemplo n.º 4
0
	def _decorate_object(self, *objects):
		sc = GetSourceController()
		for obj in objects:
			sc.decorate_object(obj)
Exemplo n.º 5
0
def dress_leaves(seq, action):
    """yield items of @seq "dressed" by the source controller"""
    sc = GetSourceController()
    for itm in seq:
        sc.decorate_object(itm.object, action=action)
        yield itm