print out explicit warning when xmlsec1 cannot be found in PATH
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 19 Sep 2012 10:08:13 +0000 (12:08 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 19 Sep 2012 10:08:13 +0000 (12:08 +0200)
sfa/trust/credential.py

index 8631f1b..a32a49a 100644 (file)
@@ -272,6 +272,8 @@ class Credential(object):
             if os.path.isfile(path + '/' + 'xmlsec1'):
                 self.xmlsec_path = path + '/' + 'xmlsec1'
                 break
+        if not self.xmlsec_path:
+            logger.warn("Could not locate binary for xmlsec1 - SFA will be unable to sign stuff !!")
 
     def get_subject(self):
         if not self.gidObject: