def getProjects(self, userdata=None): if userdata and self.isLowPrivilegeUser(userdata): project_owned = projectdata.projectowners(user=userdata).query() return map((lambda x: x['project']), project_owned) else: projq = projectdata.projects() return projq.query()
def getProjects(self): projq = projectdata.projects() return projq.query()