app.inventory.views

This module implements the inventory blueprint.

copyright
  1. 2017 European Spallation Source ERIC

license

BSD 2-Clause, see LICENSE for more details.

app.inventory.views.attributes(kind)[source]
app.inventory.views.attributes_favorites()[source]
app.inventory.views.comment_item(ics_id)[source]
app.inventory.views.create_item()[source]
app.inventory.views.delete_comment()[source]
app.inventory.views.edit_comment(comment_id)[source]
app.inventory.views.edit_item(ics_id)[source]
app.inventory.views.list_items()[source]
app.inventory.views.retrieve_attributes(kind)[source]
app.inventory.views.retrieve_attributes_favorites()[source]
app.inventory.views.retrieve_free_stack_members(host_id)[source]

Return as json the free stack members numbers for the given host

If ics_id is passed in the query string, the member will be added to the list (if it exists)

Used to populate dynamically the stack_member field in the create and edit item forms

app.inventory.views.retrieve_items()[source]
app.inventory.views.scanner()[source]

Render the scanner setup codes

app.inventory.views.update_favorites(kind)[source]

Update the current user favorite attributes

Add or remove the attribute from the favorites when the checkbox is checked/unchecked in the attributes table

app.inventory.views.view_item(ics_id)[source]