code
stringlengths
3
6.57k
self._obtain_certificate(domains, csr)
obtain_and_enroll_certificate(self, domains)
self.obtain_certificate(domains)
vars(self.config.namespace)
configuration.RenewerConfiguration(self.config.namespace)
path(s)
crypto_util.dump_pyopenssl_chain(chain)
os.path.dirname(path)
os.geteuid()
le_util.unique_file(cert_path, 0o644)
cert_file.write(cert_pem)
cert_file.close()
crypto_util.dump_pyopenssl_chain(chain_cert)
_save_chain(chain_pem, chain_path)
os.path.abspath(act_cert_path)
path (optional)
errors.Error("No installer available")
os.path.abspath(chain_path)
error_handler.ErrorHandler(self.installer.recovery_routine)
os.path.abspath(cert_path)
os.path.abspath(privkey_path)
self.installer.save()
self.installer.save("Deployed Let's Encrypt Certificate")
error_handler.ErrorHandler(self._rollback_and_restart, msg)
self.installer.restart()
enhance_config(self, domains, config)
errors.Error("No installer available")
logger.warning("No config is specified.")
errors.Error("No config available")
enhancements.ask("redirect")
self.apply_enhancement(domains, "redirect")
error_handler.ErrorHandler(self._rollback_and_restart, msg)
self.installer.restart()
apply_enhancement(self, domains, enhancement, options=None)
error_handler.ErrorHandler(self._recovery_routine_with_msg, msg)
self.installer.enhance(dom, enhancement, options)
self.installer.save("Add enhancement %s" % (enhancement)
_recovery_routine_with_msg(self, success_msg)
self.installer.recovery_routine()
zope.component.getUtility(interfaces.IReporter)
reporter.add_message(success_msg, reporter.HIGH_PRIORITY)
_rollback_and_restart(self, success_msg)
logger.critical("Rolling back to previous server configuration...")
zope.component.getUtility(interfaces.IReporter)
self.installer.rollback_checkpoints()
self.installer.restart()
reporter.add_message(success_msg, reporter.HIGH_PRIORITY)
validate_key_csr(privkey, csr=None)
crypto_util.valid_privkey(privkey.pem)
errors.Error("The provided key is not a valid key")
crypto_util.valid_csr(csr.data)
errors.Error("The provided CSR is not a valid CSR")
errors.Error("The key and CSR do not match")
rollback(default_installer, checkpoints, config, plugins)
installer.rollback_checkpoints(checkpoints)
installer.restart()
view_config_changes(config)
reverter.Reverter(config)
rev.recovery_routine()
rev.view_config_changes()
_save_chain(chain_pem, chain_path)
le_util.unique_file(chain_path, 0o644)
chain_file.write(chain_pem)
chain_file.close()
logger.info("Cert chain written to %s", act_chain_path)
os.path.abspath(act_chain_path)
TestFullFrameModel()
setup_class(cls)
FullFrameModel()
TimeHandler()
checkFrame(self, flux, maxAdc, comX, comY)
test_parametersAfterConstruction(self)
test_frameCalculations(self)
GaussianCamera()
camera.startup()
camera.getFullFrame()
self.model.calculateCentroid(frame)
test_badFrameCalculation(self)
np.ones((480, 640)
pytest.raises(FrameRejected)
self.model.calculateCentroid(frame)
test_failedFrameCheck(self)
GaussianCamera()
camera.startup()
camera.getFullFrame()
pytest.raises(FrameRejected)
self.model.calculateCentroid(frame)
Copyright (C)
Association (OCA)
GAL (https://twitter.com/legalsylvain)
later (http://www.gnu.org/licenses/agpl.html)
OdooModule(models.Model)
Authors (Text)
Series (Text)
api.depends("module_version_ids.image")
_compute_image(self)
api.depends("technical_name", "module_version_ids.name")
_compute_name(self)
api.depends("module_version_ids", "module_version_ids.description_rst_html")
_compute_description(self)