Changeset 256
- Timestamp:
- 07/19/07 18:53:22 (5 years ago)
- Files:
-
- 11 edited
-
branches/release/0.2/ChangeLog (modified) (1 diff)
-
branches/release/0.2/config.py (modified) (3 diffs)
-
branches/release/0.2/console.py (modified) (1 diff)
-
branches/release/0.2/itaka.py (modified) (2 diffs)
-
branches/release/0.2/share/itaka.1 (modified) (1 diff)
-
trunk/ChangeLog (modified) (1 diff)
-
trunk/config.py (modified) (2 diffs)
-
trunk/console.py (modified) (1 diff)
-
trunk/itaka.py (modified) (2 diffs)
-
trunk/itaka.spec (modified) (1 diff)
-
trunk/share/itaka.1 (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/release/0.2/ChangeLog
r254 r256 2 2 * Fixed a serious security bug in which /screenshot prompted no auth. Also 3 3 fixed sending the wrong Content-Lenght for the screenshot. Report Itaka 4 version on HTTP headers. 5 * Added RPM packages (backport from trunk) and minor UI fixes. 4 version on HTTP headers 5 * Added RPM packages (backport from trunk) and minor UI fixes 6 * Vastly improved console argument handling 7 * Improved man page 6 8 7 9 0.2 (I've been watching you...): -
branches/release/0.2/config.py
r250 r256 51 51 image_dir = os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), "share/images/") 52 52 #: To be changed on install to specify where the installed files actually are 53 prefix = "/usr/share/itaka/images /"53 prefix = "/usr/share/itaka/images" 54 54 if os.path.exists(prefix): 55 55 image_dir = prefix … … 114 114 """ 115 115 116 def __init__(self, arguments= None):116 def __init__(self, arguments=1): 117 117 """ 118 118 Configuration engine constructor. It also handles whether the L{output} setting is set to print everything to the console. … … 121 121 @param arguments: A tuple of sys.argv 122 122 """ 123 if arguments is not None and len(arguments) > 1 and arguments[-1] == "-debug":123 if len(arguments) > 1 and arguments[-1] in ("--debug", "-d"): 124 124 global output 125 125 output = {'normal': True, 'debug': True, 'quiet': False} -
branches/release/0.2/console.py
r173 r256 87 87 88 88 self.itakaglobals = itakaglobals 89 if self.itakaglobals.output['normal']: 89 90 if self.itakaglobals.output['debug']: 91 BaseMessage('Itaka %s (%s) starting' % (itakaglobals.version, itakaglobals.revision)) 92 elif self.itakaglobals.output['normal']: 90 93 BaseMessage('Itaka %s starting' % (itakaglobals.version)) 91 94 -
branches/release/0.2/itaka.py
r173 r256 25 25 import sys, traceback 26 26 27 validarguments = ('-h elp', '-debug')27 validarguments = ('-h', '--help', '-v', '--version', '-r', '--revision', '-d', '--debug') 28 28 arguments = sys.argv 29 29 30 30 # Only one option at a time 31 if len(arguments) > 2 or (len(arguments) == 2 and arguments[-1] not in validarguments or arguments[-1] == validarguments[0]): 32 print "Usage: %s (-debug|-help)" % (arguments[0]) 31 if len(arguments) >= 2 and ((arguments[-1] not in validarguments) or (arguments[-1] in (validarguments[0], validarguments[1]))): 32 print """Usage: 33 %s [OPTION...] 34 35 Help Options: 36 -h, --help\t\t\t\tShow help options 37 -v, --version\t\t\t\tShow Itaka version 38 -r, --revision\t\t\tShow Itaka revision 39 40 Application Options: 41 -d, --debug\t\t\t\tStart in debug mode""" % arguments[0] 33 42 sys.exit(1) 34 elif len(arguments) == 1:35 arguments = None36 43 37 44 # Itaka core modules … … 59 66 60 67 if __name__ == "__main__": 68 if len(arguments) >= 2: 69 if (arguments[-1] in (validarguments[2], validarguments[3])): 70 print itakaglobals.version 71 sys.exit(0) 72 if (arguments[-1] in (validarguments[4], validarguments[5])): 73 print itakaglobals.revision 74 sys.exit(0) 75 61 76 try: 62 77 gui = igui.Gui(console, (itakaglobals, configinstance)) -
branches/release/0.2/share/itaka.1
r124 r256 8 8 .PP 9 9 Itaka is a on-demand screenshooting server based on the HTTP protocol. It integrates a specifically coded server to take screenshots on-demand when your machine is queried through a remote browser. It has a GTK GUI for client notification. 10 .SH OPTIONS 11 Itaka follows the usual GNU command line syntax, with long 12 options starting with two dashes (`-'). 13 A summary of options is included below. 14 .TP 15 .B \-h, \-\-help 16 Show summary of options. 17 .TP 18 .B \-v, \-\-version 19 Show version of program. 20 .TP 21 .B \-r, \-\-revision 22 Show the revision of program. 23 .TP 24 .B \-d, \-\-debug 25 Start in debug mode. 10 26 .SH "SEE ALSO" 11 27 .PP 12 /usr/share/doc/itaka/README .gz28 /usr/share/doc/itaka/README 13 29 .SH "AUTHOR" 14 30 .PP 15 Itaka was written by: Marc E. santusmarc@gmail.com.31 Itaka was written by: Marc E. <santusmarc@gmail.com> 16 32 .PP 17 33 This manual page was written by Marc E. santusmarc@gmail.com for -
trunk/ChangeLog
r253 r256 12 12 * Fixed a serious security bug in which /screenshot prompted no auth. Also 13 13 fixed sending the wrong Content-Lenght for the screenshot. Report Itaka 14 version on HTTP headers. 14 version on HTTP headers 15 * Added RPM packages (backport from trunk) and minor UI fixes 16 * Vastly improved console argument handling 17 * Improved man page 15 18 16 19 0.2 (I've been watching you...): -
trunk/config.py
r245 r256 101 101 """ 102 102 103 def __init__(self, arguments= None):103 def __init__(self, arguments=1): 104 104 """ 105 105 Configuration engine constructor. It also handles whether the … … 110 110 """ 111 111 112 if arguments is not None and len(arguments) > 1 and arguments[-1] == '-debug':112 if len(arguments) > 1 and arguments[-1] in ('-d', '--debug'): 113 113 global console_verbosity 114 114 console_verbosity = {'normal': True, 'debug': True, 'quiet': False} -
trunk/console.py
r246 r256 134 134 135 135 self.itaka_globals = itaka_globals 136 if self.itaka_globals.console_verbosity['normal']: 137 BaseMessage(_('Itaka %s starting') % (self.itaka_globals.__version__)) 136 if self.itaka_globals.console_verbosity['debug']: 137 BaseMessage(_('Itaka %s (%s) starting' % (self.itaka_globals.__version__, self.itaka_globals.__revision__))) 138 elif self.itaka_globals.console_verbosity['normal']: 139 BaseMessage(_('Itaka %s starting' % (self.itaka_globals.__version__))) 138 140 139 141 def message(self, message): -
trunk/itaka.py
r241 r256 59 59 gettext.textdomain('itaka') 60 60 61 valid _arguments = ('-help', '-debug')61 validarguments = ('-h', '--help', '-v', '--version', '-r', '--revision', '-d', '--debug') 62 62 arguments = sys.argv 63 63 64 # Only one option at a time 65 if len(arguments) > 2 or (len(arguments) == 2 and arguments[-1] \ 66 not in valid_arguments or arguments[-1] == valid_arguments[0]): 67 print _('Usage: %s (-debug|-help)') % (arguments[0]) 64 if len(arguments) >= 2 and ((arguments[-1] not in validarguments) or (arguments[-1] in (validarguments[0], validarguments[1]))): 65 print """Usage: 66 %s [OPTION...] 67 68 Help Options: 69 -h, --help\t\t\t\tShow help options 70 -v, --version\t\t\t\tShow Itaka version 71 -r, --revision\t\t\tShow Itaka revision 72 73 Application Options: 74 -d, --debug\t\t\t\tStart in debug mode""" % arguments[0] 68 75 sys.exit(1) 69 elif len(arguments) == 1:70 arguments = None71 76 72 77 try: … … 89 94 90 95 if __name__ == "__main__": 96 if len(arguments) >= 2: 97 if (arguments[-1] in (validarguments[2], validarguments[3])): 98 print itaka_globals.__version__ 99 sys.exit(0) 100 if (arguments[-1] in (validarguments[4], validarguments[5])): 101 print itaka_globals.__revision__ 102 sys.exit(0) 103 91 104 try: 92 105 gui = igui.Gui(console_instance, (itaka_globals, config_instance)) -
trunk/itaka.spec
r235 r256 76 76 %{_prefix}/lib/itaka/screenshot.py 77 77 %{_prefix}/lib/itaka/console.py 78 %{_prefix}/lib/itaka/config.pyc79 %{_prefix}/lib/itaka/console.pyc80 %{_prefix}/lib/itaka/error.pyc81 %{_prefix}/lib/itaka/itaka.pyc82 %{_prefix}/lib/itaka/screenshot.pyc83 %{_prefix}/lib/itaka/server.pyc84 %{_prefix}/lib/itaka/uigtk.pyc85 78 86 79 %changelog -
trunk/share/itaka.1
r124 r256 8 8 .PP 9 9 Itaka is a on-demand screenshooting server based on the HTTP protocol. It integrates a specifically coded server to take screenshots on-demand when your machine is queried through a remote browser. It has a GTK GUI for client notification. 10 .SH OPTIONS 11 Itaka follows the usual GNU command line syntax, with long 12 options starting with two dashes (`-'). 13 A summary of options is included below. 14 .TP 15 .B \-h, \-\-help 16 Show summary of options. 17 .TP 18 .B \-v, \-\-version 19 Show version of program. 20 .TP 21 .B \-r, \-\-revision 22 Show the revision of program. 23 .TP 24 .B \-d, \-\-debug 25 Start in debug mode. 10 26 .SH "SEE ALSO" 11 27 .PP 12 /usr/share/doc/itaka/README .gz28 /usr/share/doc/itaka/README 13 29 .SH "AUTHOR" 14 30 .PP 15 Itaka was written by: Marc E. santusmarc@gmail.com.31 Itaka was written by: Marc E. <santusmarc@gmail.com> 16 32 .PP 17 33 This manual page was written by Marc E. santusmarc@gmail.com for
Note: See TracChangeset
for help on using the changeset viewer.

