Changeset 2723
- Timestamp:
- 10/02/07 22:14:10 (6 years ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
install_scripts/windows/umit_compiled.nsi (modified) (1 diff)
-
umitCore/UmitConf.py (modified) (2 diffs)
-
umitGUI/MainWindow.py (modified) (1 diff)
-
umitGUI/ScanNotebook.py (modified) (6 diffs)
-
umitGUI/ScanOpenPortsPage.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/install_scripts/windows/umit_compiled.nsi
r1287 r2723 74 74 75 75 Section "Uninstall" 76 Delete "$INSTDIR\*"76 ;Delete "$INSTDIR\*" 77 77 Delete "$SMPROGRAMS\Umit" 78 78 RMDir "$INSTDIR" 79 79 RMDir "$SMPROGRAMS\Umit" 80 80 81 81 remove_uninstaller: 82 82 Delete "$INSTDIR\Umit-Uninstaller.exe" -
trunk/umitCore/UmitConf.py
r2678 r2723 195 195 196 196 def _get_it(self, profile, attribute): 197 if profile: 198 self._verify_profile(profile) 197 if self._verify_profile(profile): 199 198 return self.get(profile, attribute) 200 199 return "" 201 200 202 201 def _set_it(self, profile, attribute, value=''): 203 if profile: 204 self._verify_profile(profile) 202 if self._verify_profile(profile): 205 203 return self.set(profile, attribute, value) 206 204 … … 229 227 def _verify_profile(self, profile_name): 230 228 if profile_name not in self.sections(): 231 raise ProfileNotFound(profile_name) 229 return False 230 return True 232 231 233 232 class CommandProfile (Profile, object): -
trunk/umitGUI/MainWindow.py
r2719 r2723 356 356 page = self.scan_notebook.get_nth_page(page_num) 357 357 filename = None 358 358 359 if page == None: 360 return True 361 359 362 if page.status.unsaved_unchanged \ 360 363 or page.status.unsaved_changed\ -
trunk/umitGUI/ScanNotebook.py
r2719 r2723 950 950 key = model_service_list[i[0]][0] 951 951 if self.services.has_key(key): 952 serv_objs.append( key)952 serv_objs.append(self.services[key]) 953 953 954 954 # Removing current widgets from the host details page 955 955 self.clean_host_details() 956 956 957 957 if len(serv_objs) == 1: 958 958 self.set_single_service_host(serv_objs[0]['hosts']) … … 1108 1108 for p in ports: 1109 1109 host_page.add_port([self.findout_service_icon(p), 1110 p.get('portid', ''),1110 int(p.get('portid', '0')), 1111 1111 p.get('protocol', ''), 1112 1112 p.get('port_state', ''), … … 1122 1122 host_page.add_host([self.findout_service_icon(h), 1123 1123 h.get('hostname', ''), 1124 h.get('portid', ''),1124 int(h.get('portid', '0')), 1125 1125 h.get('protocol', ''), 1126 1126 h.get('port_state', ''), … … 1136 1136 for host in host_list: 1137 1137 parent = host_page.port_tree.append(None, [host['host'].\ 1138 get_hostname(), '','','','','', ''])1138 get_hostname(),0,'','','','', '']) 1139 1139 for port in host['host'].get_ports(): 1140 1140 for p in port.get('port', []): … … 1142 1142 ['', 1143 1143 self.findout_service_icon(p), 1144 p.get('portid', ""),1144 int(p.get('portid', "0")), 1145 1145 p.get('protocol', ''), 1146 1146 p.get('port_state', ""), … … 1155 1155 for host in service_list: 1156 1156 parent = host_page.host_tree.append(None, [host['service_name'], 1157 '','', '','','', '', ''])1157 '','',0,'','', '', '']) 1158 1158 for h in host['hosts']: 1159 1159 host_page.host_tree.append(parent, \ 1160 ['', self.findout_service_icon(h), 1160 ['', 1161 self.findout_service_icon(h), 1161 1162 h["hostname"], 1162 h.get('portid', ""),1163 int(h.get('portid', "0")), 1163 1164 h.get('protocol', ""), 1164 1165 h.get('port_state', _("Unknown")), -
trunk/umitGUI/ScanOpenPortsPage.py
r1195 r2723 25 25 from higwidgets.higtables import HIGTable 26 26 27 from umitCore.UmitLogging import log 27 28 from umitCore.I18N import _ 28 29 … … 51 52 # Ports view 52 53 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) 55 56 56 57 self.port_view = gtk.TreeView(self.port_list) … … 69 70 # Host services view 70 71 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) 73 74 74 75 self.host_view = gtk.TreeView(self.host_list) … … 242 243 243 244 def add_port(self, port_info): 245 log.debug(">>> Add Port: %s" % port_info) 244 246 self.port_list.append([""] + port_info) 245 247 246 248 def add_host(self, host_info): 249 log.debug(">>> Add Host: %s" % host_info) 247 250 self.host_list.append([""] + host_info) 248 251
