<s> from zebra . conf import options <EOL> AUDIT_RESULTS = options . ZEBRA_AUDIT_RESULTS <EOL> def audit_customer_subscription ( customer , unknown = True ) : <EOL> """<STR_LIT>""" <EOL> if ( hasattr ( customer , '<STR_LIT>' ) and customer . suspended ) : <EOL> result = AUDIT_RESULTS [ '<STR_LIT>' ] <EOL> else : <EOL> if hasattr ( customer , '<STR_LIT>' ) : <EOL> try : <EOL> result = AUDIT_RESULTS [ customer . subscription . status ] <EOL> except KeyError , err : <EOL> raise Exception ( "<STR_LIT>" ) % str ( err ) <EOL> else : <EOL> result = AUDIT_RESULTS [ '<STR_LIT>' ] <EOL> return result </s>
