[okfn-help] Fwd: WebApp Error: <type 'exceptions.IndexError'>:
Jason Kitcat
jason.kitcat at okfn.org
Thu May 12 16:10:13 UTC 2011
Can I be taken off receiving these messages?
Thanks,
Jason
Begin forwarded message:
> From: no-reply at dgu-live.ckan.net
> Date: 12 May 2011 17:09:40 GMT+01:00
> To: ckan-sysadmin at okfn.org
> Subject: WebApp Error: <type 'exceptions.IndexError'>:
>
> URL: http://dgu-live.okfn.org/api/form/package/edit/304960cf-9491-4365-8103-87962be76912?user_id=2426
> Module weberror.errormiddleware:162 in __call__
> >> app_iter = self.application(environ, sr_checker)
> Module beaker.middleware:73 in __call__
> >> return self.app(environ, start_response)
> Module beaker.middleware:152 in __call__
> >> return self.wrap_app(environ, session_start_response)
> Module routes.middleware:130 in __call__
> >> response = self.app(environ, start_response)
> Module pylons.wsgiapp:125 in __call__
> >> response = self.dispatch(controller, environ, start_response)
> Module pylons.wsgiapp:324 in dispatch
> >> return controller(environ, start_response)
> Module ckan.lib.base:106 in __call__
> >> return WSGIController.__call__(self, environ, start_response)
> Module pylons.controllers.core:221 in __call__
> >> response = self._dispatch_call()
> Module pylons.controllers.core:172 in _dispatch_call
> >> response = self._inspect_call(func)
> Module pylons.controllers.core:107 in _inspect_call
> >> result = self._perform_call(func, args)
> Module pylons.controllers.core:60 in _perform_call
> >> return func(**args)
> Module ckanext.dgu.forms.formapi:287 in package_edit
> >> client=c,
> Module ckan.lib.package_saver:157 in __init__
> >> self.write_package()
> Module ckan.lib.package_saver:160 in write_package
> >> PackageSaver().commit_pkg( self.fieldset, self.log_message, self.author, self.client)
> Module ckan.lib.package_saver:90 in commit_pkg
> >> cls._update(fs, log_message, author, commit=True, client=client)
> Module ckan.lib.package_saver:110 in _update
> >> fs.sync()
> Module formalchemy.forms:190 in sync
> >> AbstractFieldSet.sync(self)
> Module formalchemy.base:518 in sync
> >> field.sync()
> Module ckan.forms.common:363 in sync
> >> pkg.update_resources(res_dicts, autoflush=False)
> Module ckan.model.package:115 in update_resources
> >> self.resource_groups[0].resources = new_res_list
> Module vdm.sqlalchemy.stateful:231 in __getitem__
> >> baseindex = self._get_base_index(index)
> Module vdm.sqlalchemy.stateful:188 in _get_base_index
> >> raise IndexError
> IndexError:
> CGI Variables
> CONTENT_LENGTH '-1'
> CONTENT_TYPE 'application/x-www-form-urlencoded'
> DOCUMENT_ROOT '/var/lib/ckan/dgu/static'
> GATEWAY_INTERFACE 'CGI/1.1'
> HTTP_ACCEPT '*/*'
> HTTP_AUTHORIZATION 'Basic ZnJvbnRlbmQzOnB1bmVldGE4'
> HTTP_EXPECT '100-continue'
> HTTP_HOST 'dgu-live.okfn.org'
> HTTP_X_CKAN_API_KEY '66faa087-b294-4f92-b2cd-d6a47e3749dd'
> PATH '/usr/local/bin:/usr/bin:/bin'
> PATH_INFO '/api/form/package/edit/304960cf-9491-4365-8103-87962be76912'
> PATH_TRANSLATED '/etc/ckan/dgu/dgu.py/api/form/package/edit/304960cf-9491-4365-8103-87962be76912'
> QUERY_STRING 'user_id=2426'
> REMOTE_ADDR '212.110.177.168'
> REMOTE_PORT '40667'
> REQUEST_METHOD 'POST'
> REQUEST_URI '/api/form/package/edit/304960cf-9491-4365-8103-87962be76912?user_id=2426'
> SCRIPT_FILENAME '/etc/ckan/dgu/dgu.py'
> SERVER_ADDR '212.110.177.172'
> SERVER_ADMIN '[no address given]'
> SERVER_NAME 'dgu-live.okfn.org'
> SERVER_PORT '80'
> SERVER_PROTOCOL 'HTTP/1.1'
> SERVER_SOFTWARE 'Apache'
> WSGI Variables
> application <beaker.middleware.CacheMiddleware object at 0x7f8ff86c4e10>
> beaker.cache <beaker.cache.CacheManager object at 0x7f8ff86c4ed0>
> beaker.get_session <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x7f8ff86c4e50>>
> beaker.session {'_accessed_time': 1305216580.146991, '_creation_time': 1305216580.146991}
> mod_wsgi.application_group 'dgu-live.okfn.org|'
> mod_wsgi.callable_object 'application'
> mod_wsgi.listener_host ''
> mod_wsgi.listener_port '80'
> mod_wsgi.process_group ''
> mod_wsgi.reload_mechanism '0'
> mod_wsgi.script_reloading '1'
> mod_wsgi.version (2, 8)
> paste.cookies (<SimpleCookie: >, '')
> paste.parsed_dict_querystring (MultiDict([('user_id', '2426')]), 'user_id=2426')
> paste.parsed_querystring ([('user_id', '2426')], 'user_id=2426')
> paste.registry <paste.registry.Registry object at 0x7f8ff8bcd690>
> paste.throw_errors True
> pylons.action_method <bound method FormController.package_edit of <ckanext.dgu.forms.formapi.FormController object at 0x7f8ff969d450>>
> pylons.controller <ckanext.dgu.forms.formapi.FormController object at 0x7f8ff969d450>
> pylons.environ_config {'session': 'beaker.session', 'cache': 'beaker.cache'}
> pylons.pylons <pylons.util.PylonsContext object at 0x7f8ff969dc50>
> pylons.routes_dict {'action': u'package_edit', 'controller': u'ckanext.dgu.forms.formapi:FormController', 'id': u'304960cf-9491-4365-8103-87962be76912'}
> repoze.who.logger <logging.Logger instance at 0x7f8ff86c5680>
> repoze.who.plugins {'openid': <OpenIdIdentificationPlugin 140256327448400>, 'friendlyform': <FriendlyFormPlugin 140256324915856>, 'ckan.lib.authenticator:UsernamePasswordAuthenticator': <ckan.lib.authenticator.UsernamePasswordAuthenticator object at 0x7f8ff8939fd0>, 'auth_tkt': <AuthTktCookiePlugin 140256327448656>, 'ckan.lib.authenticator:OpenIDAuthenticator': <ckan.lib.authenticator.OpenIDAuthenticator object at 0x7f8ff8939a90>}
> routes.route <routes.route.Route object at 0x7f8ff85430d0>
> routes.url <routes.util.URLGenerator object at 0x7f8ff8d749d0>
> webob._parsed_post_vars (MultiDict([('{"form_data":{"Package-304960cf-9491-4365-8103-87962be76912-title":"Family Information Directory source code","Package-304960cf-9491-4365-8103-87962be76912-name":"family-information-directory","Package-304960cf-9491-4365-8103-87962be76912-notes":"The Department is releasing the software components of the Aggregator under an open source licence to enable any organisation that wishes to build and manage its own version of the Directory.\\r\\n\\r\\n<strong>Background to the Family Information Directory<\\/strong>\\r\\n\\r\\n<p>The Family Information Directory was introduced in 2009 to provide a unique, comprehensive source of registered childcare and family services information.<\\/p>\\r\\n\\r\\n<p>The Directory is an extensive online signposting system. The key component of the Directory is the Aggregator whi ch aggregates data from local authorities and national organisations in England. It then publishes the information on a range of websites to enable ...t([('{"...'')])>)
> webob._parsed_query_vars (GET([('user_id', '2426')]), 'user_id=2426')
> webob.adhoc_attrs {'errors': 'ignore', 'language': 'en-us'}
> wsgi process 'Multiprocess'
> wsgi.file_wrapper <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f8ff98b9648>
> wsgiorg.routing_args (<routes.util.URLGenerator object at 0x7f8ff8d749d0>, {'action': u'package_edit', 'controller': u'ckanext.dgu.forms.formapi:FormController', 'id': u'304960cf-9491-4365-8103-87962be76912'})
--
Jason Kitcat
Project Co-ordinator
The Open Knowledge Foundation
+44 (0) 7956 886 508
http://www.okfn.org
http://twitter.com/jasonkitcat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/okfn-help/attachments/20110512/ade716f7/attachment.html>
More information about the okfn-help
mailing list