git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleaning up...
[sfa.git]
/
sfatables
/
xmlrule.py
diff --git
a/sfatables/xmlrule.py
b/sfatables/xmlrule.py
index
c363ab9
..
55796a9
100644
(file)
--- a/
sfatables/xmlrule.py
+++ b/
sfatables/xmlrule.py
@@
-42,7
+42,11
@@
class XMLRule:
return stylesheet_result
def wrap_up(self, rspec):
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)
styledoc = libxml2.parseFile(filepath)
style = libxslt.parseStylesheetDoc(styledoc)