- XMLRule.final_processor is not there yet, skip if not found for the moment.
class SFATablesRules:
def __init__(self, chain_name):
class SFATablesRules:
def __init__(self, chain_name):
- self.context = None # placeholder for rspec_manger
+ self.contexts = None # placeholder for rspec_manger
self.sorted_rule_list = []
chain_dir_path = os.path.join(sfatables_config,chain_name)
rule_list = List().get_rule_list(chain_dir_path)
self.sorted_rule_list = []
chain_dir_path = os.path.join(sfatables_config,chain_name)
rule_list = List().get_rule_list(chain_dir_path)
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)