예제 #1
0
 def loadSuite(self, dbId, perms='ro'):
     log.debug(graph.suites)
     if int(dbId) in graph.suites:
         log.debug('returning a cached suite')
         # check for ownership and handle perms correctly
         # set permissions for myself (by myself) to perms
         return graph.suites[int(dbId)].setPermissions(self.dbId, self.dbId, perms)
     else:
         return graph.suite(self.dbId, dbId=dbId, perms=perms)
예제 #2
0
 def editSuiteInit(self, member_list):
     return graph.suite(self.dbId, members=member_list)