def __init__(self, identifier, cata_file_path, file_format = "python",
default = False, code = None, user_name = None,
- selectable = True):
+ selectable = True, file_format_in = "python"):
"""
This class can be used to describe an Eficas catalog.
else:
self.user_name = user_name
self.selectable = selectable
+ self.file_format_in = file_format_in
@staticmethod
def create_from_tuple(cata_tuple):
- print "Warning: Describing a catalog with a tuple is deprecated. " \
- "Please create a CatalogDescription instance directly."
+ #print "Warning: Describing a catalog with a tuple is deprecated. " \
+ # "Please create a CatalogDescription instance directly."
desc = CatalogDescription(code = cata_tuple[0],
identifier = cata_tuple[1],
cata_file_path = cata_tuple[2],
file_format = cata_tuple[3])
- if len(cata_tuple) == 5 and cata_tuple[4] == "defaut":
+ if len(cata_tuple) == 5 :
+ if cata_tuple[4] == "defaut":
desc.default = True
+ else:
+ desc = CatalogDescription(code = cata_tuple[0],
+ identifier = cata_tuple[1],
+ cata_file_path = cata_tuple[2],
+ file_format = cata_tuple[3],
+ file_format_in = cata_tuple[4])
return desc
if self.version_code == cata.identifier:
self.fic_cata = cata.cata_file_path
self.appliEficas.format_fichier = cata.file_format
+ self.appliEficas.format_fichier_in = cata.file_format_in
else:
cata_choice_list = []
for cata in liste_cata_possibles:
self.fic_cata = cata_choice_list[0].cata_file_path
self.version_code = cata_choice_list[0].identifier
self.appliEficas.format_fichier = cata_choice_list[0].file_format
+ self.appliEficas.format_fichier_in = cata_choice_list[0].file_format_in
lab=QString("Eficas ")
lab+=QString(self.VERSION_EFICAS)
lab+=QString(" pour ")
self.fic_cata = cata.cata_file_path
self.version_code = self.version_cata
self.appliEficas.format_fichier = cata.file_format
+ self.appliEficas.format_fichier_in = cata.file_format_in
lab+=self.version_cata
self.appliEficas.setWindowTitle(lab)
#qApp.mainWidget().setCaption(lab)
#print self.fic_cata_clef
f=open(self.fic_cata_clef)
except:
- print "Pas de fichier associe contenant des clefs documentaires"
+ #print "Pas de fichier associe contenant des clefs documentaires"
return
dict_clef_docu={}