def disable_user(self, email): user = NAMESPACE.session.query(Builder).filter_by(email=email).first() if not user: raise ValueError("No user with email %s." % email) user.pgp = "0000000000000000DEADBEEF0000000000000000" user.ssl = "0000000000000000DEADBEEF0000000000000000" clean_ssl_keyring(self.ssl_keyring, NAMESPACE.session) return user.debilize()
def disable_builder(self, name): builder = NAMESPACE.session.query(Builder).filter_by(name=name).first() if not builder: raise ValueError("No builder with name %s." % name) builder.pgp = "0000000000000000DEADBEEF0000000000000000" builder.ssl = "0000000000000000DEADBEEF0000000000000000" clean_ssl_keyring(self.ssl_keyring, NAMESPACE.session) return builder.debilize()
def update_user_keys(self, email, pgp, ssl): user = NAMESPACE.session.query(Person).filter_by(email=email).first() if not user: raise ValueError("No user with email %s." % email) user.pgp = import_pgp(self.pgp_keyring, pgp) user.ssl = import_ssl(self.ssl_keyring, ssl, user.name, user.email) clean_ssl_keyring(self.ssl_keyring, NAMESPACE.session) return user.debilize()
def update_builder_keys(self, name, pgp, ssl): builder = NAMESPACE.session.query(Builder).filter_by(name=name).first() if not builder: raise ValueError("No builder with name %s." % name) builder.pgp = import_pgp(self.pgp_keyring, pgp) builder.ssl = import_ssl(self.ssl_keyring, ssl, builder.name) clean_ssl_keyring(self.ssl_keyring, NAMESPACE.session) return builder.debilize()
def disable_user(self, email): if self.ssl_keyring is None: # TODO raise Exception user = NAMESPACE.session.query(Builder).filter_by(email=email).first() if not user: raise ValueError("No user with email %s." % email) user.pgp = "0000000000000000DEADBEEF0000000000000000" user.ssl = "0000000000000000DEADBEEF0000000000000000" clean_ssl_keyring(self.ssl_keyring, NAMESPACE.session) return user.debilize()
def update_user_keys(self, email, pgp, ssl): if self.ssl_keyring is None: # TODO raise Exception user = NAMESPACE.session.query(Person).filter_by(email=email).first() if not user: raise ValueError("No user with email %s." % email) user.pgp = import_pgp(self.pgp_keyring, pgp) user.ssl = import_ssl(self.ssl_keyring, ssl, user.name, user.email) clean_ssl_keyring(self.ssl_keyring, NAMESPACE.session) return user.debilize()
def disable_builder(self, name): if self.ssl_keyring is None: # TODO raise Exception builder = NAMESPACE.session.query(Builder).filter_by(name=name).first() if not builder: raise ValueError("No builder with name %s." % name) builder.pgp = "0000000000000000DEADBEEF0000000000000000" builder.ssl = "0000000000000000DEADBEEF0000000000000000" clean_ssl_keyring(self.ssl_keyring, NAMESPACE.session) return builder.debilize()
def update_builder_keys(self, name, pgp, ssl): if self.ssl_keyring is None: # TODO raise Exception builder = NAMESPACE.session.query(Builder).filter_by(name=name).first() if not builder: raise ValueError("No builder with name %s." % name) builder.pgp = import_pgp(self.pgp_keyring, pgp) builder.ssl = import_ssl(self.ssl_keyring, ssl, builder.name) clean_ssl_keyring(self.ssl_keyring, NAMESPACE.session) return builder.debilize()