[ckan-changes] commit/ckan: amercader: [forms] Fix import in old formalchemy package controller

Bitbucket commits-noreply at bitbucket.org
Fri Jul 1 10:11:36 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/d9bc82dfb48c/
changeset:   d9bc82dfb48c
user:        amercader
date:        2011-07-01 12:11:24
summary:     [forms] Fix import in old formalchemy package controller
affected #:  1 file (52 bytes)

--- a/ckan/controllers/package_formalchemy.py	Thu Jun 30 18:06:33 2011 +0200
+++ b/ckan/controllers/package_formalchemy.py	Fri Jul 01 11:11:24 2011 +0100
@@ -64,8 +64,11 @@
                 if domain.startswith('www.'):
                     domain = domain[4:]
             # ensure all fields specified in params (formalchemy needs this on bind)
-            data = ckan.forms.add_to_package_dict(ckan.forms.get_package_dict(fs=fs), request.params)
+            from ckan.forms import add_to_package_dict,get_package_dict
+
+            data = add_to_package_dict(get_package_dict(fs=fs), request.params)
             fs = fs.bind(model.Package, data=data, session=model.Session)
+
         else:
             fs = fs.bind(session=model.Session)
         #if 'preview' in request.params:

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