def get(self, name, user_zone=""): query = self.sess.query(UserGroup).filter(UserGroup.name == name) try: result = query.one() except NoResultFound: raise UserGroupDoesNotExist() return iRODSUserGroup(self, result)
def get(self, name, user_zone=""): query = self.sess.query(UserGroup).filter(UserGroup.name == name) try: result = query.one() except NoResultFound: raise UserGroupDoesNotExist() return iRODSUserGroup(self, result)