betheluniversity / cascade

Implementing Cascade Server
2 stars 1 forks source link

Updates to help with tinker #771

Closed ac-he closed 2 years ago

ac-he commented 2 years ago

Description

Update needed to help with [ITS-223308] Send email field not switching to "no" after email is sent. This just required the addition of a minor method in Asset.py to call update and edit in one go, which will hopefully avoid the type errors the News view and controller in Tinker are running into.

This update also includes the addition of docstrings to many (but not all) of the more involved methods, as there were none before. Hopefully this will make the API easier to work with going forward! I also made some changes to the layout of config.dist.py, to make it more compatible with test.py and the Tinker config.py file in the future.

Size and Type of change

How Has This Been Tested?

I ran the method from test.py and it behaved as desired with a few different key-value updates I tried on the test page.

Checklist: