Changeset 3863


Ignore:
Timestamp:
Mar 9, 2017, 2:35:36 PM (2 years ago)
Author:
daduve
Message:

Enter test for debs in deb_list

Location:
lliurex-remote-installer/trunk/fuentes/lliurex-remote-installer-gui.install/usr/share/lliurex-remote-installer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-remote-installer/trunk/fuentes/lliurex-remote-installer-gui.install/usr/share/lliurex-remote-installer/DebBox.py

    r3853 r3863  
    122122                        fcb.destroy()
    123123                        pkg=os.path.basename(deb_url)
     124                        extension=os.path.splitext(pkg)[1]
     125                        if extension not in [".deb",".DEB"]:
     126                                self.error_extension_dialog(pkg)
     127                                fcb.destroy()
     128                                return False
    124129                        #Compruebo si es un paquete nuevo de la lista
    125130                        if pkg not in self.core.current_var["deb"]["packages"]:
     
    371376        # #### DIALOGS ################### #
    372377       
     378        def error_extension_dialog(self,pkg_name):
     379               
     380                main_window=self.core.lri.main_window
     381                dialog=Dialog.ErrorDialog(main_window,"Error in Extension","This %s package has not the extension required.\nPlease only DEB packages in this list."%pkg_name)
     382                response=dialog.run()
     383                dialog.destroy()
     384               
     385               
     386                return True
     387               
     388        #def delete_package_dialog
     389       
    373390       
    374391        def delete_package_dialog(self,pkg_name):
  • lliurex-remote-installer/trunk/fuentes/lliurex-remote-installer-gui.install/usr/share/lliurex-remote-installer/lliurex-remote-installer.ui

    r3854 r3863  
    388388  <object class="GtkWindow" id="main_window">
    389389    <property name="width_request">800</property>
    390     <property name="height_request">780</property>
     390    <property name="height_request">680</property>
    391391    <property name="can_focus">False</property>
    392392    <property name="window_position">center</property>
Note: See TracChangeset for help on using the changeset viewer.