X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fxmlrule.py;h=46f360185153c8703a6a7664fbe501377e781d65;hb=57b6a99255d4a88be9c0f910f8524677e34ff4bc;hp=e21f9d863cd0183d75c5094e78001681f2580537;hpb=5f4f788db1dd59e8a5968e9118ff1feda89389dc;p=sfa.git diff --git a/sfatables/xmlrule.py b/sfatables/xmlrule.py index e21f9d86..46f36018 100644 --- a/sfatables/xmlrule.py +++ b/sfatables/xmlrule.py @@ -1,10 +1,11 @@ +import sys,os + import libxml2 # 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 * +from sfatables.globals import sfatables_config class XMLRule: def apply_processor(self, type, doc, output_xpath_filter=None): @@ -88,14 +89,13 @@ class XMLRule: # then target(target_args, rspec) # else rspec - import pdb if (self.match(rspec)): return (True,self.wrap_up(self.target(rspec))) else: return (False,self.wrap_up(rspec)) - def apply_compiled(rspec): + def apply_compiled(self, rspec): # Not supported yet return None