X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fxmlrule.py;h=55796a9d9b88c9579e8e46b4917ed9ac1c56e0cc;hb=11857b3cae673afaf5c9cab28ea77814a5527642;hp=fb0ef79da458b80cada46144e17857d01f19edbd;hpb=de9697271869dfd4a488eeb1a9dacb881f7e5f07;p=sfa.git diff --git a/sfatables/xmlrule.py b/sfatables/xmlrule.py index fb0ef79d..55796a9d 100644 --- a/sfatables/xmlrule.py +++ b/sfatables/xmlrule.py @@ -17,7 +17,7 @@ class XMLRule: processor = self.processors[type] # XXX TO CLEAN UP - filepath = 'processors/' + processor + filepath = os.path.join(sfatables_config, 'processors', processor) # XXX styledoc = libxml2.parseFile(filepath) @@ -42,7 +42,11 @@ class XMLRule: return stylesheet_result def wrap_up(self, rspec): - filepath = 'processors/' + self.final_processor + filepath = os.path.join(sfatables_config, 'processors', self.final_processor) + + if not os.path.exists(filepath): + # TODO: final_processor is not there yet + return rspec styledoc = libxml2.parseFile(filepath) style = libxslt.parseStylesheetDoc(styledoc)