From 4348b5f8c4677443f47f3d5c906549825b25ec72 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Tue, 1 Dec 2009 17:17:15 -0500 Subject: Add NotImplementedError type so CA plugins can return client-friendly errors Ignore NotImplementedError when revoking a certificate as this isn't implemented in the selfsign plugin. Also use the new type argument in x509.load_certificate(). Certificates are coming out of LDAP as binary instead of base64-encoding. --- ipalib/errors.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ipalib/errors.py') diff --git a/ipalib/errors.py b/ipalib/errors.py index d94d2b070..d1d39a378 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -746,6 +746,14 @@ class PasswordMismatch(InvocationError): errno = 3011 format = _('Passwords do not match') +class NotImplementedError(InvocationError): + """ + **3012** Raise when a function hasn't been implemented. + """ + + errno = 3012 + format = _('Command not implemented') + ############################################################################## # 4000 - 4999: Execution errors -- cgit