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

global: circulation specific user search #4

Merged
merged 1 commit into from Sep 14, 2016

Conversation

mvesper
Copy link
Contributor

@mvesper mvesper commented Sep 6, 2016

  • Adds a first REST API implementation for invenio_accounts.models.User that handles current invenio-circulation needs.

@jirikuncar jirikuncar changed the base branch from master to package-structure September 6, 2016 11:37
def get(self):
"""Get accounts/users/?q=."""
query = request.args.get('q')
return list(User.query.filter(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

User.query.filter(...).all() or .paginate(...)

@jirikuncar jirikuncar changed the base branch from package-structure to master September 6, 2016 11:40
@mvesper mvesper force-pushed the circulation_initial branch 2 times, most recently from 86bf405 to ab1850f Compare September 6, 2016 13:52
@jirikuncar
Copy link
Member

@mvesper can you fix Python 3.3 or just remove Python 3.3, 3.4 from setup.py and .travis.yml. Thanks

def get(self):
"""Get accounts/users/?q=."""
query = request.args.get('q')
return User.query.filter(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should filter only if query:

* Adds a first REST API implementation for
  *invenio_accounts.models.User* that handles current
  *invenio-circulation* needs.
@jirikuncar jirikuncar merged commit a7f9d09 into inveniosoftware:master Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants