[ckan-changes] commit/ckan: kindly: bug 1140 adding a package to group trigers search index
Bitbucket
commits-noreply at bitbucket.org
Thu Aug 4 20:50:05 UTC 2011
1 new changeset in ckan:
http://bitbucket.org/okfn/ckan/changeset/987da68ea4f6/
changeset: 987da68ea4f6
user: kindly
date: 2011-08-04 22:49:43
summary: bug 1140 adding a package to group trigers search index
affected #: 1 file (133 bytes)
--- a/ckan/model/group.py Thu Aug 04 18:29:00 2011 +0100
+++ b/ckan/model/group.py Thu Aug 04 21:49:43 2011 +0100
@@ -38,7 +38,8 @@
class PackageGroup(vdm.sqlalchemy.RevisionedObjectMixin,
vdm.sqlalchemy.StatefulObjectMixin,
DomainObject):
- pass
+ def related_packages(self):
+ return [self.package]
class Group(vdm.sqlalchemy.RevisionedObjectMixin,
vdm.sqlalchemy.StatefulObjectMixin,
@@ -154,6 +155,8 @@
PackageGroupRevision = vdm.sqlalchemy.create_object_version(mapper, PackageGroup,
package_group_revision_table)
+PackageGroupRevision.related_packages = lambda self: [self.continuity.package]
+
from vdm.sqlalchemy.base import add_stateful_versioned_m2m
#vdm.sqlalchemy.add_stateful_versioned_m2m(Package, PackageGroup, 'groups', 'group',
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