Exemplo n.º 1
0
 def getDataInterfacesList(self, type_interface="import"):
     interfaces = list()
     if type_interface == "export":
         interfaces = instruments.get_instrument_export_interfaces()
     elif type_interface == "import":
         interfaces = instruments.get_instrument_import_interfaces()
     interfaces = map(lambda imp: (imp[0], imp[1].title), interfaces)
     interfaces.sort(lambda x, y: cmp(x[1].lower(), y[1].lower()))
     interfaces.insert(0, ('', t(_('None'))))
     return DisplayList(interfaces)
Exemplo n.º 2
0
 def getDataInterfaces(self):
     return get_instrument_import_interfaces()