Changeset 754
- Timestamp:
- 05/29/07 11:01:32 (6 years ago)
- Location:
- branch/bass_boy
- Files:
-
- 3 added
- 4 modified
-
config/security.xml (added)
-
umitGUI/App.py (modified) (5 diffs)
-
umitGUI/ScanNotebook.py (modified) (1 diff)
-
umitGUI/misc (added)
-
umitWeb/SecurityParser.py (added)
-
umitWeb/media/js/ajax.js (modified) (1 diff)
-
umitweb.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branch/bass_boy/umitGUI/App.py
r727 r754 23 23 import sys 24 24 import optparse 25 import imp26 25 27 26 import gtk … … 38 37 39 38 # Script found at http://www.py2exe.org/index.cgi/HowToDetermineIfRunningFromExe 39 import imp 40 frozen = (hasattr(sys, "frozen") or # new py2exe 41 hasattr(sys, "importers") # old py2exe 42 or imp.is_frozen("__main__")) # tools/freeze 43 del(imp) 44 40 45 def main_is_frozen(): 41 return (hasattr(sys, "frozen") or # new py2exe 42 hasattr(sys, "importers") # old py2exe 43 or imp.is_frozen("__main__")) # tools/freeze 46 return frozen 44 47 45 48 … … 50 53 def __create_option_parser(self): 51 54 self.option_parser = optparse.OptionParser() 52 53 55 self.options, self.args = self.option_parser.parse_args() 54 56 … … 67 69 68 70 def run(self): 69 70 71 # Try to load psyco module, saving this information 71 72 # if we care to use it later (such as in a About Dialog) … … 80 81 but you're encourajed to install it to have a better speed experience. Download it \ 81 82 at http://psyco.sf.net/""")) 82 83 83 self.using_psyco = False 84 84 -
branch/bass_boy/umitGUI/ScanNotebook.py
r727 r754 43 43 from umitCore.I18N import _ 44 44 45 icon_dir = Path. get_pixmaps_dir()45 icon_dir = Path.pixmaps_dir 46 46 47 47 class PageStatus(object): -
branch/bass_boy/umitWeb/media/js/ajax.js
r682 r754 9 9 $("result").innerHTML = "loading..." 10 10 displayResult = function(){ 11 if(req.readyState == 4){ 12 if(req.status == 200){ 13 $("result").innerHTML = "<pre>" + req.responseText + "</pre>" 14 }else{ 15 $("result").innerHTML = req.statusText 11 try{ 12 if(req.readyState == 4){ 13 if(req.status == 200){ 14 $("result").innerHTML = "<pre>" + req.responseText + "</pre>" 15 }else{ 16 $("result").innerHTML = req.statusText 17 } 16 18 } 19 }catch(e){ 20 alert(e) 21 $("result").innerHTML = "Could not open Http Request." 17 22 } 18 23 } 19 20 req.open("POST", "/scan/?plain", true) 21 req.onreadystatechange = displayResult 22 req.send("command=" + encodeURI($("command").value)) 24 try{ 25 req.open("POST", "/scan/?plain", true) 26 req.onreadystatechange = displayResult 27 req.send("command=" + encodeURI($("command").value)) 28 }catch(e){ 29 $("result").innerHTML = "Could not open Http Request." 30 } 31 23 32 return false 24 33 } -
branch/bass_boy/umitweb.py
r729 r754 27 27 # Setting the umit home directory 28 28 29 #from umitCore.Paths import Path30 #Path.set_umit_conf(join(split(__file__)[0], 'config', 'umit.conf'))29 from umitCore.Paths import Path 30 Path.set_umit_conf(join(split(__file__)[0], 'config', 'umit.conf')) 31 31 ###################################### 32 32
