summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bf85198)
raw | patch | inline | side by side (parent: bf85198)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 29 Jul 2001 09:28:23 +0000 (09:28 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 29 Jul 2001 09:28:23 +0000 (09:28 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@136 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/htmltemplate.py | patch | blob | history | |
roundup/hyperdb.py | patch | blob | history |
index 7d574fdec53276788732de73072dea0051c6fd4c..c2d03976eea936f50b9313f3ae584780fe00e243 100644 (file)
--- a/roundup/htmltemplate.py
+++ b/roundup/htmltemplate.py
-# $Id: htmltemplate.py,v 1.9 2001-07-29 08:27:40 richard Exp $
+# $Id: htmltemplate.py,v 1.10 2001-07-29 09:28:23 richard Exp $
import os, re, StringIO, urllib, cgi, errno
for name in sort:
dir = name[0]
if dir == '-':
- dir = ''
- else:
name = name[1:]
if sort_name == name:
- if dir == '':
- s_dir = '-'
- elif dir == '-':
+ if dir == '-':
s_dir = ''
+ else:
+ s_dir = '-'
else:
m.append(dir+urllib.quote(name))
m.insert(0, s_dir+urllib.quote(sort_name))
#
# $Log: not supported by cvs2svn $
+# Revision 1.9 2001/07/29 08:27:40 richard
+# Fixed handling of passed-in values in form elements (ie. during a
+# drill-down)
+#
# Revision 1.8 2001/07/29 07:01:39 richard
# Added vim command to all source so that we don't get no steenkin' tabs :)
#
diff --git a/roundup/hyperdb.py b/roundup/hyperdb.py
index bc1013f4967dc286b31566395c56e8ede77ed8f5..252194c0c93636a041f3a316d733841848c0f9a8 100644 (file)
--- a/roundup/hyperdb.py
+++ b/roundup/hyperdb.py
-# $Id: hyperdb.py,v 1.8 2001-07-29 08:27:40 richard Exp $
+# $Id: hyperdb.py,v 1.9 2001-07-29 09:28:23 richard Exp $
# standard python modules
import cPickle, re, string
else:
m.append((entry[0], entry[1:]))
group = m
-
# now, sort the result
def sortfun(a, b, sort=sort, group=group, properties=self.getprops(),
db = self.db, cl=self):
# nodes; or finally on the node ids.
elif propclass.isLinkType:
link = db.classes[propclass.classname]
+ if av is None and bv is not None: return -1
+ if av is not None and bv is None: return 1
+ if av is None and bv is None: return 0
if link.getprops().has_key('order'):
if dir == '+':
r = cmp(link.get(av, 'order'),
#
# $Log: not supported by cvs2svn $
+# Revision 1.8 2001/07/29 08:27:40 richard
+# Fixed handling of passed-in values in form elements (ie. during a
+# drill-down)
+#
# Revision 1.7 2001/07/29 07:01:39 richard
# Added vim command to all source so that we don't get no steenkin' tabs :)
#