Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search: Facet management not working #3333

Closed
blixhavn opened this issue Jul 6, 2015 · 0 comments
Closed

search: Facet management not working #3333

blixhavn opened this issue Jul 6, 2015 · 0 comments
Assignees
Milestone

Comments

@blixhavn
Copy link
Contributor

blixhavn commented Jul 6, 2015

/admin/facetcollection/new/ (the link from the Flask admin menu) produces an exception _init__() got an unexpected keyword argument 'query_factory'.

Full stacktrace:

  File "invenio/ext/legacy/__init__.py", line 119, in __call__
    response = self.app.full_dispatch_request()
  File "flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "flask_restful/__init__.py", line 270, in error_router
    return original_handler(e)
  File "invenio/base/wrappers.py", line 133, in handle_user_exception
    return super(Flask, self).handle_user_exception(e)
  File "flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "flask_admin/base.py", line 68, in inner
    return self._run_view(f, *args, **kwargs)
  File "flask_admin/base.py", line 359, in _run_view
    return fn(self, *args, **kwargs)
  File "flask_admin/model/base.py", line 1581, in create_view
    form = self.create_form()
  File "flask_admin/model/base.py", line 995, in create_form
    return self._create_form_class(get_form_data(), obj=obj)
  File "wtforms/form.py", line 212, in __call__
    return type.__call__(cls, *args, **kwargs)
  File "flask_admin/form/__init__.py", line 13, in __init__
    super(BaseForm, self).__init__(formdata=formdata, obj=obj, prefix=prefix, **kwargs)
  File "wtforms/form.py", line 272, in __init__
    super(Form, self).__init__(self._unbound_fields, meta=meta_obj, prefix=prefix)
  File "wtforms/form.py", line 52, in __init__
    field = meta.bind_field(self, unbound_field, options)
  File "wtforms/meta.py", line 27, in bind_field
    return unbound_field.bind(form=form, **options)
  File "wtforms/fields/core.py", line 346, in bind
    return self.field_class(*self.args, **kw)
  File "wtforms/fields/core.py", line 442, in __init__
    super(SelectField, self).__init__(label, validators, **kwargs)
  File "wtforms/fields/core.py", line 411, in __init__
    super(SelectFieldBase, self).__init__(label, validators, **kwargs)
@tiborsimko tiborsimko added this to the v2.1.1 milestone Jul 13, 2015
@jirikuncar jirikuncar changed the title Facet management not working search: Facet management not working Jul 13, 2015
@jirikuncar jirikuncar self-assigned this Jul 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants