[ckan-discuss] plugin of iDataset_form not working in the first phase of dataset registration

Sean Hammond sean.hammond at okfn.org
Fri Apr 5 10:35:41 BST 2013


Hi, ckanext/example_idatasetform on master adds a custom field called
"Custom Text" to the first phase of dataset registration, and with a
quick test it appears to still be working on master. Maybe try following
that example?

If you can reproduce any problem using ckanext/example_idatasetform then
there's a bug.

Without seeing the code of your extension, I don't know why you're
getting the error that you are.

On Thu, Apr 04, 2013 at 03:23:00PM -0400, Yanning(Yu) Chen wrote:
> Hi folks,
> 
> I've been successfully able to modify the schema and UI of dataset
> registration using under CKAN 2.0 but things just don't work again on
> CKAN 2.1a. I followed the new ways of making changes on the schema and
> UI in the first phase of data registration, but after I uploaded the
> file in the second phase and click next, the server crashes with
> internal error 500. 
> 
> The error report is 
> 
> File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/weberror/errormiddleware.py',
> line 162 in __call__ app_iter = self.application(environ, sr_checker)
> File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/webob/dec.py',
> line 147 in __call__ resp = self.call_func(req, *args, **self.kwargs)
> File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/webob/dec.py',
> line 208 in call_func return self.func(req, *args, **kwargs) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/fanstatic/publisher.py',
> line 234 in __call__ return request.get_response(self.app) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/webob/request.py',
> line 1053 in get_response application, catch_exc_info=False) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/webob/request.py',
> line 1022 in call_application app_iter = application(self.environ,
> start_response) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/webob/dec.py',
> line 147 in __call__ resp = self.call_func(req, *args, **self.kwargs)
> File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/webob/dec.py',
> line 208 in call_func return self.func(req, *args, **kwargs) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/fanstatic/injector.py',
> line 54 in __call__ response = request.get_response(self.app) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/webob/request.py',
> line 1053 in get_response application, catch_exc_info=False) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/webob/request.py',
> line 1022 in call_application app_iter = application(self.environ,
> start_response) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/beaker/middleware.py',
> line 73 in __call__ return self.app(environ, start_response) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/beaker/middleware.py',
> line 155 in __call__ return self.wrap_app(environ,
> session_start_response) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/routes/middleware.py',
> line 131 in __call__ response = self.app(environ, start_response) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/pylons/wsgiapp.py',
> line 125 in __call__ response = self.dispatch(controller, environ,
> start_response) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/pylons/wsgiapp.py',
> line 324 in dispatch return controller(environ, start_response) File
> '/home/momo/pyenv/src/ckan/ckan/lib/base.py', line 288 in __call__ res
> = WSGIController.__call__(self, environ, start_response) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/pylons/controllers/core.py',
> line 221 in __call__ response = self._dispatch_call() File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/pylons/controllers/core.py',
> line 172 in _dispatch_call response = self._inspect_call(func) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/pylons/controllers/core.py',
> line 107 in _inspect_call result = self._perform_call(func, args) File
> '/home/momo/pyenv/local/lib/python2.7/site-packages/pylons/controllers/core.py',
> line 60 in _perform_call return func(**args) File
> '/home/momo/pyenv/src/ckan/ckan/controllers/package.py', line 658 in
> new_resource pkg_dict = get_action('package_show')(context, {'id':
> id}) File '/home/momo/pyenv/src/ckan/ckan/logic/__init__.py', line 324
> in wrapped return _action(context, data_dict, **kw) File
> '/home/momo/pyenv/src/ckan/ckan/logic/action/get.py', line 722 in
> package_show raise NotFound NotFound: 
> 
> Any suggestion or similar experience? Thanks!
> 
> Cheers Yu
> 
> _______________________________________________ ckan-discuss mailing
> list ckan-discuss at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-discuss Unsubscribe:
> http://lists.okfn.org/mailman/options/ckan-discuss



More information about the ckan-discuss mailing list