def active(self, d): projects = Project.Active(self.user) self.set_response({ 'projects': [p.json() for p in projects] }, success=True)