| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Add a function to validate that the ips received from the /scopes form
is valid (no more, no less).
Also redirects to the /scopes when any final request to the ogServer is
responded by a "200 OK"
|
|
|
|
|
|
| |
An error was produced when rendering the setup form of a computer
with any FAT32 partition. It was missing from the mapping of codes
received in a response to a given filesystem.
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit may serve for future reference as to how some cosmetic
changes have been applied to the web.
Primarily using bootstrap classes in order to adjust margin or padding,
there are mechanisms that allow modifying the class of an
underlying html element in WTForms. Bootstrap classes are written
directly in html templates for Flask.
Also add a Soleta branded footer.
|
|
|
|
|
|
| |
These are used to store a message string that can be later accessed. We
can use Flask flash messages to alert about any error or providing info
when processing a request.
|
|
|
|
|
|
|
|
| |
Image creation action was lacking a template to render the form. This
patch adds said template.
Also redirects to /scopes when the request was processed by the ogserver
successfully.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously the only method (in the form select) was "UNICAST". This
patch enables specifying a correct parameter for the underlying script
to fetch the image to be restored.
UNICAST-DIRECT makes the administrator transfer the image through the
network. UNICAST-CACHE indicates the taget pc to search for the image in
its cache partition.
Also redirects to the /scopes when ogserver responds with 200 OK.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A new parameter for the setup/ was added: type. Regarding the disk
partition scheme. It must be either "MSDOS" or "GPT".
ogServer expects a 4 partition setup in order to succesfully execute a
setup/ command. Ogcp is currently getting the partition to modify
one partition at a time. This patch enables ogcp to "autofill" with
empty partitions the partition_setup payload parameter.
TODO: In the future, the setup/ logic should not need to query the
database once again in order to create the 'partition_setup' payload
parameter with the form modifications.
|
|
|
|
| |
Do not use the same name as ogserver config file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch introduces the usage of Flask.Config class so the config can
be read at startup (__init__) only once. Config keys must be uppercase
so that from_json method does take it into account.
dormousehole.readthedocs.io/en/stable/api.html#flask.Config.from_json
Prior to this patch each request required opening and closing the
ogserver.json file via load_config in views.py.
In the future the decorated load_config function inside views.py
may be removed to avoid creating multiple instances of the OGServer
class.
|
|
|
|
|
|
|
|
| |
This action lists every piece of software installed in an OS from a
client.
This action can handle listing the software from the DB as well as
updating that DB with the latest client information.
|
|
|
|
|
| |
This action handles the creation of the image in the DB as well as the
'.img' file.
|
|
|
|
| |
These templates were not added in previous commits.
|
|
|
|
|
| |
This action provides the image restoring functionality on a specific
client.
|
|
|
|
|
| |
This action provides the functionality to run one of the installed OSs
in a client.
|
|
|
|
| |
This action lists all the hardware items in a client.
|
|
|
|
|
| |
This action provides the functionality to add a new client to an
ogServer.
|
|
|
|
|
| |
This action is used to visualize the specific details of a client, such
as its IP, Name, MAC, etc.
|
|
|
|
| |
This view deletes and formats a partition from the selected machine.
|
|
|
|
|
|
| |
Partition filesystem are encoded with integers in the DB. We need to
send the type string instead of the encoded integer, so this patch
parses the encoded integer to string.
|
|
|
|
|
| |
This provides a menu to setup the internal partitions setup of each
machine. Delete partitions is still just a placeholder.
|
|
|
|
| |
This avoids trying to parse CSFT token as an IP.
|
| |
|
|
|
|
| |
This handles HTTP 500 internal server errors.
|
|
|
|
| |
This handles HTTP 404 page does not exist errors.
|
|
|
|
| |
This action can be applied on single or multiple scopes.
|
|
|
|
|
|
| |
This action can be applied on one or multiple scopes. This
implementation use Flask-WTF as a way to build and valdiate forms. As a
side effect, this adds CSRF protection to all forms.
|
|
|
|
| |
This action handles reboot on one or multiple scopes.
|
|
|
|
| |
This function is renamed to add_state_and_ips() which is more accurate.
|
|
|
|
| |
This function handles a poweroff request to one or multiple scopes.
|
|
|
|
|
| |
This function provides the data needed to render the scopes.html
template.
|
|
|
|
|
| |
These functions will be used to make HTTP GET and POST requests to the
OGServer.
|
|
|
|
|
| |
This template shows information about scopes and its states as well as a
tool to apply actions on them. Style improvements are still necessary.
|
|
|
|
| |
This is used for multiple bootstrap components such as dropdown menus.
|
|
|
|
|
| |
This adds base.html and nav.html templates as well as its dependencies
on Bootstrap and jQuery.
|
|
This adds views functions and ogServer config loading.
|