summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f1d3d7c)
raw | patch | inline | side by side (parent: f1d3d7c)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 20 Oct 2001 23:44:27 +0000 (23:44 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 20 Oct 2001 23:44:27 +0000 (23:44 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@315 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/hyperdb.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index d89136ca8622dd2e6710f0fb90d74bae5f678461..686d30fb48c39b9b9c2575dc8473c9249b579343 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
are given with the most recent entry first.
2001-10-?? - 0.3.0
-Added:
+Feature:
+ . Hyperdatabase sorts strings-that-look-like-numbers as numbers now.
Admin Tool (roundup-admin):
. Interactive mode for running multiple (independant at present) commands.
. Tabular display of nodes.
diff --git a/roundup/hyperdb.py b/roundup/hyperdb.py
index dbca83709d456c464e89514793ab0cf69f33837a..391c6f3c1b80a411dd6d4ebc12a8974c3ed07ad4 100644 (file)
--- a/roundup/hyperdb.py
+++ b/roundup/hyperdb.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: hyperdb.py,v 1.26 2001-10-16 03:48:01 richard Exp $
+# $Id: hyperdb.py,v 1.27 2001-10-20 23:44:27 richard Exp $
# standard python modules
import cPickle, re, string
bv = bn[prop] = bv.lower()
if (isinstance(propclass, String) or
isinstance(propclass, Date)):
+ # it might be a string that's really an integer
+ try:
+ av = int(av)
+ bv = int(bv)
+ except:
+ pass
if dir == '+':
r = cmp(av, bv)
if r != 0: return r
#
# $Log: not supported by cvs2svn $
+# Revision 1.26 2001/10/16 03:48:01 richard
+# admin tool now complains if a "find" is attempted with a non-link property.
+#
# Revision 1.25 2001/10/11 00:17:51 richard
# Reverted a change in hyperdb so the default value for missing property
# values in a create() is None and not '' (the empty string.) This obviously