[ckan-changes] commit/ckan: kindly: [search] bugfix for ticket 1149
Bitbucket
commits-noreply at bitbucket.org
Sun May 22 18:52:45 UTC 2011
1 new changeset in ckan:
http://bitbucket.org/okfn/ckan/changeset/c9b9cf513e44/
changeset: r3104:c9b9cf513e44
user: kindly
date: 2011-05-22 20:52:34
summary: [search] bugfix for ticket 1149
affected #: 1 file (281 bytes)
--- a/ckan/model/modification.py Sat May 21 10:45:28 2011 +0100
+++ b/ckan/model/modification.py Sun May 22 19:52:34 2011 +0100
@@ -63,10 +63,14 @@
for obj in new | changed | deleted:
if not isinstance(obj, Package):
try:
- changed_pkgs.update(obj.related_packages())
+ related_packages = obj.related_packages()
except AttributeError:
continue
-
+ # this is needed to sort out vdm bug where pkg.as_dict does not
+ # work when the package is deleted.
+ for package in related_packages:
+ if package not in deleted | new:
+ changed_pkgs.add(package)
for obj in changed_pkgs:
self.notify(obj, DomainObjectOperation.changed)
del session._object_cache
Repository URL: https://bitbucket.org/okfn/ckan/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the ckan-changes
mailing list