[ckan-changes] commit/ckanextiati: pudo: fix infinite recursion in monkey patch
Bitbucket
commits-noreply at bitbucket.org
Tue May 24 14:35:13 UTC 2011
1 new changeset in ckanextiati:
http://bitbucket.org/okfn/ckanextiati/changeset/8a89faabbd8f/
changeset: r60:8a89faabbd8f
user: pudo
date: 2011-05-24 16:34:37
summary: fix infinite recursion in monkey patch
affected #: 1 file (10 bytes)
--- a/ckanext/iati/patch.py Tue May 24 14:52:42 2011 +0200
+++ b/ckanext/iati/patch.py Tue May 24 16:34:37 2011 +0200
@@ -9,8 +9,9 @@
#########
log.warn("Monkey-patching package serialization format!")
+old = Package.as_dict
def as_dict_with_groups_types(self):
- _dict = Package.as_dict(self)
+ _dict = old(self)
_dict['groups_types'] = "".join([g.extras.get('type', '') for g in self.groups])
return _dict
Repository URL: https://bitbucket.org/okfn/ckanextiati/
--
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