Changeset 714
- Timestamp:
- 05/23/07 12:31:44 (6 years ago)
- Files:
-
- 1 modified
-
branch/umitdb/datahandler/dbdatahandler.py (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branch/umitdb/datahandler/dbdatahandler.py
r713 r714 105 105 106 106 #print "Comment:", host.comment 107 temp_d["distance"] = 'Empty'107 temp_d["distance"] = empty() 108 108 temp_d["uptime"] = host.uptime["seconds"] 109 109 temp_d["lastboot"] = host.uptime["lastboot"] … … 203 203 scan_d["args"] = parsedsax.nmap["nmaprun"]["args"] 204 204 scan_d["start"] = parsedsax.nmap["nmaprun"]["start"] 205 scan_d["startstr"] = 'Empty'205 scan_d["startstr"] = empty() 206 206 scan_d["finish"] = parsedsax.nmap["runstats"]["finished_time"] 207 scan_d["finishstr"] = 'Empty'207 scan_d["finishstr"] = empty() 208 208 scan_d["xmloutputversion"] = parsedsax.nmap["nmaprun"]["xmloutputversion"] 209 209 if self.store_original: … … 211 211 'r').readlines()) 212 212 else: 213 scan_d["xmloutput"] = 'Empty'213 scan_d["xmloutput"] = empty() 214 214 215 215 scan_d["verbose"] = parsedsax.nmap["verbose"] … … 344 344 Create new record in osmatch with data from osmatch dict. 345 345 """ 346 osmatch["line"] = 'Empty'# check this, it seems parser isnt346 osmatch["line"] = empty() # check this, it seems parser isnt 347 347 # storing this 348 348 … … 421 421 service_name_id = self.get_service_name_id_from_db(info["service_name"]) 422 422 # NOT USING ostype FOR NOW 423 info["ostype"] = 'Empty'423 info["ostype"] = empty() 424 424 425 425 data = (info["service_product"], info["service_version"], … … 501 501 """ 502 502 if not address["vendor"]: 503 vendor = 'Empty'503 vendor = empty() 504 504 else: 505 505 vendor = address["vendor"] … … 900 900 def parse(self, valid_xml): 901 901 """ 902 Parses an exist entxml file.902 Parses an existing xml file. 903 903 """ 904 904 p = NmapParser(valid_xml) … … 925 925 """ 926 926 Call this to normalize a dict. What it does: any empty value 927 will be changed to 'Empty'.927 will be changed to return value of empty(). 928 928 """ 929 929 # normalize hosts
