Changeset 4342
- Timestamp:
- 03/08/09 17:49:12 (4 years ago)
- Location:
- branch/NetworkInventory
- Files:
-
- 23 removed
- 12 modified
- 24 copied
-
. (modified) (1 prop)
-
MANIFEST.in (modified) (1 diff)
-
install_scripts/common.py (modified) (1 diff)
-
setup.py (modified) (3 diffs)
-
share/doc/umit/Makefile (copied) (copied from trunk/share/doc/umit/Makefile)
-
share/doc/umit/comparing_results (deleted)
-
share/doc/umit/comparing_results.html (deleted)
-
share/doc/umit/help.html (deleted)
-
share/doc/umit/nigraphs (deleted)
-
share/doc/umit/nigraphs.html (deleted)
-
share/doc/umit/nisearch (deleted)
-
share/doc/umit/nisearch.html (deleted)
-
share/doc/umit/nse_facilitator (deleted)
-
share/doc/umit/nse_facilitator.html (deleted)
-
share/doc/umit/profile_editor (deleted)
-
share/doc/umit/profile_editor.html (deleted)
-
share/doc/umit/scanning (deleted)
-
share/doc/umit/scanning.html (deleted)
-
share/doc/umit/scheduler (deleted)
-
share/doc/umit/scheduler.html (deleted)
-
share/doc/umit/screenshots (deleted)
-
share/doc/umit/searching (deleted)
-
share/doc/umit/searching.html (deleted)
-
share/doc/umit/smtpsetup (deleted)
-
share/doc/umit/smtpsetup.html (deleted)
-
share/doc/umit/src (copied) (copied from trunk/share/doc/umit/src)
-
share/doc/umit/src/comparing_results.rst (copied) (copied from trunk/share/doc/umit/src/comparing_results.rst)
-
share/doc/umit/src/conf.py (copied) (copied from trunk/share/doc/umit/src/conf.py)
-
share/doc/umit/src/index.rst (copied) (copied from trunk/share/doc/umit/src/index.rst)
-
share/doc/umit/src/ni.rst (copied) (copied from trunk/share/doc/umit/src/ni.rst)
-
share/doc/umit/src/ni_graphs.rst (copied) (copied from trunk/share/doc/umit/src/ni_graphs.rst)
-
share/doc/umit/src/ni_search.rst (copied) (copied from trunk/share/doc/umit/src/ni_search.rst)
-
share/doc/umit/src/nse_facilitator.rst (copied) (copied from trunk/share/doc/umit/src/nse_facilitator.rst)
-
share/doc/umit/src/profile_editor.rst (copied) (copied from trunk/share/doc/umit/src/profile_editor.rst)
-
share/doc/umit/src/scanning.rst (copied) (copied from trunk/share/doc/umit/src/scanning.rst)
-
share/doc/umit/src/scheduler.rst (copied) (copied from trunk/share/doc/umit/src/scheduler.rst)
-
share/doc/umit/src/searching.rst (copied) (copied from trunk/share/doc/umit/src/searching.rst)
-
share/doc/umit/src/smtpsetup.rst (copied) (copied from trunk/share/doc/umit/src/smtpsetup.rst)
-
share/doc/umit/src/static (copied) (copied from trunk/share/doc/umit/src/static)
-
share/doc/umit/src/static/comparing_results1.png (copied) (copied from trunk/share/doc/umit/src/static/comparing_results1.png)
-
share/doc/umit/src/static/comparing_results2.png (copied) (copied from trunk/share/doc/umit/src/static/comparing_results2.png)
-
share/doc/umit/src/static/comparing_results3.png (copied) (copied from trunk/share/doc/umit/src/static/comparing_results3.png)
-
share/doc/umit/src/static/comparing_results4.png (copied) (copied from trunk/share/doc/umit/src/static/comparing_results4.png)
-
share/doc/umit/src/static/profile_editor_1.png (copied) (copied from trunk/share/doc/umit/src/static/profile_editor_1.png)
-
share/doc/umit/src/static/umit_16.ico (copied) (copied from trunk/share/doc/umit/src/static/umit_16.ico)
-
share/doc/umit/src/templates (copied) (copied from trunk/share/doc/umit/src/templates)
-
share/doc/umit/src/under_the_roof.rst (copied) (copied from trunk/share/doc/umit/src/under_the_roof.rst)
-
share/doc/umit/src/wizard.rst (copied) (copied from trunk/share/doc/umit/src/wizard.rst)
-
share/doc/umit/under_the_roof (deleted)
-
share/doc/umit/wizard (deleted)
-
share/doc/umit/wizard.html (deleted)
-
umit/core/BGProcess.py (modified) (3 diffs)
-
umit/core/BasePaths.py (modified) (1 diff)
-
umit/gui/DiffCompare.py (modified) (1 diff)
-
umit/gui/MainWindow.py (modified) (1 diff)
-
umit/gui/SchedulerControl.py (modified) (6 diffs)
-
umit/gui/SchedulerEdit.py (modified) (5 diffs)
-
umit/gui/Wizard.py (modified) (1 diff)
-
umit/inventory/Viewer.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branch/NetworkInventory
- Property svnmerge-integrated changed from /trunk:1-560,563-566,574,577-597,599-615,617-618,620-635,641-648,651,653-662,666-667,669-764,766-845,848-964,966-1038,1041,1047-1059,1070-1103,1113-1119,1139,1156-1187,1189,1196-1202,1206-1223,1225-1241,1244-1248,1251-1258,1260-1274,1276-1279,1281,1283-1284,1290-1295,1297-1305,1307-1308,1310-1311,1313-1322,1326,1328-1333,1335,1337-1397,1399-1418,1420-3939,3941-3945,3948-3952,3955-3978,3980-4122,4124-4299 to /trunk:1-560,563-566,574,577-597,599-615,617-618,620-635,641-648,651,653-662,666-667,669-764,766-845,848-964,966-1038,1041,1047-1059,1070-1103,1113-1119,1139,1156-1187,1189,1196-1202,1206-1223,1225-1241,1244-1248,1251-1258,1260-1274,1276-1279,1281,1283-1284,1290-1295,1297-1305,1307-1308,1310-1311,1313-1322,1326,1328-1333,1335,1337-1397,1399-1418,1420-3939,3941-3945,3948-3952,3955-3978,3980-4122,4124-4341
-
branch/NetworkInventory/MANIFEST.in
r4333 r4342 1 1 include bin/umit bin/umit_scheduler.py README 2 2 include COPYING COPYING_HIGWIDGETS COPYING_NMAP COPYING_WINPCAP 3 include share/doc/umit/umit.1 share/doc/umit/Makefile 3 4 recursive-include share/pixmaps/umit *.png *.svg *.xpm umit.opf umit.opt 4 5 recursive-include share/icons/umit *.ico 5 6 recursive-include share/locale umit.mo *.po 6 recursive-include share/doc/umit *.html *.xml umit.1 7 recursive-include share/doc/umit/screenshots *.png 7 recursive-include share/doc/umit/src * 8 8 recursive-include share/umit/config *.xml *.conf *.usp umit_version *.db *.log 9 9 recursive-include share/umit/misc *.dmp -
branch/NetworkInventory/install_scripts/common.py
r4278 r4342 14 14 LOCALE_DIR = os.path.join('share', 'locale') 15 15 CONFIG_DIR = os.path.join('share', 'umit', 'config') 16 DOCS_DIR = os.path.join('share', 'doc', 'umit') 16 BASE_DOCS_DIR = os.path.join('share', 'doc', 'umit') 17 DOCS_DIR = os.path.join(BASE_DOCS_DIR, 'html') 17 18 MISC_DIR = os.path.join('share', 'umit', 'misc') 18 19 SQL_DIR = os.path.join('share', 'umit', 'sql') -
branch/NetworkInventory/setup.py
r4333 r4342 37 37 38 38 from install_scripts.common import BIN_DIRNAME, PIXMAPS_DIR, ICONS_DIR, \ 39 DOCS_DIR, LOCALE_DIR, CONFIG_DIR, MISC_DIR, SQL_DIR39 BASE_DOCS_DIR, DOCS_DIR, LOCALE_DIR, CONFIG_DIR, MISC_DIR, SQL_DIR 40 40 41 41 py2exe_cmdclass = py2exe_options = py2app_options = None … … 121 121 glob(os.path.join(ICONS_DIR, '*.png'))), 122 122 123 # Documentation 123 124 (DOCS_DIR, 124 125 glob(os.path.join(DOCS_DIR, '*.html')) + 125 glob(os.path.join(DOCS_DIR, 'comparing_results', '*.xml')) + 126 glob(os.path.join(DOCS_DIR, 'profile_editor', '*.xml')) + 127 glob(os.path.join(DOCS_DIR, 'scanning', '*.xml')) + 128 glob(os.path.join(DOCS_DIR, 'searching', '*.xml')) + 129 glob(os.path.join(DOCS_DIR, 'wizard', '*.xml')) + 130 glob(os.path.join(DOCS_DIR, 'scheduler', '*.xml')) + 131 glob(os.path.join(DOCS_DIR, 'smtpsetup', '*.xml')) + 132 glob(os.path.join(DOCS_DIR, 'screenshots', '*.png')))] 126 glob(os.path.join(DOCS_DIR, '*.js')) + 127 glob(os.path.join(DOCS_DIR, '*.inv'))), 128 (os.path.join(DOCS_DIR, '_images'), 129 glob(os.path.join(DOCS_DIR, '_images', '*'))), 130 (os.path.join(DOCS_DIR, '_sources'), 131 glob(os.path.join(DOCS_DIR, '_sources', '*'))), 132 (os.path.join(DOCS_DIR, '_static'), 133 glob(os.path.join(DOCS_DIR, '_static', '*'))) 134 135 ] 133 136 134 137 # Add i18n files to data_files list … … 160 163 os.path.walk(LOCALE_DIR, mo_find, data_files) 161 164 165 def build_html_doc(self): 166 """Build the html documentation.""" 167 import sphinx 168 169 sphinx_ver = sphinx.__version__ 170 if map(int, sphinx_ver.split('.')) < [0, 5, 1]: 171 self.warn("Sphinx's version is too old (%s, expected at least " 172 "0.5.1, documentation won't be build." % sphinx_ver) 173 174 # Build the documentation just like it is done through the Makefile 175 sphinx.main([__file__, 176 "-b", "html", 177 "-d", os.path.join(BASE_DOCS_DIR, 'doctrees'), 178 os.path.join(BASE_DOCS_DIR, 'src'), DOCS_DIR]) 179 162 180 def run(self): 163 181 self.delete_mo_files() 164 182 self.build_mo_files() 183 self.build_html_doc() 165 184 build.run(self) 166 185 -
branch/NetworkInventory/umit/core/BGProcess.py
r4252 r4342 41 41 pid = self._get_pid() 42 42 if isinstance(pid, int): 43 return not bool(self._stopped(pid)) 43 res = self._stopped(pid) 44 if isinstance(res, tuple): 45 # It is assumed the process is still running if it gives an 46 # error different than "No such process". 47 return True 48 else: 49 return not bool(res) 44 50 else: 45 51 return False … … 47 53 def stop(self): 48 54 if self.running(): 49 self.cleanup()55 return self.cleanup() 50 56 51 57 def cleanup(self): … … 87 93 88 94 def _finish(self, pid): 89 if not self._stopped(pid): 95 err = self._stopped(pid) 96 if isinstance(err, tuple): 97 # Error occurred 98 return err[1] 99 100 if not err: 90 101 # Try finishing it now 91 102 try: -
branch/NetworkInventory/umit/core/BasePaths.py
r4252 r4342 58 58 PIXMAPS_DIR = os.path.join(main_dir, "share", "pixmaps", "umit") 59 59 PLUGINS_DIR = os.path.join(main_dir, "share", "umit", "plugins") 60 DOCS_DIR = os.path.join(main_dir, "share", "doc", "umit" )60 DOCS_DIR = os.path.join(main_dir, "share", "doc", "umit", "html") 61 61 62 62 base_paths = dict(config_file = 'umit.conf', -
branch/NetworkInventory/umit/gui/DiffCompare.py
r4252 r4342 236 236 237 237 def _show_help(self, action): 238 webbrowser.open("file://%s" % os.path.join(Path.docs_dir, " help.html"),238 webbrowser.open("file://%s" % os.path.join(Path.docs_dir, "index.html"), 239 239 new=2) 240 240 -
branch/NetworkInventory/umit/gui/MainWindow.py
r4278 r4342 1216 1216 new = 2 1217 1217 1218 doc_path = abspath(join(Path.docs_dir, " help.html"))1218 doc_path = abspath(join(Path.docs_dir, "index.html")) 1219 1219 log.warning(">>> Openning documentation: %s" % doc_path) 1220 1220 if exists(doc_path) and os.access(doc_path, os.R_OK): -
branch/NetworkInventory/umit/gui/SchedulerControl.py
r4252 r4342 52 52 GUI for controlling Scheduler starting/stopping. 53 53 """ 54 54 55 55 def __init__(self, daddy): 56 56 self.ui_action = None … … 59 59 60 60 self.stock_icon, self.status_text = self._sched_status() 61 61 62 62 gobject.timeout_add(1000, self._update_sched_status) 63 63 64 64 65 65 def start_scheduler(self): … … 84 84 err = self.schedcontrol.start(from_gui=True) 85 85 elif resp == gtk.RESPONSE_HELP: 86 webbrowser.open("file://%s" % os.path.join(Path.docs_dir, 87 "scheduler.html#root_start"), 88 new=open_url_as()) 86 webbrowser.open("file://%s" % os.path.join( 87 Path.docs_dir, 88 "scheduler.html#starting-scheduler-as-root"), 89 new=open_url_as()) 89 90 90 91 alertdlg.destroy() … … 100 101 resp = alertdlg.run() 101 102 if resp == gtk.RESPONSE_HELP: 102 webbrowser.open("file://%s" % os.path.join(Path.docs_dir, 103 "scheduler.html#sched_start"), 104 new=open_url_as()) 103 webbrowser.open("file://%s" % os.path.join( 104 Path.docs_dir, 105 "scheduler.html#starting-scheduler"), 106 new=open_url_as()) 105 107 alertdlg.destroy() 106 108 … … 122 124 123 125 if resp == gtk.RESPONSE_HELP: 124 webbrowser.open("file://%s" % os.path.join(Path.docs_dir, 125 "scheduler.html#sched_stop"), 126 new=open_url_as()) 126 webbrowser.open("file://%s" % os.path.join( 127 Path.docs_dir, 128 "scheduler.html#stopping-scheduler"), 129 new=open_url_as()) 127 130 128 131 alertdlg.destroy() 129 132 130 133 131 134 def _sched_status(self): 132 135 """ … … 151 154 if self.daddy: 152 155 self.daddy._clear_tip_statusbar() 153 156 154 157 else: 155 158 self.stop_scheduler() -
branch/NetworkInventory/umit/gui/SchedulerEdit.py
r4252 r4342 358 358 self._save_schema(None) 359 359 self._exit(None) 360 361 360 361 362 362 def _show_help(self, event): 363 363 """ 364 364 Show help for Scan Scheduler Editor. 365 365 """ 366 webbrowser.open("file://%s" % os.path.join(Path.docs_dir, 367 "scheduler.html#new_schema"), 368 new=open_url_as()) 366 webbrowser.open("file://%s" % os.path.join( 367 Path.docs_dir, 368 "scheduler.html#setting-up-a-schedule"), 369 new=open_url_as()) 369 370 370 371 … … 375 376 self.set_title(self.wtitle) 376 377 self.set_default_size(440, -1) 377 378 378 379 379 def __do_layout(self): 380 380 """ … … 656 656 if new_sec: # update daddy scheduling profiles list 657 657 self.daddy._load_pscheds() 658 659 658 659 660 660 def _save_profile_and_leave(self, event): 661 661 """ … … 664 664 self._save_profile(None) 665 665 self._exit(None) 666 667 666 667 668 668 def _show_help(self, event): 669 669 """ 670 670 Show help for Scheduling Profiles. 671 671 """ 672 webbrowser.open("file://%s" % os.path.join(Path.docs_dir, 673 "scheduler.html#new_scheduling"), 674 new=open_url_as()) 672 webbrowser.open("file://%s" % os.path.join( 673 Path.docs_dir, 674 "scheduler.html#creating-a-new-scheduling-profile"), 675 new=open_url_as()) 675 676 676 677 … … 680 681 """ 681 682 self.set_title(self.wtitle) 682 683 683 684 684 685 def __do_layout(self): 685 686 """ -
branch/NetworkInventory/umit/gui/Wizard.py
r4252 r4342 209 209 import webbrowser 210 210 webbrowser.open("file://%s" % os.path.join(Path.docs_dir, 211 " help.html"),211 "index.html"), 212 212 new=2) 213 213 -
branch/NetworkInventory/umit/inventory/Viewer.py
r4278 r4342 799 799 """ 800 800 webbrowser.open("file://%s" % os.path.join(Path.docs_dir, 801 " help.html"), new=open_url_as())801 "index.html"), new=open_url_as()) 802 802 803 803
