Block a user
4b49128eb9
TEMP: Offset
40e329d37f
Reordered the validators in the "accounting.transaction.forms.journal_entry" module.
23a0721d8d
Added assert in the be function in the "accounting.utils.cast" module, to insure the correctness of the expression received.
2b2c665eb6
Replaced the if checks with assert in the IsBalanced validator of the currency sub-form of the transaction form, the NoOffsetNominalAccount validator of the account form, and the CodeUnique validator of the currency form.
91e6dc6668
Removed an excess tailing blank line from the "accounting.currency.views" module.
e9d8a8fcd8
Added the "accounting.utils.cast" module to cast the things to the expected type in order to supress the warnings from PyCharm.
680f2331d7
Removed an excess tailing blank line from the "accounting.currency.views" module.
def09d93c6
Added the "accounting.utils.cast" module to cast the things to the expected type in order to supress the warnings from PyCharm.
4c84686395
Removed an unused import from the "accounting" module.
61fd1849ed
Removed the annotation future import from the "accounting.transaction.utils.account_option", "accounting.transaction.forms.journal_entry", and "accounting.transaction.forms.reorder" modules.
a67158f8f6
Moved the CodeUnique validator from an inner class of the CurrencyForm form to an independent class, and removed the annotation future import from the "accounting.currency.forms" module.
d9ecf51c6d
Added the "create_test_app" function in testlib.py to replace "create_app" to prevent common mistakes. Added a get_csrf_token_view route to the application, and changed the get_csrf_token function to retrieve the CSRF token with the route without parsing the HTML for the CSRF token.
5d31eb9172
Removed the unnecessary future annotation import from the "accounting.transaction.forms.transaction" module.
fadce244c5
Revised the type hint and the coding style of the NeedSomeCurrencies validator.
32244e7b82
TEMP: Offset
cbe7c6ca6d
Added dummy.js to .gitignore and MANIFEST.in for exclusion.
b03938fb2e
Added test_temp.py to the exclusion in MANIFEST.in.
8061a23fdc
Renamed the AbstractUserUtils class to UserUtilityInterface, and added the can_view and can_edit functions to the UserUtilityInterface interface. There is no need to separately supply two additional can_view and can_edit callbacks.
cd8a480cd0
Revised the documentation of the AbstractUserUtils class.
32244e7b82
TEMP: Offset
cbe7c6ca6d
Added dummy.js to .gitignore and MANIFEST.in for exclusion.
b03938fb2e
Added test_temp.py to the exclusion in MANIFEST.in.
8061a23fdc
Renamed the AbstractUserUtils class to UserUtilityInterface, and added the can_view and can_edit functions to the UserUtilityInterface interface. There is no need to separately supply two additional can_view and can_edit callbacks.
cd8a480cd0
Revised the documentation of the AbstractUserUtils class.
ec15cf450c
TEMP: Offset
197d673c9c
Added dummy.js to .gitignore and MANIFEST.in for exclusion.
7e9f4986a3
Added test_temp.py to the exclusion in MANIFEST.in.
d2332420a5
Renamed the AbstractUserUtils class to UserUtilityInterface, and added the can_view and can_edit functions to the UserUtilityInterface interface. There is no need to separately supply two additional can_view and can_edit callbacks.
fc9b8a22f7
Revised the documentation of the AbstractUserUtils class.
ec15cf450c
TEMP: Offset
197d673c9c
Added dummy.js to .gitignore and MANIFEST.in for exclusion.
7e9f4986a3
Added test_temp.py to the exclusion in MANIFEST.in.
d2332420a5
Renamed the AbstractUserUtils class to UserUtilityInterface, and added the can_view and can_edit functions to the UserUtilityInterface interface. There is no need to separately supply two additional can_view and can_edit callbacks.
fc9b8a22f7
Revised the documentation of the AbstractUserUtils class.