summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b0de4d9)
raw | patch | inline | side by side (parent: b0de4d9)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 18 Sep 2001 22:58:37 +0000 (22:58 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 18 Sep 2001 22:58:37 +0000 (22:58 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@256 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup-admin | patch | blob | history | |
roundup/date.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 1f66b41b7820a4ac042d46601549c027510e9389..49159f5813b765cee0b25f1a667fc338c22f07c9 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
are given with the most recent entry first.
2001-??-?? - 0.2.9
+Fixed:
+ . Pretty time interval wasn't handling > 1 month properly.
. Generation of links to Link/Multilink in indexes. (thanks Hubert Hoegl)
. AssignedTo wasn't in the "classic" schema's item page.
2001-08-30 - 0.2.8
Fixed:
+ . Wasn't handling unguessable mime types for file uploads.
. Missing import in mailgw.
diff --git a/roundup-admin b/roundup-admin
index d110ebcc3b2c1ec31ed5063cd5d373ef3dcb968b..f69009fdd854925cf8c3ce84a840d2720cdcfd61 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.17 2001-08-28 05:58:33 anthonybaxter Exp $
+# $Id: roundup-admin,v 1.18 2001-09-18 22:58:37 richard Exp $
import sys
if int(sys.version[0]) < 2:
Commands:
%s
-
Help:
roundup-admin -h
- roundup-admin help
- -- this help
- roundup-admin help <command>
- -- command-specific help
- roundup-admin morehelp
- -- even more detailed help
-
-'''%(message, '\n '.join(commands))
+ roundup-admin help -- this help
+ roundup-admin help <command> -- command-specific help
+ roundup-admin morehelp -- even more detailed help
+Options:
+ -i instance home -- specify the issue tracker "home directory" to administer
+ -u -- the user[:password] to use for commands
+ -c -- when outputting lists of data, just comma-separate them'''%(
+message, '\n '.join(commands))
def moreusage(message=''):
usage(message)
print '''
All commands (except help) require an instance specifier. This is just the path
-to the roundup instance you're working with. It may be specified in the
-environment variable ROUNDUP_INSTANCE or on the command line as "-i instance".
+to the roundup instance you're working with. A roundup instance is where
+roundup keeps the database and configuration file that defines an issue
+tracker. It may be thought of as the issue tracker's "home directory". It may
+be specified in the environment variable ROUNDUP_INSTANCE or on the command
+line as "-i instance".
A designator is a classname and a nodeid concatenated, eg. bug1, user10, ...
#
# $Log: not supported by cvs2svn $
+# Revision 1.17 2001/08/28 05:58:33 anthonybaxter
+# added missing 'import' statements.
+#
# Revision 1.16 2001/08/12 06:32:36 richard
# using isinstance(blah, Foo) now instead of isFooType
#
diff --git a/roundup/date.py b/roundup/date.py
index da19289c0459455a203a7d950eac5c659ee653e8..ef65d87f86fb7c1c099777fc8910f11f13094d26 100644 (file)
--- a/roundup/date.py
+++ b/roundup/date.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: date.py,v 1.12 2001-08-17 03:08:11 richard Exp $
+# $Id: date.py,v 1.13 2001-09-18 22:58:37 richard Exp $
import time, re, calendar
'''
if self.year or self.month > 2:
return None
- if self.month:
+ if self.month or self.day > 13:
days = (self.month * 30) + self.day
if days > 28:
- return '%s months'%int(days/30)
+ if int(days/30) > 1:
+ return '%s months'%int(days/30)
+ else:
+ return '1 month'
else:
return '%s weeks'%int(days/7)
if self.day > 7:
#
# $Log: not supported by cvs2svn $
+# Revision 1.12 2001/08/17 03:08:11 richard
+# fixed prettification of intervals of 1 week
+#
# Revision 1.11 2001/08/15 23:43:18 richard
# Fixed some isFooTypes that I missed.
# Refactored some code in the CGI code.