X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fxmlrule.py;h=e21f9d863cd0183d75c5094e78001681f2580537;hb=69f9779c682758ffd3b939d7bbe949e08fb806dd;hp=ea73a4f1f158512cd3ea38522419c17f52a30797;hpb=02ad775013d04ed357b4af502757134ebf888365;p=sfa.git diff --git a/sfatables/xmlrule.py b/sfatables/xmlrule.py index ea73a4f1..e21f9d86 100644 --- a/sfatables/xmlrule.py +++ b/sfatables/xmlrule.py @@ -1,5 +1,9 @@ import libxml2 -import libxslt +# allow to run sfa2wsdl if this is missing (for mac) +import sys +try:import libxslt +except: print >>sys.stderr, "WARNING, could not import libxslt" + from sfatables.globals import * class XMLRule: @@ -84,11 +88,10 @@ class XMLRule: # then target(target_args, rspec) # else rspec + import pdb if (self.match(rspec)): - print "Matched!" return (True,self.wrap_up(self.target(rspec))) else: - print "Not Matched!" return (False,self.wrap_up(rspec))