Пример #1
0
 def __init__(self, node, i):
     self._node = node
     self._i = i
     key = "{0}:{1}".format(
         smart_text(i),
         smart_text(self._node),
     )
     self._position = get_slot(key)
Пример #2
0
 def get_node(self, key):
     i = bisect(self._nodes, get_slot(smart_text(key))) - 1
     return self._nodes[i]._node
Пример #3
0
 def __unicode__(self):
     return smart_text(self._versioned_key)
Пример #4
0
 def __unicode__(self):
     return smart_text(self._versioned_key)
Пример #5
0
 def deserialize(self, value):
     return json.loads(smart_text(value))
Пример #6
0
 def deserialize(self, value):
     return json.loads(smart_text(value))