35 # Helpers |
35 # Helpers |
36 #------------------------------------------------------------------------------- |
36 #------------------------------------------------------------------------------- |
37 |
37 |
38 |
38 |
39 def GetDirFilterChoiceOptions(): |
39 def GetDirFilterChoiceOptions(): |
40 _ = lambda x : x |
40 _ = lambda x: x |
41 return [(_("All"), [LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY]), |
41 return [(_("All"), [LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY]), |
42 (_("Input"), [LOCATION_VAR_INPUT]), |
42 (_("Input"), [LOCATION_VAR_INPUT]), |
43 (_("Output"), [LOCATION_VAR_OUTPUT]), |
43 (_("Output"), [LOCATION_VAR_OUTPUT]), |
44 (_("Memory"), [LOCATION_VAR_MEMORY])] |
44 (_("Memory"), [LOCATION_VAR_MEMORY])] |
45 DIRFILTERCHOICE_OPTIONS = dict([(_(option), filter) for option, filter in GetDirFilterChoiceOptions()]) |
45 DIRFILTERCHOICE_OPTIONS = dict([(_(option), filter) for option, filter in GetDirFilterChoiceOptions()]) |
46 |
46 |
47 |
47 |
48 def GetTypeFilterChoiceOptions(): |
48 def GetTypeFilterChoiceOptions(): |
49 _ = lambda x : x |
49 _ = lambda x: x |
50 return [_("All"), |
50 return [_("All"), |
51 _("Type and derivated"), |
51 _("Type and derivated"), |
52 _("Type strict")] |
52 _("Type strict")] |
53 |
53 |
54 # turn LOCATIONDATATYPES inside-out |
54 # turn LOCATIONDATATYPES inside-out |