- Dec 18, 2019
-
-
Benjamin Bertrand authored
stack_member was incorrectly coerced to a string JIRA INFRA-1648 #action In Progress
-
- Nov 26, 2019
-
-
Benjamin Bertrand authored
Validation worked in the models because fullmatch is used but in the Regexp validators from wtforms, only match is called. The form validator didn't catch "AAA1100". Test added for this. JIRA INFRA-1569 #action In Progress
-
- Oct 18, 2018
-
-
Benjamin Bertrand authored
JIRA INFRA-618 #action In Progress
-
- Jul 06, 2018
-
- Apr 23, 2018
-
-
Benjamin Bertrand authored
This is to be used for stack of switches only - a stack_member is linked to an host (device_type has to be "Switch") - a stack_member is an integer between 0 and 9 (included) or can be None - the couple (host_id, stack_member) must be unique JIRA INFRA-267
-
- Apr 20, 2018
-
-
Benjamin Bertrand authored
1. When we have a stack of switches, the same IP is associated to several switches 2. Move the items <-> host assocation to the item create/edit page JIRA INFRA-267
-
- Jan 18, 2018
-
-
Benjamin Bertrand authored
Allow to keep track of batches of small parts.
-
- Jan 02, 2018
-
-
Benjamin Bertrand authored
Having the description field only on the Model class makes things inconsistent. It's nice to have a description on other attributes as well.
-
- Dec 21, 2017
-
-
Benjamin Bertrand authored
text is really generic and could conflict with another variable. body is often used for comments.
-
- Dec 19, 2017
-
-
Benjamin Bertrand authored
Move regex to validators.py
-
Benjamin Bertrand authored
Used to validate a list of strings against a regular expresssion.
-
Benjamin Bertrand authored
To check if the unique object is the one being edited, we need to store the object used to create the form in the form (_obj). This is inspired from flask-admin.
-
- Dec 18, 2017
-
-
Benjamin Bertrand authored
Rendering done client side using Showdown: http://showdownjs.com Live preview is shown below the form. Only raw text is saved in the database (no HTML). Note that no XSS filtering is done! See https://github.com/showdownjs/showdown/wiki/Markdown's-XSS-Vulnerability-(and-how-to-mitigate-it)
-
- Dec 15, 2017
-
-
Benjamin Bertrand authored
If a selectfield is disabled, None is returned (not a string). To pass wtforms validation, that value shall be part of the choices. We use None as the value for SelectField that are optional (instead of ''). We were previously converting '' to None when creating a model. We now use the coerce function to let the form convert 'None' to None.
-
Benjamin Bertrand authored
TODO: we should be able to render HTML in the comments Look at https://github.com/miguelgrinberg/Flask-PageDown
-
- Dec 13, 2017
-
-
Benjamin Bertrand authored
-
Benjamin Bertrand authored
main blueprint splitted in: - inventory - networks
-
- Dec 06, 2017
-
-
Benjamin Bertrand authored
-
Benjamin Bertrand authored
-
Benjamin Bertrand authored
-
Benjamin Bertrand authored
-
Benjamin Bertrand authored
- refactor Network class
-
- Nov 17, 2017
-
-
Benjamin Bertrand authored
-
- Sep 06, 2017
-
-
Benjamin Bertrand authored
This can be done via the Admin interface but this latter shall be restricted to admin users. This simple page allows the group "create" to easily add new Manufacturer, Model or Location.
-