Changeset 2723

Show
Ignore:
Timestamp:
10/02/07 22:14:10 (6 years ago)
Author:
boltrix
Message:

Fixed a bug, and now I'm trying to put uninstaller to work properly.

Location:
trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/install_scripts/windows/umit_compiled.nsi

    r1287 r2723  
    7474 
    7575Section "Uninstall" 
    76     Delete "$INSTDIR\*" 
     76    ;Delete "$INSTDIR\*" 
    7777    Delete "$SMPROGRAMS\Umit" 
    7878    RMDir "$INSTDIR" 
    7979    RMDir "$SMPROGRAMS\Umit" 
    80    
     80 
    8181  remove_uninstaller: 
    8282      Delete "$INSTDIR\Umit-Uninstaller.exe"   
  • trunk/umitCore/UmitConf.py

    r2678 r2723  
    195195 
    196196    def _get_it(self, profile, attribute): 
    197         if profile: 
    198             self._verify_profile(profile) 
     197        if self._verify_profile(profile): 
    199198            return self.get(profile, attribute) 
    200199        return "" 
    201200 
    202201    def _set_it(self, profile, attribute, value=''): 
    203         if profile: 
    204             self._verify_profile(profile) 
     202        if self._verify_profile(profile): 
    205203            return self.set(profile, attribute, value) 
    206204 
     
    229227    def _verify_profile(self, profile_name): 
    230228        if profile_name not in self.sections(): 
    231             raise ProfileNotFound(profile_name) 
     229            return False 
     230        return True 
    232231 
    233232class CommandProfile (Profile, object): 
  • trunk/umitGUI/MainWindow.py

    r2719 r2723  
    356356        page = self.scan_notebook.get_nth_page(page_num) 
    357357        filename = None 
    358          
     358 
     359        if page == None: 
     360            return True 
     361 
    359362        if page.status.unsaved_unchanged \ 
    360363               or page.status.unsaved_changed\ 
  • trunk/umitGUI/ScanNotebook.py

    r2719 r2723  
    950950            key = model_service_list[i[0]][0] 
    951951            if self.services.has_key(key): 
    952                 serv_objs.append(key) 
     952                serv_objs.append(self.services[key]) 
    953953 
    954954        # Removing current widgets from the host details page 
    955955        self.clean_host_details() 
    956          
     956 
    957957        if len(serv_objs) == 1: 
    958958            self.set_single_service_host(serv_objs[0]['hosts']) 
     
    11081108        for p in ports: 
    11091109            host_page.add_port([self.findout_service_icon(p), 
    1110                                 p.get('portid', ''), 
     1110                                int(p.get('portid', '0')), 
    11111111                                p.get('protocol', ''), 
    11121112                                p.get('port_state', ''), 
     
    11221122            host_page.add_host([self.findout_service_icon(h), 
    11231123                                h.get('hostname', ''), 
    1124                                 h.get('portid', ''), 
     1124                                int(h.get('portid', '0')), 
    11251125                                h.get('protocol', ''), 
    11261126                                h.get('port_state', ''), 
     
    11361136        for host in host_list: 
    11371137            parent = host_page.port_tree.append(None, [host['host'].\ 
    1138                                             get_hostname(),'','','','','', '']) 
     1138                                            get_hostname(),0,'','','','', '']) 
    11391139            for port in host['host'].get_ports(): 
    11401140                for p in port.get('port', []): 
     
    11421142                                ['', 
    11431143                                 self.findout_service_icon(p), 
    1144                                  p.get('portid', ""), 
     1144                                 int(p.get('portid', "0")), 
    11451145                                 p.get('protocol', ''), 
    11461146                                 p.get('port_state', ""), 
     
    11551155        for host in service_list: 
    11561156            parent = host_page.host_tree.append(None, [host['service_name'], 
    1157                                                        '','','','','', '', '']) 
     1157                                                       '','',0,'','', '', '']) 
    11581158            for h in host['hosts']: 
    11591159                host_page.host_tree.append(parent, \ 
    1160                                            ['', self.findout_service_icon(h), 
     1160                                           ['', 
     1161                                            self.findout_service_icon(h), 
    11611162                                            h["hostname"], 
    1162                                             h.get('portid', ""), 
     1163                                            int(h.get('portid', "0")), 
    11631164                                            h.get('protocol', ""), 
    11641165                                            h.get('port_state', _("Unknown")), 
  • trunk/umitGUI/ScanOpenPortsPage.py

    r1195 r2723  
    2525from higwidgets.higtables import HIGTable 
    2626 
     27from umitCore.UmitLogging import log 
    2728from umitCore.I18N import _ 
    2829 
     
    5152        # Ports view 
    5253        self.port_columns = {} 
    53         self.port_list = gtk.ListStore(str, str, str, str, str, str, str) 
    54         self.port_tree = gtk.TreeStore(str, str, str, str, str, str, str) 
     54        self.port_list = gtk.ListStore(str, str, int, str, str, str, str) 
     55        self.port_tree = gtk.TreeStore(str, str, int, str, str, str, str) 
    5556         
    5657        self.port_view = gtk.TreeView(self.port_list) 
     
    6970        # Host services view 
    7071        self.host_columns = {} 
    71         self.host_list = gtk.ListStore(str, str, str, str, str, str, str, str) 
    72         self.host_tree = gtk.TreeStore(str, str, str, str, str, str, str, str) 
     72        self.host_list = gtk.ListStore(str, str, str, int, str, str, str, str) 
     73        self.host_tree = gtk.TreeStore(str, str, str, int, str, str, str, str) 
    7374         
    7475        self.host_view = gtk.TreeView(self.host_list) 
     
    242243     
    243244    def add_port(self, port_info): 
     245        log.debug(">>> Add Port: %s" % port_info) 
    244246        self.port_list.append([""] + port_info) 
    245247 
    246248    def add_host(self, host_info): 
     249        log.debug(">>> Add Host: %s" % host_info) 
    247250        self.host_list.append([""] + host_info) 
    248251