From 601896f1143516105ef8b5f7d48ad479297719dd Mon Sep 17 00:00:00 2001 From: Anil-Kumar Vengalil Date: Wed, 10 Feb 2010 16:49:27 +0000 Subject: [PATCH] proper fault string to user whose account is disabled, but attempts to extract user credentials from the registry --- sfa/util/faults.py | 7 +++++++ 1 file changed, 7 insertions(+) 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) + -- 2.43.0