From: richard Date: Tue, 3 Sep 2002 02:53:53 +0000 (+0000) Subject: Fixed nasty bug that was preventing changes to multilinks going through. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=28dcfd55432ffa74bf3dc2f1eb51f5456ac6f36b;p=roundup.git Fixed nasty bug that was preventing changes to multilinks going through. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1031 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/backends/back_anydbm.py b/roundup/backends/back_anydbm.py index 0f0faa0..97d6b89 100644 --- a/roundup/backends/back_anydbm.py +++ b/roundup/backends/back_anydbm.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: back_anydbm.py,v 1.66 2002-09-01 04:32:30 richard Exp $ +#$Id: back_anydbm.py,v 1.67 2002-09-03 02:53:53 richard Exp $ ''' This module defines a backend that saves the hyperdatabase in a database chosen by anydbm. It is guaranteed to always be available in python @@ -996,6 +996,10 @@ class Class(hyperdb.Class): else: return default + # return a dupe of the list so code doesn't get confused + if isinstance(prop, Multilink): + return d[propname][:] + return d[propname] # XXX not in spec @@ -1901,6 +1905,15 @@ class IssueClass(Class, roundupdb.IssueClass): # #$Log: not supported by cvs2svn $ +#Revision 1.66 2002/09/01 04:32:30 richard +#. Lots of cleanup in the classic html (stylesheet, search page, index page, ...) +#. Reinstated searching, but not query saving yet +#. Filtering only allows sorting and grouping by one property - all backends +# now implement this behaviour. +#. Nosy list journalling turned off by default, everything else is on. +#. Added some convenience methods (reverse, propchanged, [item] accesses, ...) +#. Did I mention the stylesheet is much cleaner now? :) +# #Revision 1.65 2002/08/30 08:35:45 richard #minor edits # diff --git a/roundup/backends/back_gadfly.py b/roundup/backends/back_gadfly.py index 95b5bef..0c0e89c 100644 --- a/roundup/backends/back_gadfly.py +++ b/roundup/backends/back_gadfly.py @@ -1,4 +1,4 @@ -# $Id: back_gadfly.py,v 1.7 2002-09-01 04:32:30 richard Exp $ +# $Id: back_gadfly.py,v 1.8 2002-09-03 02:53:53 richard Exp $ __doc__ = ''' About Gadfly ============ @@ -1053,6 +1053,10 @@ class Class(hyperdb.Class): else: return default + # don't pass our list to other code + if isinstance(prop, Multilink): + return d[propname][:] + return d[propname] def getnode(self, nodeid, cache=1): @@ -1750,6 +1754,15 @@ class IssueClass(Class, roundupdb.IssueClass): # # $Log: not supported by cvs2svn $ +# Revision 1.7 2002/09/01 04:32:30 richard +# . Lots of cleanup in the classic html (stylesheet, search page, index page, ...) +# . Reinstated searching, but not query saving yet +# . Filtering only allows sorting and grouping by one property - all backends +# now implement this behaviour. +# . Nosy list journalling turned off by default, everything else is on. +# . Added some convenience methods (reverse, propchanged, [item] accesses, ...) +# . Did I mention the stylesheet is much cleaner now? :) +# # Revision 1.6 2002/08/30 08:35:16 richard # very basic filter support #