@@ -24,7 +24,7 | |||||
24 |
|
24 | |||
25 | def setupUi2(self): |
|
25 | def setupUi2(self): | |
26 | print 'hi' |
|
26 | print 'hi' | |
27 | self.txtDpath.setText('/home/ricardoar/') |
|
27 | self.txtDpath.setText('/home/ricardoar/optional/STORAGE/EW_DRIFTS/') | |
28 | self.txtRpath.setText('/home/ricardoar/optional/STORAGE/prueba1_jro_backup_manager/') |
|
28 | self.txtRpath.setText('/home/ricardoar/optional/STORAGE/prueba1_jro_backup_manager/') | |
29 |
|
29 | |||
30 | @pyqtSignature("") |
|
30 | @pyqtSignature("") | |
@@ -210,6 +210,29 | |||||
210 | #else: |
|
210 | #else: | |
211 | # self.txtInfo.append('Carpetas creadas correctamente') |
|
211 | # self.txtInfo.append('Carpetas creadas correctamente') | |
212 |
|
212 | |||
|
213 | var_sublist = [] | |||
213 | for i in self.var_list[self.lstStartDay.currentIndex():self.lstStartDay.currentIndex() + self.lstStopDay.currentIndex()+1]: |
|
214 | for i in self.var_list[self.lstStartDay.currentIndex():self.lstStartDay.currentIndex() + self.lstStopDay.currentIndex()+1]: | |
214 | self.txtInfo.append(i) |
|
215 | self.txtInfo.append(i) | |
215 |
|
216 | var_sublist.append(i) | ||
|
217 | ||||
|
218 | var_Dpath=self.txtDpath.text() | |||
|
219 | var_Dtype=self.txtDtype.text() | |||
|
220 | ||||
|
221 | for var_doy in var_sublist | |||
|
222 | var_cmd="find " + str(var_Dpath) + " -name ?"+var_doy+"???."+ str(var_Dtype) | |||
|
223 | var_output=commands.getstatusoutput(var_cmd)[1] | |||
|
224 | ||||
|
225 | ||||
|
226 | #Se cargan las listas para seleccionar StartDay y StopDay | |||
|
227 | self.var_list=[] | |||
|
228 | for i in range(0, (len(output_p2)+1)/8): | |||
|
229 | self.var_list.append(output_p2[8*i:8*(i+1)-1]) | |||
|
230 | ||||
|
231 | self.lstStartDay.clear() | |||
|
232 | self.lstStopDay.clear() | |||
|
233 | ||||
|
234 | for i in self.var_list: | |||
|
235 | self.lstStartDay.addItem(i) | |||
|
236 | self.lstStopDay.addItem(i) | |||
|
237 | ||||
|
238 | self.lstStopDay.setCurrentIndex(self.lstStartDay.count()-1) |
General Comments 0
You need to be logged in to leave comments.
Login now