Commit graph

99 commits

Author SHA1 Message Date
s3lph
be09ea1ee7 Wrote code documentation for the pagelets of the current implementation, and for some of the jinja2 templates 2018-07-23 00:19:41 +02:00
s3lph
c20029fb36 Moved primitives package to db. 2018-07-22 15:30:59 +02:00
s3lph
ca3c3e755c One more trailing whitespace. 2018-07-21 21:51:02 +02:00
s3lph
1c733c6203 Fixed another codestyle error. 2018-07-21 21:49:02 +02:00
s3lph
9afd86d5ab Fixed code style in db schema definitions. 2018-07-21 21:46:46 +02:00
s3lph
ce0a01cb7c Fixed change_user and change_product unit tests. 2018-07-21 21:45:05 +02:00
s3lph
bead299ccd Migration to a new database schema (version 2), where each transaction (purchase, deposit, or admin modification) is recorded individually. 2018-07-21 21:39:42 +02:00
s3lph
b1a56f59fc Moved currency formatting/parsing into generic util package 2018-07-20 15:30:58 +02:00
s3lph
a4930d268d Added code comments to parse_chf. 2018-07-20 15:25:06 +02:00
s3lph
862a0e6fa8 Implemented unit tests for currency formatting and parsing. 2018-07-20 15:20:33 +02:00
s3lph
103e06cf12 Implemented currency formatting and parsing. 2018-07-20 14:58:22 +02:00
s3lph
0ab7d48622 Enabled jinja2 escaping by default. 2018-07-20 13:57:23 +02:00
s3lph
63aef74e10 Merge branch '18-libmagic-mime-type-detection' into staging-unstable 2018-07-20 13:04:57 +02:00
s3lph
8b0e871dc7 Only use libmagic for static resources if extension-based guessing fails. 2018-07-20 13:01:33 +02:00
s3lph
b6b07fdac5 Merge branch '18-libmagic-mime-type-detection' into staging-unstable 2018-07-20 10:59:39 +02:00
s3lph
8598daf3b0 Catch potential file-magic exception. 2018-07-20 00:49:29 +02:00
s3lph
5912d1e624 Use a libmagic wrapper to guess Content-Type headers. 2018-07-20 00:32:51 +02:00
s3lph
2a75151c2f Merge branch 'dbfacade-staging-merge' into staging-unstable 2018-07-19 22:06:31 +02:00
s3lph
c4018156f5 Changed the change_user and change_product API to get rid of the update -> write -> undo on failure pattern. 2018-07-19 21:51:35 +02:00
s3lph
fcc64d1662 Implemented unit tests for get_user and get_product. 2018-07-19 21:33:19 +02:00
s3lph
105a10e91b Merged extended database API into a branch derived from master. WIP; needs unit tests. 2018-07-17 22:03:08 +02:00
s3lph
3e289e4df8 Merge branch 'master' into staging-unstable 2018-07-15 00:57:33 +02:00
s3lph
fe83b2017c Fixed some minor type annotation issues. 2018-07-15 00:55:39 +02:00
s3lph
c416cac03a Merge branch 'master' into staging-unstable 2018-07-14 23:48:31 +02:00
s3lph
69601150a7 Added additional unit tests. 2018-07-14 23:44:27 +02:00
s3lph
5c9d85fa70 Removed all APSW references. 2018-07-14 23:35:32 +02:00
s3lph
f423aa579a Merge branch 'master' into staging-unstable 2018-07-14 23:09:07 +02:00
s3lph
96eaa2c4c0 Unit tests for 304 Not Modified testing. 2018-07-14 23:05:50 +02:00
s3lph
a9fc6f451b Cleaner datetime API usage. 2018-07-14 22:55:14 +02:00
s3lph
87b66719e3 Implemented (probably quite shaky) static content cache headers. 2018-07-14 19:00:37 +02:00
s3lph
45be1930a4 Merge branch 'master' into staging-unstable 2018-07-14 13:20:53 +02:00
s3lph
4626f22339 config documentation 2018-07-14 13:14:53 +02:00
s3lph
8f82420d7f Logging config unit tests. 2018-07-14 12:55:09 +02:00
s3lph
a4967b1338 Slightly improved logging config. 2018-07-14 12:16:46 +02:00
s3lph
3382d23d85 Basic logging implementation; still undocumented. 2018-07-14 00:15:19 +02:00
s3lph
fab4303d5b Merge branch 'master' into DO-NOT-MERGE-horrible-webapp 2018-07-13 22:10:11 +02:00
s3lph
b12535bc93 Merge branch '3-constant-time-password-verification' into 'master'
Resolve "Password verification apparently vulnerable to timing attacks"

Closes #3

See merge request s3lph/matemat!11
2018-07-13 20:08:11 +00:00
s3lph
9b67d1d1ff Merge branch '7-configuration-file' into DO-NOT-MERGE-horrible-webapp 2018-07-13 20:58:37 +02:00
s3lph
48ad9bc7df Fixed #3 Password verification apparently vulnerable to timing attacks. 2018-07-13 20:04:42 +02:00
s3lph
8fab13e13a Added support for multiple config files 2018-07-13 16:02:30 +02:00
s3lph
758a2eb018 Fixed: Expand ~ in config file parsing. 2018-07-13 01:22:17 +02:00
s3lph
23e6662ca8 Fixed previous unit tests and implemented tests for config parsing. 2018-07-13 00:15:08 +02:00
s3lph
2dd57dcfd6 Reworked and cleaned up config file integration. 2018-07-13 00:14:48 +02:00
s3lph
a52f09fc58 First, horrible config file support. 2018-07-11 22:06:06 +02:00
s3lph
f860ae3b58 Fixed: Wrong argument name check when adding a new product. 2018-07-11 18:24:23 +02:00
s3lph
68a228e95f Fixed user-generated static resources paths. 2018-07-11 16:57:38 +02:00
s3lph
3a8497325f Moved database and user generated content to /var/matemat 2018-07-11 16:06:36 +02:00
s3lph
c3a7f3cf16 Fixed: Check if all required arguments are set in change requests from the admin panel. Also removed the requirement to enter the current password in order to change the touchkey. 2018-07-11 12:30:27 +02:00
s3lph
0481b5bf98 Always add Matemat version number to Jinja template. 2018-07-09 22:46:35 +02:00
s3lph
e618f06d11 Included version number in base template. 2018-07-09 22:41:58 +02:00