##// END OF EJS Templates
***
ralonso -
r11:12
parent child
Show More
@@ -57,34 +54,39
57 #output_p2= p2.communicate()[0] No newline at end of file
54 #output_p2= p2.communicate()[0]
58 #self.txtInfo.setText(output_p2) No newline at end of file
55 #self.txtInfo.setText(output_p2)
59 No newline at end of file
56
57 var_Dpath=self.txtDpath.text() No newline at end of file
60
58
No newline at end of file
59 #Se verifica que la ruta exista y sea un directorio No newline at end of file
61 var_Dpath=self.txtDpath.text() No newline at end of file
62 var_cmd="test -d "+str(var_Dpath) No newline at end of file
60 var_cmd="test -d "+str(var_Dpath)
63 var_output=commands.getstatusoutput(var_cmd)[0] No newline at end of file
61 var_output=commands.getstatusoutput(var_cmd)[0]
64 if var_output != 0:
62 if var_output != 0:
No newline at end of file
63 self.txtInfo.setText("Ruta no valida, output_error:" + str(var_output)) No newline at end of file
65 self.txtInfo.setText(str(var_output)) No newline at end of file
66 return No newline at end of file
64 return
67
65
No newline at end of file
66 #Se buscan los archivos del tipo especificado No newline at end of file
68 No newline at end of file
69 var_Dtype=self.txtDtype.text() No newline at end of file
67 var_Dtype=self.txtDtype.text()
70 var_cmd="find " + str(var_Dpath) + " -name *."+ str(var_Dtype) +" | awk -F/ '{print substr($NF,2,7)}' | sort| uniq" No newline at end of file
68 var_cmd="find " + str(var_Dpath) + " -name *."+ str(var_Dtype) +" | awk -F/ '{print substr($NF,2,7)}' | sort| uniq"
71 output_p2=commands.getstatusoutput(var_cmd)[1] No newline at end of file
69 output_p2=commands.getstatusoutput(var_cmd)[1]
72 No newline at end of file
70
71 #INFO: Muestra los dias que se encontraron No newline at end of file
73 self.txtInfo.setText(output_p2) No newline at end of file
72 self.txtInfo.setText(output_p2)
74
73
No newline at end of file
74 #Se cargan las listas para seleccionar StartDay y StopDay
75 var_list=[] No newline at end of file
No newline at end of file
75 self.var_list=[] No newline at end of file
76 for i in range(0, (len(output_p2)+1)/8):
76 for i in range(0, (len(output_p2)+1)/8):
No newline at end of file
77 self.var_list.append(output_p2[8*i:8*(i+1)-1]) No newline at end of file
77 var_list.append(output_p2[8*i:8*(i+1)-1]) No newline at end of file
78 No newline at end of file
78
79 self.lstStartDay.clear() No newline at end of file
79 self.lstStartDay.clear()
80 self.lstStopDay.clear() No newline at end of file
80 self.lstStopDay.clear()
81
81
No newline at end of file
82 for i in self.var_list: No newline at end of file
82 for i in var_list: No newline at end of file
83 self.lstStartDay.addItem(i) No newline at end of file
83 self.lstStartDay.addItem(i)
84 self.lstStopDay.addItem(i) No newline at end of file
84 self.lstStopDay.addItem(i)
85
85
No newline at end of file
86 self.txtInfo.setText(str(self.lstStartDay.count())) No newline at end of file
87 self.lstStopDay.setCurrentIndex(self.lstStartDay.count()-1) No newline at end of file
86 self.lstStopDay.setCurrentIndex(self.lstStartDay.count()-1)
87
No newline at end of file
88 #INFO: Muestra cuantos dias se encontraron
No newline at end of file
89 # self.txtInfo.setText(str(self.lstStartDay.count())) No newline at end of file
88 No newline at end of file
90
89 @pyqtSignature("int") No newline at end of file
91 @pyqtSignature("int")
90 def on_lstDtype_activated(self, index): No newline at end of file
92 def on_lstDtype_activated(self, index):
@@ -154,7 +154,11
154 <widget class="QLineEdit" name="txtElabel"/> No newline at end of file
154 <widget class="QLineEdit" name="txtElabel"/>
155 </item> No newline at end of file
155 </item>
156 <item>
156 <item>
No newline at end of file
157 <widget class="QLineEdit" name="txtCopys">
157 <widget class="QLineEdit" name="txtCopys"/> No newline at end of file
No newline at end of file
158 <property name="text">
No newline at end of file
159 <string>0</string>
No newline at end of file
160 </property>
No newline at end of file
161 </widget> No newline at end of file
158 </item> No newline at end of file
162 </item>
159 </layout> No newline at end of file
163 </layout>
160 </item> No newline at end of file
164 </item>
@@ -2,7 +2,7
2 No newline at end of file
2
3 # Form implementation generated from reading ui file '/home/ricardoar/principal/JRO_SVN/eric4/jro_backup_manager/ui/MainWindow.ui' No newline at end of file
3 # Form implementation generated from reading ui file '/home/ricardoar/principal/JRO_SVN/eric4/jro_backup_manager/ui/MainWindow.ui'
4 #
4 #
No newline at end of file
5 # Created: Mon Apr 26 11:25:08 2010 No newline at end of file
5 # Created: Mon Apr 26 10:36:51 2010 No newline at end of file
6 # by: PyQt4 UI code generator 4.7.2 No newline at end of file
6 # by: PyQt4 UI code generator 4.7.2
7 # No newline at end of file
7 #
8 # WARNING! All changes made in this file will be lost! No newline at end of file
8 # WARNING! All changes made in this file will be lost!
General Comments 0
You need to be logged in to leave comments. Login now