Ejemplo n.º 1
0
    def get(self):
        from ConcurrenTree.wrapper import make

        addr, n = self.context.get()
        if addr == None:
            return None
        return make(n, self.childsink(addr))
Ejemplo n.º 2
0
	def wrapper(self, *args):
		from ConcurrenTree import wrapper
		return wrapper.make(self, *args)
Ejemplo n.º 3
0
 def wrapper(self, *args):
     from ConcurrenTree import wrapper
     return wrapper.make(self, *args)
Ejemplo n.º 4
0
 def __getitem__(self, i):
     if type(i) == slice:
         return [self[x] for x in range(*i.indices(len(self)))]
     from ConcurrenTree.wrapper import make
     addr, n = self.context.get(i)
     return make(n, self.childsink(addr))
Ejemplo n.º 5
0
	def __getitem__(self, i):
		if type(i) == slice:
			return [self[x] for x in range(*i.indices(len(self)))]
		from ConcurrenTree.wrapper import make
		addr, n = self.context.get(i)
		return make(n, self.childsink(addr))
Ejemplo n.º 6
0
 def get(self):
     from ConcurrenTree.wrapper import make
     addr, n = self.context.get()
     if addr == None:
         return None
     return make(n, self.childsink(addr))
Ejemplo n.º 7
0
	def childnode(self, node, address):
		# Create a child wrapper based on a childsink
		from ConcurrenTree.wrapper import make
		return make(node, self.childsink(address))