##// END OF EJS Templates
funciones ok, botones ok...
ralonso -
r46:47
parent child
Show More
@@ -19,16 +19,15
19 No newline at end of file
19
20 No newline at end of file
20
21 #Crea directorios en la ruta indicada
21 #Crea directorios en la ruta indicada
No newline at end of file
22 def make_dirs(list_dirs, self):
22 def make_dirs(var_path, list_dirs, self):
No newline at end of file
No newline at end of file
23 var_cmd="mkdir -p "+str(self.var_Rpath) No newline at end of file
23 var_cmd="mkdir -p "+str(var_path) No newline at end of file
24 for var_dir in list_dirs: No newline at end of file
24 for var_dir in list_dirs:
25 var_output=commands.getstatusoutput(var_cmd+'/'+var_dir)[0]
25 var_output=commands.getstatusoutput(var_cmd+'/'+var_dir)[0]
No newline at end of file
26 print var_cmd+'/'+var_dir No newline at end of file
27 if var_output != 0: No newline at end of file
26 if var_output != 0:
28 self.txtInfo.append("Error al crear el directorio "+var_dir+", output_error:" + str(var_output))
27 self.txtInfo.append("Error al crear el directorio "+var_dir+", output_error:" + str(var_output))
No newline at end of file
28 return False No newline at end of file
29 return
No newline at end of file
30 else: No newline at end of file
31 self.txtInfo.append('Carpetas creadas correctamente') No newline at end of file
29 self.txtInfo.append('Carpetas creadas correctamente')
30 return True No newline at end of file
32 No newline at end of file
31
33 No newline at end of file
32
34 #Se verifica que la ruta exista y sea un directorio No newline at end of file
33 #Se verifica que la ruta exista y sea un directorio
@@ -19,7 +19,9
19 self.txtElabel.setText('EW_DRIFTS') No newline at end of file
19 self.txtElabel.setText('EW_DRIFTS')
20 self.statusDpath = True No newline at end of file
20 self.statusDpath = True
21 self.statusRpath = True
21 self.statusRpath = True
No newline at end of file
22 self.lstDcapacity.setCurrentIndex(4)
22 self.var_n_files=0 No newline at end of file
No newline at end of file
23 self.txtDcapacity.setValue(100.0)
No newline at end of file
24 self.txtDcapacity.setReadOnly(False) No newline at end of file
23 No newline at end of file
25
24 No newline at end of file
26
25 def detect_devices(self): No newline at end of file
27 def detect_devices(self):
@@ -1,7 +1,7
1 <?xml version="1.0" encoding="UTF-8"?> No newline at end of file
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE Project SYSTEM "Project-4.6.dtd"> No newline at end of file
2 <!DOCTYPE Project SYSTEM "Project-4.6.dtd">
3 <!-- eric4 project file for project jro_backup_manager -->
3 <!-- eric4 project file for project jro_backup_manager -->
No newline at end of file
4 <!-- Saved: 2010-05-17, 12:04:38 --> No newline at end of file
4 <!-- Saved: 2010-05-16, 23:51:59 --> No newline at end of file
5 <!-- Copyright (C) 2010 , --> No newline at end of file
5 <!-- Copyright (C) 2010 , -->
6 <Project version="4.6"> No newline at end of file
6 <Project version="4.6">
7 <Language>en</Language> No newline at end of file
7 <Language>en</Language>
@@ -29,21 +29,22
29 No newline at end of file
29
30 def setupUi2(self): No newline at end of file
30 def setupUi2(self):
31 No newline at end of file
31
32 self.statusDpath = False
No newline at end of file
33 self.statusRpath = False
No newline at end of file
34
No newline at end of file
35 functions2.set_parameters(self) #Establece ciertos parametros, para pruebas
No newline at end of file
36 No newline at end of file
32 self.var_Dpath = self.txtDpath.text() No newline at end of file
37 self.var_Dpath = self.txtDpath.text()
33 self.var_Rpath = self.txtRpath.text()
38 self.var_Rpath = self.txtRpath.text()
No newline at end of file
34 self.statusDpath = False
No newline at end of file
35 self.statusRpath = False
No newline at end of file
36 No newline at end of file
37 self.var_Dtype = self.txtDtype.text() No newline at end of file
39 self.var_Dtype = self.txtDtype.text()
38 self.var_Elabel = self.txtElabel.text() No newline at end of file
40 self.var_Elabel = self.txtElabel.text()
39 self.var_Copys = self.txtCopys.value() No newline at end of file
41 self.var_Copys = self.txtCopys.value()
40 self.var_Dcapacity = self.txtDcapacity.value() * 1024 No newline at end of file
42 self.var_Dcapacity = self.txtDcapacity.value() * 1024
41
43
No newline at end of file
44 self.var_n_discs=0 No newline at end of file
42 self.var_n_files=0 No newline at end of file
43 self.var_list=[] No newline at end of file
45 self.var_list=[]
44 self.var_sublist=[] No newline at end of file
46 self.var_sublist=[]
45
47
No newline at end of file
46 functions2.set_parameters(self) #Establece ciertos parametros, para pruebas No newline at end of file
47 functions2.detect_devices(self) #busca los dispositivos de grabacion No newline at end of file
48 functions2.detect_devices(self) #busca los dispositivos de grabacion
48 No newline at end of file
49
49 No newline at end of file
50
@@ -6,7 +6,7
6 <rect> No newline at end of file
6 <rect>
7 <x>0</x> No newline at end of file
7 <x>0</x>
8 <y>0</y>
8 <y>0</y>
No newline at end of file
9 <width>806</width> No newline at end of file
9 <width>754</width> No newline at end of file
10 <height>737</height> No newline at end of file
10 <height>737</height>
11 </rect> No newline at end of file
11 </rect>
12 </property> No newline at end of file
12 </property>
General Comments 0
You need to be logged in to leave comments. Login now