示例#1
0
 def _branch(self, data):
     key = data.get('_key')
     return db.get(key) if key else db.get_branch(data['_name'])
示例#2
0
 def get_branch(self, iq, data):
     return self._dumps(iq, db.get_branch(data) if data else db.branches())