From e2f11d886cb2651b550fd31ad215e3f4cafee6fa Mon Sep 17 00:00:00 2001 From: gmcm Date: Wed, 17 Jul 2002 13:28:37 +0000 Subject: [PATCH] Fix bug in setting activity. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@886 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/backends/back_metakit.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/roundup/backends/back_metakit.py b/roundup/backends/back_metakit.py index be58256..1c93af7 100755 --- a/roundup/backends/back_metakit.py +++ b/roundup/backends/back_metakit.py @@ -193,7 +193,7 @@ _marker = [] _ALLOWSETTINGPRIVATEPROPS = 0 -class Class: # no, I'm not going to subclass the existing! +class Class: privateprops = None def __init__(self, db, classname, **properties): self.db = weakref.proxy(db) @@ -461,7 +461,7 @@ class Class: # no, I'm not going to subclass the existing! # nothing to do? if not propvalues: return - if not row.activity: + if not propvalues.has_key('activity'): row.activity = int(time.time()) if isnew: if not row.creation: @@ -720,12 +720,11 @@ class Class: # no, I'm not going to subclass the existing! try: prop = getattr(v, propname) except AttributeError: - # I can't sort on 'activity', cause it's psuedo!! continue if isreversed: rev.append(prop) sortspec.append(prop) - v = v.sortrev(sortspec, rev)[:] #XXX Aaaabh + v = v.sortrev(sortspec, rev)[:] #XXX Metakit bug #print "filter sort at %s" % time.time() rslt = [] -- 2.30.2