Mercurial > p > roundup > code
changeset 6304:325beb81c89d issue2550923_computed_property
Computed needs to be hyperdb.Computed. Symbol not imported in anydbm like it is in rdbms.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 21 Dec 2020 00:46:35 -0500 |
| parents | 1e5ed659e8ca |
| children | 20e77c3ce6f6 |
| files | roundup/backends/back_anydbm.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py Fri Nov 27 18:09:00 2020 -0500 +++ b/roundup/backends/back_anydbm.py Mon Dec 21 00:46:35 2020 -0500 @@ -1146,7 +1146,7 @@ # get the property (raises KeyErorr if invalid) prop = self.properties[propname] - if isinstance(prop, Computed): + if isinstance(prop, hyperdb.Computed): return prop.function(prop, nodeid, self.db) if isinstance(prop, hyperdb.Multilink) and prop.computed:
