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