From: Anil-Kumar Vengalil Date: Wed, 10 Feb 2010 16:49:27 +0000 (+0000) Subject: proper fault string to user whose account is disabled, but attempts to extract user... X-Git-Tag: sfa-0.9-11~116 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=601896f1143516105ef8b5f7d48ad479297719dd proper fault string to user whose account is disabled, but attempts to extract user credentials from the registry --- diff --git a/sfa/util/faults.py b/sfa/util/faults.py index d1f070ca..c8331535 100644 --- a/sfa/util/faults.py +++ b/sfa/util/faults.py @@ -263,3 +263,10 @@ class InvalidRSpec(SfaFault): def __str__(self): return repr(self.value) +class AccountNotEnabled(SfaFault): + def __init__(self, extra = None): + faultString = "Account Disabled" + SfaFault.__init__(self, 108, faultString, extra) + def __str__(self): + return repr(self.value) +