summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e6b4107)
raw | patch | inline | side by side (parent: e6b4107)
author | jhermann <jhermann@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 12 Nov 2001 22:51:59 +0000 (22:51 +0000) | ||
committer | jhermann <jhermann@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 12 Nov 2001 22:51:59 +0000 (22:51 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@397 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup-admin | patch | blob | history | |
roundup-server | patch | blob | history |
diff --git a/roundup-admin b/roundup-admin
index 4065e33d7d8682f6b946605ff35a9e22b2f5bcdd..e165aa1d31f8b900d9d199b3a889eb801b681d25 100755 (executable)
--- a/roundup-admin
+++ b/roundup-admin
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: roundup-admin,v 1.44 2001-11-12 22:01:06 richard Exp $
+# $Id: roundup-admin,v 1.45 2001-11-12 22:51:59 jhermann Exp $
import sys
if int(sys.version[0]) < 2:
self.help[k[5:]] = getattr(self, k)
self.db = None
- def usage(message=''):
- if message: message = 'Problem: '+message+'\n'
+ def usage(self, message=''):
+ if message: message = 'Problem: '+message+'\n\n'
print '''%sUsage: roundup-admin [-i instance home] [-u login] [-c] <command> <arguments>
Help:
'Commands may be abbreviated as long as the abbreviation matches only one')
commands.append('command, e.g. l == li == lis == list.')
print '\n'.join(commands)
- print
+ print
def help_all(self):
print '''
self.run_command(args)
def main(self):
- opts, args = getopt.getopt(sys.argv[1:], 'i:u:hc')
+ try:
+ opts, args = getopt.getopt(sys.argv[1:], 'i:u:hc')
+ except getopt.GetoptError, e:
+ self.usage(str(e))
+ return 1
# handle command-line args
self.instance_home = os.environ.get('ROUNDUP_INSTANCE', '')
self.comma_sep = 0
for opt, arg in opts:
if opt == '-h':
- usage()
+ self.usage()
return 0
if opt == '-i':
self.instance_home = arg
#
# $Log: not supported by cvs2svn $
+# Revision 1.44 2001/11/12 22:01:06 richard
+# Fixed issues with nosy reaction and author copies.
+#
# Revision 1.43 2001/11/09 22:33:28 richard
# More error handling fixes.
#
diff --git a/roundup-server b/roundup-server
index de71d67928a39c78bb1c6da98daa7c0c137f8e40..a71ce4783814a448c682604d0234a7bf4f559993 100755 (executable)
--- a/roundup-server
+++ b/roundup-server
Based on CGIHTTPServer in the Python library.
-$Id: roundup-server,v 1.18 2001-11-01 22:04:37 richard Exp $
+$Id: roundup-server,v 1.19 2001-11-12 22:51:04 jhermann Exp $
"""
import sys
client.main()
def usage(message=''):
- if message: message = 'Error: %s\n'%message
+ if message: message = 'Error: %s\n\n'%message
print '''%sUsage:
roundup-server [-n hostname] [-p port] [name=instance home]*
port = 8080
try:
# handle the command-line args
- optlist, args = getopt.getopt(sys.argv[1:], 'n:p:u:')
+ try:
+ optlist, args = getopt.getopt(sys.argv[1:], 'n:p:u:')
+ except getopt.GetoptError, e:
+ usage(str(e))
+
user = ROUNDUP_USER
for (opt, arg) in optlist:
if opt == '-n': hostname = arg
raise ValueError, "Instances must be name=home"
d[name] = home
RoundupRequestHandler.ROUNDUP_INSTANCE_HOMES = d
+ except SystemExit:
+ raise
except:
type, value = sys.exc_info()[:2]
usage('%s: %s'%(type, value))
#
# $Log: not supported by cvs2svn $
+# Revision 1.18 2001/11/01 22:04:37 richard
+# Started work on supporting a pop3-fetching server
+# Fixed bugs:
+# . bug #477104 ] HTML tag error in roundup-server
+# . bug #477107 ] HTTP header problem
+#
# Revision 1.17 2001/10/29 23:55:44 richard
# Fix to CGI top-level index (thanks Juergen Hermann)
#