- Nov 28, 2018
-
-
Robin Goodall authored
configure inputs explicitly
-
Dr Rich Wareham authored
Empirically, setting "default" as the imputs field no longer sets all the default inputs. Explicitly configure them in the API call.
-
- Nov 27, 2018
-
-
si202cam authored
Fixes for Opencast 6
-
Dr Rich Wareham authored
Empirically, specifying start and duration only causes an internal server error. Go back to start and end for the moment.
-
Dr Rich Wareham authored
The row is a dictionary not a list so doing ','.join(row) will give the puzzling result of printing out the header row :).
-
si202cam authored
some finessing of the script
-
Dr Rich Wareham authored
-
Dr Rich Wareham authored
The problem with copy-pasting gitignore files is that sometimes cruft is left in them.
-
Dr Rich Wareham authored
This commit finesses the packaging and UX of the script a little. Add a README which indicates the purpose of the script, how to install it and a usage example. Add a basic packaging so that the script may be installed via pip. Add .editorconfig files so that people which appropriately configured editors get the cerrect indentation/line length settings. Add .gitignore to avoid accidentally committing files we don't want. Modify the script itself: 1. Logging is now to standard error by default. Redirection and/or ``tee`` can be used to log to a file. 2. Logging verbosity can be reduced via a ``--quiet`` flag. 3. Be explicit in what Opencast server and credentials we use rather than loading them from the environment. With multiple Opencast instances running it would be all to easy to accidentally schedule events in the wrong one. 4. Use urljoin() to form the API URL rather than string concatenation. This behaves correctly in the case where the API URL is specified with a trailing slash. 5. Default to standard input for CSV if no path is specified rather than having a "magic" filename. 6. Global constants converted to use SHOUTING_CASE which is the convention we adopt in our projects. 7. Use slightly more descriptive variable names and increase logging in places to show troublesome data in the log. 8. Requests returns a "response" and not a "request" so re-name the variable appropriately. 9. Rather than load passwords from the environment which is leaky since all program run see that variable, load passwords from a file. This is also a bit more compatible with, e.g., Docker secrets.
-
Dr Rich Wareham authored
Add a license specifying the terms under which this software is released.
-
Rich Wareham authored
Schedule opencast events from csv files
-
Dr Rich Wareham authored
Rather than specifying a start and end time for events, specify a start time and duration. This has greater compatibility with recurring events.
-
Dr Rich Wareham authored
-
Dr Rich Wareham authored
The fix was to remove the use of "%" and use logging's built in formatting support.
-
Dr Rich Wareham authored
-
Dr Rich Wareham authored
-
Dr Rich Wareham authored
-
- Nov 22, 2018
-
-
Steve Ison authored
-
Steve Ison authored
Merge branch 'initial-csv-shed' of https://github.com/si202cam/lecture-capture-csv-scheduler into initial-csv-shed Making changes requested by rjw57
-
Steve Ison authored
-
Rich Wareham authored
Co-Authored-By:
si202cam <34542715+si202cam@users.noreply.github.com>
-
Steve Ison authored
-
Steve Ison authored
-
si202cam authored
-