Mercurial > p > roundup > code
comparison roundup/backends/back_anydbm.py @ 6351:0db59cc2cd37
Enable testMultilinkOrdering check. Fix back_anydbm to pass.
The testMultilinkOrdering was commented out with a "some day" comment.
Well some day is today. Works on anydbm and sqlite.
CI will tell me if I need to fix mysql and postgres.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 27 Mar 2021 11:57:02 -0400 |
| parents | 6834bb5473da |
| children | d3a5d0d95869 |
comparison
equal
deleted
inserted
replaced
| 6350:6a69584d117e | 6351:0db59cc2cd37 |
|---|---|
| 1160 else: | 1160 else: |
| 1161 return default | 1161 return default |
| 1162 | 1162 |
| 1163 # return a dupe of the list so code doesn't get confused | 1163 # return a dupe of the list so code doesn't get confused |
| 1164 if isinstance(prop, hyperdb.Multilink): | 1164 if isinstance(prop, hyperdb.Multilink): |
| 1165 return d[propname][:] | 1165 ids = d[propname][:] |
| 1166 print(ids) | |
| 1167 ids.sort(key=lambda x: int(x)) | |
| 1168 return ids | |
| 1166 | 1169 |
| 1167 return d[propname] | 1170 return d[propname] |
| 1168 | 1171 |
| 1169 def set(self, nodeid, **propvalues): | 1172 def set(self, nodeid, **propvalues): |
| 1170 """Modify a property on an existing node of this class. | 1173 """Modify a property on an existing node of this class. |
