Skip to content

Commit 96f6546

Browse files
author
Richard Jones
committed
Added some more help to roundup-admin
1 parent a51b97a commit 96f6546

File tree

3 files changed

+29
-15
lines changed

3 files changed

+29
-15
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

44
2001-??-?? - 0.2.9
5+
Fixed:
6+
. Pretty time interval wasn't handling > 1 month properly.
57
. Generation of links to Link/Multilink in indexes. (thanks Hubert Hoegl)
68
. AssignedTo wasn't in the "classic" schema's item page.
79

810

911
2001-08-30 - 0.2.8
1012
Fixed:
13+
. Wasn't handling unguessable mime types for file uploads.
1114
. Missing import in mailgw.
1215

1316

roundup-admin

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: roundup-admin,v 1.17 2001-08-28 05:58:33 anthonybaxter Exp $
19+
# $Id: roundup-admin,v 1.18 2001-09-18 22:58:37 richard Exp $
2020

2121
import sys
2222
if int(sys.version[0]) < 2:
@@ -38,24 +38,26 @@ def usage(message=''):
3838
3939
Commands:
4040
%s
41-
4241
Help:
4342
roundup-admin -h
44-
roundup-admin help
45-
-- this help
46-
roundup-admin help <command>
47-
-- command-specific help
48-
roundup-admin morehelp
49-
-- even more detailed help
50-
51-
'''%(message, '\n '.join(commands))
43+
roundup-admin help -- this help
44+
roundup-admin help <command> -- command-specific help
45+
roundup-admin morehelp -- even more detailed help
46+
Options:
47+
-i instance home -- specify the issue tracker "home directory" to administer
48+
-u -- the user[:password] to use for commands
49+
-c -- when outputting lists of data, just comma-separate them'''%(
50+
message, '\n '.join(commands))
5251

5352
def moreusage(message=''):
5453
usage(message)
5554
print '''
5655
All commands (except help) require an instance specifier. This is just the path
57-
to the roundup instance you're working with. It may be specified in the
58-
environment variable ROUNDUP_INSTANCE or on the command line as "-i instance".
56+
to the roundup instance you're working with. A roundup instance is where
57+
roundup keeps the database and configuration file that defines an issue
58+
tracker. It may be thought of as the issue tracker's "home directory". It may
59+
be specified in the environment variable ROUNDUP_INSTANCE or on the command
60+
line as "-i instance".
5961
6062
A designator is a classname and a nodeid concatenated, eg. bug1, user10, ...
6163
@@ -426,6 +428,9 @@ if __name__ == '__main__':
426428

427429
#
428430
# $Log: not supported by cvs2svn $
431+
# Revision 1.17 2001/08/28 05:58:33 anthonybaxter
432+
# added missing 'import' statements.
433+
#
429434
# Revision 1.16 2001/08/12 06:32:36 richard
430435
# using isinstance(blah, Foo) now instead of isFooType
431436
#

roundup/date.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: date.py,v 1.12 2001-08-17 03:08:11 richard Exp $
18+
# $Id: date.py,v 1.13 2001-09-18 22:58:37 richard Exp $
1919

2020
import time, re, calendar
2121

@@ -317,10 +317,13 @@ def pretty(self, threshold=('d', 5)):
317317
'''
318318
if self.year or self.month > 2:
319319
return None
320-
if self.month:
320+
if self.month or self.day > 13:
321321
days = (self.month * 30) + self.day
322322
if days > 28:
323-
return '%s months'%int(days/30)
323+
if int(days/30) > 1:
324+
return '%s months'%int(days/30)
325+
else:
326+
return '1 month'
324327
else:
325328
return '%s weeks'%int(days/7)
326329
if self.day > 7:
@@ -376,6 +379,9 @@ def test():
376379

377380
#
378381
# $Log: not supported by cvs2svn $
382+
# Revision 1.12 2001/08/17 03:08:11 richard
383+
# fixed prettification of intervals of 1 week
384+
#
379385
# Revision 1.11 2001/08/15 23:43:18 richard
380386
# Fixed some isFooTypes that I missed.
381387
# Refactored some code in the CGI code.

0 commit comments

Comments
 (0)