Commit fe181101 authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Eteri

Data Bucket Stream: add method getKeyByIndex

parent cfc1f948
...@@ -264,6 +264,12 @@ class DataBucketStream(Document): ...@@ -264,6 +264,12 @@ class DataBucketStream(Document):
""" """
key = self._long_index_tree[index] key = self._long_index_tree[index]
return self.getBucketByKey(key).value return self.getBucketByKey(key).value
def getKeyByIndex(self, index):
"""
Get the bucket key by a given index
"""
return self._long_index_tree[index]
def hasBucketKey(self, key): def hasBucketKey(self, key):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment