Skip to content

Commit 38b3d9b

Browse files
author
Richard Jones
committed
Fixed nasty bug that was preventing changes to multilinks going through.
1 parent d1bb853 commit 38b3d9b

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

roundup/backends/back_anydbm.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_anydbm.py,v 1.66 2002-09-01 04:32:30 richard Exp $
18+
#$Id: back_anydbm.py,v 1.67 2002-09-03 02:53:53 richard Exp $
1919
'''
2020
This module defines a backend that saves the hyperdatabase in a database
2121
chosen by anydbm. It is guaranteed to always be available in python
@@ -996,6 +996,10 @@ def get(self, nodeid, propname, default=_marker, cache=1):
996996
else:
997997
return default
998998

999+
# return a dupe of the list so code doesn't get confused
1000+
if isinstance(prop, Multilink):
1001+
return d[propname][:]
1002+
9991003
return d[propname]
10001004

10011005
# XXX not in spec
@@ -1901,6 +1905,15 @@ def __init__(self, db, classname, **properties):
19011905

19021906
#
19031907
#$Log: not supported by cvs2svn $
1908+
#Revision 1.66 2002/09/01 04:32:30 richard
1909+
#. Lots of cleanup in the classic html (stylesheet, search page, index page, ...)
1910+
#. Reinstated searching, but not query saving yet
1911+
#. Filtering only allows sorting and grouping by one property - all backends
1912+
# now implement this behaviour.
1913+
#. Nosy list journalling turned off by default, everything else is on.
1914+
#. Added some convenience methods (reverse, propchanged, [item] accesses, ...)
1915+
#. Did I mention the stylesheet is much cleaner now? :)
1916+
#
19041917
#Revision 1.65 2002/08/30 08:35:45 richard
19051918
#minor edits
19061919
#

roundup/backends/back_gadfly.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: back_gadfly.py,v 1.7 2002-09-01 04:32:30 richard Exp $
1+
# $Id: back_gadfly.py,v 1.8 2002-09-03 02:53:53 richard Exp $
22
__doc__ = '''
33
About Gadfly
44
============
@@ -1053,6 +1053,10 @@ def get(self, nodeid, propname, default=_marker, cache=1):
10531053
else:
10541054
return default
10551055

1056+
# don't pass our list to other code
1057+
if isinstance(prop, Multilink):
1058+
return d[propname][:]
1059+
10561060
return d[propname]
10571061

10581062
def getnode(self, nodeid, cache=1):
@@ -1750,6 +1754,15 @@ def __init__(self, db, classname, **properties):
17501754

17511755
#
17521756
# $Log: not supported by cvs2svn $
1757+
# Revision 1.7 2002/09/01 04:32:30 richard
1758+
# . Lots of cleanup in the classic html (stylesheet, search page, index page, ...)
1759+
# . Reinstated searching, but not query saving yet
1760+
# . Filtering only allows sorting and grouping by one property - all backends
1761+
# now implement this behaviour.
1762+
# . Nosy list journalling turned off by default, everything else is on.
1763+
# . Added some convenience methods (reverse, propchanged, [item] accesses, ...)
1764+
# . Did I mention the stylesheet is much cleaner now? :)
1765+
#
17531766
# Revision 1.6 2002/08/30 08:35:16 richard
17541767
# very basic filter support
17551768
#

0 commit comments

Comments
 (0)