Changeset 5764
- Timestamp:
- 08/04/10 21:09:19 (3 years ago)
- Location:
- network-scanner/branches/GSoC2010
- Files:
-
- 6 modified
- 2 copied
-
share/umit/config/profile_editor.xml (modified) (1 diff)
-
share/umit/config/scan_profile.usp (modified) (1 diff)
-
share/umit/languages (copied) (copied from network-scanner/branches/NSEFacilitator/share/umit/languages)
-
share/umit/styles (copied) (copied from network-scanner/branches/NSEFacilitator/share/umit/styles)
-
umit/core/BasePaths.py (modified) (1 diff)
-
umit/core/Paths.py (modified) (5 diffs)
-
umit/nsefacilitator/luaParser.py (modified) (3 diffs)
-
umit/nsefacilitator/pySourceView.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
network-scanner/branches/GSoC2010/share/umit/config/profile_editor.xml
r5632 r5764 42 42 <option_check label="IPv6 support" option="IPv6 support"/> 43 43 <option_check label="Maximum Retries" option="Max Retries" /> 44 <option_check label="Use Scripts" option="Script List" /> 44 45 </Scan> 45 46 <Ping label="Ping options"> -
network-scanner/branches/GSoC2010/share/umit/config/scan_profile.usp
r5632 r5764 55 55 command = nmap -PN -p80 --traceroute %s 56 56 options = Disable ping,Ports to scan,Traceroute 57 58 [Intense Scan] 59 description = 60 hint = 61 options = Version detection,Operating system detection,Aggressive, Verbose 62 command = nmap -T Aggressive -A -v %s 63 annotation = -
network-scanner/branches/GSoC2010/umit/core/BasePaths.py
r5632 r5764 62 62 PLUGINS_DIR = os.path.join(main_dir, "share", "umit", "plugins") 63 63 DOCS_DIR = os.path.join(main_dir, "share", "doc", "umit", "html") 64 STYLES_DIR = os.path.join(main_dir, "share", "umit", "styles") 65 LANGUAGES_DIR = os.path.join(main_dir, "share", "umit", "languages") 64 66 65 67 base_paths = dict(config_file = 'umit.conf', -
network-scanner/branches/GSoC2010/umit/core/Paths.py
r5632 r5764 31 31 from umit.core.BasePaths import CONFIG_DIR, LOCALE_DIR, MISC_DIR 32 32 from umit.core.BasePaths import ICONS_DIR, PIXMAPS_DIR, DOCS_DIR 33 from umit.core.BasePaths import LANGUAGES_DIR, STYLES_DIR 33 34 from umit.merger import file_merger, dir_creator, nt_appdata 34 35 … … 58 59 "misc_dir", 59 60 "config_dir", 60 "docs_dir"] 61 "docs_dir", 62 "styles_dir", 63 "languages_dir"] 61 64 62 65 config_files_list = ["config_file", … … 104 107 self.misc_dir = MISC_DIR 105 108 self.docs_dir = DOCS_DIR 109 self.styles_dir = STYLES_DIR 110 self.languages_dir = LANGUAGES_DIR 106 111 107 112 log.debug(">>> Config file: %s" % config_file) … … 111 116 log.debug(">>> Misc: %s" % self.misc_dir) 112 117 log.debug(">>> Docs: %s" % self.docs_dir) 118 log.debug(">>> Styles: %s" % self.styles_dir) 119 log.debug(">>> Languages: %s" % self.languages_dir) 113 120 114 121 def get_running_path(self): … … 284 291 "tl_colors_evt_std.conf", "scheduler-schemas.conf", 285 292 "scheduler-profiles.conf", "scheduler.log", "smtp-schemas.conf") 286 userdir_dirs = ("plugins", "plugins-download", "plugins-temp" )293 userdir_dirs = ("plugins", "plugins-download", "plugins-temp", "nsetemplates") 287 294 288 295 def create_user_dir(config_file, user_home): -
network-scanner/branches/GSoC2010/umit/nsefacilitator/luaParser.py
r5761 r5764 68 68 self._get_attr('author') 69 69 self._get_attr('license') 70 #self._get_attr('version')71 70 self._get_attr_list('categories') 72 71 self.attr['content'] = self._get_content() … … 78 77 self.attr['rule'] = None 79 78 self.attr['version'] = self._get_attr('version') 79 self.attr['version_'] = self._get_attr_('version') 80 80 81 81 def _get_attr_list(self, listname): … … 89 89 if r: 90 90 self.attr[attrname] = self._normilize(r[0]) 91 92 def _get_attr_(self, attrname): 93 r = re.findall(attrname + '\s*=\s*"([^\"]+)"', self.data) 94 if r: 95 return self._normilize(r[0]) 96 else: 97 return "" 91 98 92 99 def _get_function(self, funcname): -
network-scanner/branches/GSoC2010/umit/nsefacilitator/pySourceView.py
r5751 r5764 32 32 import pango 33 33 34 from umit.core.Paths import Path 34 35 from xml.dom import minidom 35 36 … … 52 53 SOURCEVIEW_DIR = "pysourceview-2.0" 53 54 #RGN_SCHEMA_FILE = "language2.rgn" 54 LANGUAGE_DIR = "languages"55 55 LANG_FILE_SUFFIX = ".lang" 56 56 DEFAULT_SECTION = _("Others") … … 62 62 def get_default_dirs(basename, compat): 63 63 # TODO: dirs parsing 64 return [os.path.join("umit .nsefacilitator", basename)]64 return [os.path.join("umit", "nsefacilitator", basename)] 65 65 66 66 def get_file_list(dirs, suffix): … … 333 333 @staticmethod 334 334 def get_default(): 335 return SourceStyleScheme.new_from_file( 'umit.nsefacilitator/styles/gvim.xml')335 return SourceStyleScheme.new_from_file(os.path.join(Path.styles_dir, "gvim.xml")) 336 336 337 337 @staticmethod … … 817 817 def get_search_path(self): 818 818 if not self.lang_dirs: 819 return get_default_dirs(LANGUAGE_DIR, True)819 return Path.languages_dir 820 820 return self.lang_dirs 821 821
