예제 #1
0
 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()
예제 #2
0
	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()
예제 #4
0
 def getProjects(self):
     projq = projectdata.projects()
     return projq.query()