X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fxmlextension.py;h=dcc04190ec2b919bde71f2845ccaad65cdba8e6c;hb=da2277e5c5302ec4cf4f8af39f444945ef781934;hp=809ea367abe144f747c82db697e21347ac84f289;hpb=50d80230b924e20e028ed3c0f13ddd6f98cfbe54;p=sfa.git diff --git a/sfatables/xmlextension.py b/sfatables/xmlextension.py index 809ea367..dcc04190 100644 --- a/sfatables/xmlextension.py +++ b/sfatables/xmlextension.py @@ -5,12 +5,10 @@ # - The parameters that the processor needs to evaluate the context import libxml2 -from sfatables.globals import * class Xmlextension: def __init__(self, file_path): - print file_path self.context = "" self.processor = "" self.operand = "VALUE" @@ -39,7 +37,7 @@ class Xmlextension: context = p.xpathEval('//attributes/attribute[@terminal="yes"]') self.terminal = (context != []) - self.arguments = map(lambda (name,help,target):{'name':name.content,'help':help.content,'target':target.content}, zip(name,help,target)) + self.arguments = [{'name':name_help_target[0].content,'help':name_help_target[1].content,'target':name_help_target[2].content} for name_help_target in zip(name,help,target)] p.xpathFreeContext() self.xmldoc.freeDoc()