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