Commit Graph

463 Commits

Author SHA1 Message Date
Maxime Alves LIRMM@home d4a6bb1a04 [domainMW] set "acl_pass" variable into scope 2020-11-09 21:27:23 +01:00
Maxime Alves LIRMM@home 5d4b8d38b4 0.3.1 2020-11-09 21:26:31 +01:00
Maxime Alves LIRMM@home 9516eaa6d7 RAISES when a router import fails - test your domains routers FFS 2020-11-04 17:02:19 +01:00
Maxime Alves LIRMM@home 56657036e4 Added logging for acls 2020-11-04 13:32:33 +01:00
Maxime Alves LIRMM@home 73d49031a7 handle configuration when domain does not exist 2020-11-04 12:31:11 +01:00
Maxime Alves LIRMM@home 4782764059 add request.scope['config'] when there is a section with the domains name in the project's configuration 2020-11-04 05:01:26 +01:00
Maxime Alves LIRMM@home 61aec6871a [release][v0.3.0] Updated version to 0.3.0 2020-10-31 17:48:55 +01:00
Maxime Alves LIRMM@home 9a4f90d36b /lib/domain - try for ImportError bug 2020-10-27 13:07:49 +01:00
Maxime Alves LIRMM 64e60343bf [conf] Clean of DOMAINS global variable 2020-10-27 13:07:49 +01:00
Maxime Alves LIRMM 4df34b5d87 logging 2020-10-27 13:07:49 +01:00
Maxime Alves LIRMM 24c68b51f2 [lib] ORJSONResponse can now accept specific encoders 2020-10-26 15:12:03 +01:00
Maxime Alves LIRMM d31efe3cc4 [deps] removed half_orm from dependencies 2020-10-20 08:25:50 +02:00
Maxime Alves LIRMM e590bc31fe [doc] lib/domain, lib/domain_middlware 2020-10-07 16:13:54 +02:00
Maxime Alves LIRMM 3959e6d614 [tests] add dummy_domain as a testing dependency (because domains can't
be "not installed" in sys.path)
2020-10-07 15:51:24 +02:00
Maxime Alves LIRMM 1e1ff2fb69 [routes] skip acls that are falsy 2020-10-07 15:50:50 +02:00
Maxime Alves LIRMM 63b73a2bc1 [middleware][domain] load api and acl objects at each call (TODO: use a cache) 2020-10-07 15:49:49 +02:00
Maxime Alves LIRMM 710d390b49 [cli][conf] suppression of BASE_DIR option (now defaults to os.getcwd) 2020-10-07 15:48:48 +02:00
Maxime Alves LIRMM cb5724b4fa [doc] lib/domain_middleware 2020-10-07 13:37:31 +02:00
Maxime Alves LIRMM 23bd876c4c [conf] fix list comprehension 2020-10-07 09:55:03 +02:00
Maxime Alves LIRMM 40547ddf30 [tests][OK] Using a dummy_domain, adding it and listing it's routes 2020-10-07 09:55:03 +02:00
Maxime Alves LIRMM f5ebabbcd4 [refactor] update to avoid using global variables, and configuration are not stored in /etc/half_api anymore
Added domain_middleware
2020-10-07 09:55:03 +02:00
Maxime Alves LIRMM 781736c151 [logs] print -> logger lib.domain 2020-10-07 09:55:03 +02:00
Maxime Alves LIRMM acb0a46904 [deps] add PyYAML to dependencies 2020-10-07 09:55:03 +02:00
Maxime Alves LIRMM b651d90f0e [cli] add entry point to be just "halfapi" in Pipfile (__main__.py) 2020-10-07 09:55:03 +02:00
Maxime Alves LIRMM 0a34948b98 [cli] switch halfapi import to relative imports in cli.py 2020-10-07 09:55:03 +02:00
Maxime Alves LIRMM c41d0d8f8f [deps] jwt->PyJWT in Pipfile 2020-10-07 09:54:31 +02:00
Maxime Alves LIRMM 91ea25791b [doc] lib/domain.py annotation and comments 2020-10-07 09:54:09 +02:00
Maxime Alves LIRMM 0cd7c987e5 pylint lib/acl.py 2020-10-07 09:54:09 +02:00
Joël Maïzi 6653a0cd0a Fix wrong dependency jwt -> pyjwt. 2020-10-05 11:39:55 +02:00
Maxime Alves LIRMM 2d51f260cd [clean] remove cli/lib dir 2020-10-05 11:33:28 +02:00
Maxime Alves LIRMM 8fc1ba6c91 [doc] cli/domain.py 2020-10-05 11:31:53 +02:00
Maxime Alves LIRMM 9753f4be95 [doc] cli/run.py 2020-10-05 11:30:18 +02:00
Maxime Alves LIRMM 584e0b6584 [doc] cli/run.py 2020-10-05 11:29:17 +02:00
Maxime Alves LIRMM 82e2ccbdbc [tests] fix tests according to abfaf2e1 2020-10-05 11:28:50 +02:00
Maxime Alves LIRMM a6f2187032 [doc][style] cli/init.py 2020-10-05 11:23:44 +02:00
Maxime Alves LIRMM 1ee5da1588 [tests][jwt] fixs tests according to abfaf2e1 2020-10-05 11:18:47 +02:00
Maxime Alves LIRMM 1d0d3563cb [style] Clean cli/__init__.py 2020-10-05 11:10:34 +02:00
Maxime Alves LIRMM 91581f9ae6 [docs][style] cli/config.py 2020-10-05 11:10:00 +02:00
Maxime Alves LIRMM 6ac0b5acd9 [doc] cli/cli.py 2020-10-05 11:08:27 +02:00
Maxime Alves LIRMM 77598b8453 [doc][style] document fonctions and fix variable names 2020-10-05 11:04:32 +02:00
Maxime Alves LIRMM ad1fed7117 [doc] add docstring to conf.py 2020-10-05 10:57:40 +02:00
Maxime Alves LIRMM 59ed5884ce [style] rename exceptions (e) as exc (pep8 style) 2020-10-05 10:55:55 +02:00
Maxime Alves LIRMM 5c4e81d5d2 [jwt_mw] Refuse DEBUG tokens in PROD mode with websockets 2020-10-05 10:55:55 +02:00
Maxime Alves LIRMM 21950aa6cd [cli] remove lib/db 2020-10-05 10:55:55 +02:00
Joël Maïzi abfaf2e1ea [acls] Fix wrong key in payload for decoded JWT. 2020-10-05 10:48:00 +02:00
Maxime Alves LIRMM 333aca9e2c [app] clean code 2020-10-05 10:09:01 +02:00
Maxime Alves LIRMM b6e511a96d [lib][domain/routes] clean code, use "yield from" 2020-10-04 18:09:23 +02:00
Maxime Alves LIRMM deb41be3e8 [deps] added pylint as devdep 2020-10-04 17:27:24 +02:00
Maxime Alves LIRMM 429b26dec6 clean code + logs in conf 2020-10-04 17:27:02 +02:00
Maxime Alves LIRMM c603727190 [test] adjust test_gen_router_routes to fit the new behaviour 2020-10-04 17:26:36 +02:00