Index: bk_manager/trunk/functions/functions.py =================================================================== diff --git a/bk_manager/trunk/functions/functions.py b/bk_manager/trunk/functions/functions.py --- a/bk_manager/trunk/functions/functions.py (revision 47) +++ b/bk_manager/trunk/functions/functions.py (revision 48) @@ -52,6 +52,9 @@ if self.statusDpath == False: self.btnGbkp.setEnabled(False) return + + if self.var_Dtype == '': + return var_cmd="find " + str(self.var_Dpath) + " -name *."+ str(self.var_Dtype) +" | awk -F/ '{print substr($NF,2,7)}' | sort| uniq" output=commands.getstatusoutput(var_cmd)[1] Index: bk_manager/trunk/ui/MainWindow.py =================================================================== diff --git a/bk_manager/trunk/ui/MainWindow.py b/bk_manager/trunk/ui/MainWindow.py --- a/bk_manager/trunk/ui/MainWindow.py (revision 47) +++ b/bk_manager/trunk/ui/MainWindow.py (revision 48) @@ -40,12 +40,14 @@ self.var_Elabel = self.txtElabel.text() self.var_Copys = self.txtCopys.value() self.var_Dcapacity = self.txtDcapacity.value() * 1024 - + self.var_n_discs=0 self.var_list=[] self.var_sublist=[] functions2.detect_devices(self) #busca los dispositivos de grabacion + functions.load_days(self) + def write(self, txt): @@ -100,23 +102,20 @@ """ Permite elegir entre los tipos de archivos """ + self.txtDtype.setReadOnly(True) if index == 0: var_type='r' elif index == 1: var_type='pdata' elif index == 2: var_type='sswma' - - if index != 3: - self.txtDtype.setText(var_type) - self.txtDtype.setReadOnly(True) - self.var_Dtype=self.txtDtype.text() - functions.load_days(self) - - else: - self.txtDtype.setText('') + else : + var_type='' self.txtDtype.setReadOnly(False) - + + self.txtDtype.setText(var_type) + self.on_txtDtype_editingFinished() + @pyqtSignature("") def on_txtDtype_editingFinished(self): @@ -247,33 +246,28 @@ self.btnStartburn.setEnabled(False) self.btnStopburn.setEnabled(True) - return - sys.stdout = self #sys.stderr = self print "stdout_!!!" #Inicializando variables - var_Rpath=self.txtRpath.text() - var_Rpath_ppath=var_Rpath+"/ppath" - var_Rpath_iso=var_Rpath+"/iso" - var_label=self.txtElabel.text() - + var_Rpath_ppath=self.var_Rpath+"/ppath" + var_Rpath_iso=self.var_Rpath+"/iso" + # Se leen todos los archivos .dat creados para crear las etiquetas en los archivos .ps - for var_n in range(0, self.var_n_discs+1): - print var_n - + for var_n in range(1, self.var_n_discs+1): + self.txtInfo.append(str(var_n)) file_iso=var_Rpath_iso+"/"+functions.i2s(var_n)+".iso" - file_dat=var_Rpath_ppath+"/"+self.txtElabel.text()+"_"+functions.i2s(var_n)+".dat" + file_dat=var_Rpath_ppath+"/"+self.var_Elabel+"_"+functions.i2s(var_n)+".dat" var_cmd = 'genisoimage -hide-joliet-trans-tbl -joliet-long -r ' - var_cmd += ' -A '+var_label+' -V '+var_label + var_cmd += ' -A '+self.var_Elabel+' -V '+self.var_Elabel var_cmd += ' -graft-points -path-list '+ file_dat+' -o '+file_iso self.txtInfo.append(var_cmd) - - var_output=commands.getstatusoutput(str(var_cmd))[0] - self.txtInfo.append(str(var_output)) - +# +# var_output=commands.getstatusoutput(str(var_cmd))[0] +# self.txtInfo.append(str(var_output)) +# #os.system(str(var_cmd)) #p = subprocess.Popen(str('ls /'), shell=True, stdout=self) #os.waitpid(p.pid, 0) @@ -312,5 +306,3 @@ var_dev = str(self.txtDeviceD.text()) var_cmd = 'eject ' + var_dev + '; eject -t ' + var_dev commands.getstatusoutput(var_cmd) - -