63 if retain: |
63 if retain: |
64 options.append(_("Retain")) |
64 options.append(_("Retain")) |
65 if non_retain: |
65 if non_retain: |
66 options.append(_("Non-Retain")) |
66 options.append(_("Non-Retain")) |
67 return options |
67 return options |
|
68 |
|
69 |
68 OPTIONS_DICT = dict([(_(option), option) for option in GetOptions()]) |
70 OPTIONS_DICT = dict([(_(option), option) for option in GetOptions()]) |
69 |
71 |
70 |
72 |
71 def GetFilterChoiceTransfer(): |
73 def GetFilterChoiceTransfer(): |
72 _ = lambda x: x |
74 _ = lambda x: x |
73 return {_("All"): _("All"), _("Interface"): _("Interface"), |
75 return {_("All"): _("All"), _("Interface"): _("Interface"), |
74 _(" Input"): _("Input"), _(" Output"): _("Output"), _(" InOut"): _("InOut"), |
76 _(" Input"): _("Input"), _(" Output"): _("Output"), _(" InOut"): _("InOut"), |
75 _(" External"): _("External"), _("Variables"): _("Variables"), _(" Local"): _("Local"), |
77 _(" External"): _("External"), _("Variables"): _("Variables"), _(" Local"): _("Local"), |
76 _(" Temp"): _("Temp"), _("Global"): _("Global")} #, _("Access") : _("Access")} |
78 _(" Temp"): _("Temp"), _("Global"): _("Global")} #, _("Access") : _("Access")} |
|
79 |
|
80 |
77 VARIABLE_CHOICES_DICT = dict([(_(_class), _class) for _class in GetFilterChoiceTransfer().iterkeys()]) |
81 VARIABLE_CHOICES_DICT = dict([(_(_class), _class) for _class in GetFilterChoiceTransfer().iterkeys()]) |
78 VARIABLE_CLASSES_DICT = dict([(_(_class), _class) for _class in GetFilterChoiceTransfer().itervalues()]) |
82 VARIABLE_CLASSES_DICT = dict([(_(_class), _class) for _class in GetFilterChoiceTransfer().itervalues()]) |
79 |
83 |
80 CheckOptionForClass = {"Local": lambda x: x, |
84 CheckOptionForClass = {"Local": lambda x: x, |
81 "Temp": lambda x: "", |
85 "Temp": lambda x: "", |