Beispiel #1
0
 def get_projects(self, uid=None):
     """Retrieve list of projects"""
     if uid:
         result = db.project_get_by_user(context.get_admin_context(), uid)
     else:
         result = db.project_get_all(context.get_admin_context())
     return [self._db_project_to_auth_projectuser(proj) for proj in result]
Beispiel #2
0
 def get_projects(self, uid=None):
     """Retrieve list of projects"""
     if uid:
         result = db.project_get_by_user(context.get_admin_context(), uid)
     else:
         result = db.project_get_all(context.get_admin_context())
     return [self._db_project_to_auth_projectuser(proj) for proj in result]