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)
def editSuiteInit(self, member_list): return graph.suite(self.dbId, members=member_list)