def get_reports_by_group(self, group):
    for report in self.db['reports'].find({'group': group}).sort('author'):
        (yield report)
def get_reports_by_group(self, group):
    for report in self.db['reports'].find({'group': group}).sort('author'):
        (yield report)