Suraj Shetty
c0c5b2ebdd
style: format all python files using black ( #16453 )
Co-authored-by: Frappe Bot <developers@frappe.io>
3 years ago
Sagar Vora
951ad3f844
chore(deps): bump werkzeug to latest version
3 years ago
Faris Ansari
b632cc558b
fix: remove unnecessary array transformation in request args
`key: ['value', 'value2']` is turned into `key: 'value'` for no reason
3 years ago
Suraj Shetty
fba15b3874
fix: Combine request args and form data
- To accept argument via both way in a single request
3 years ago
Mitul David
648d24eca5
refactor: Limit file size of uploads by setting max_content_length
3 years ago
Gavin D'souza
3446026555
chore: Update header: license.txt => LICENSE
The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
3 years ago
Gavin D'souza
e407b78506
chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
is legacy.
* Removed usages of utils from future/past libraries since they are
deprecated. This includes 'from __future__ ...' and 'from past...'
statements.
* Removed compatibility imports for PY2, switched from six imports to
standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
4 years ago
Gavin D'souza
b1d2e24892
refactor(minor): Move logging code in seperate function
4 years ago
Sagar Vora
09e406395a
fix: add docstring
(cherry picked from commit e288b781bf
)
4 years ago
Sagar Vora
65b6d14dcf
fix: disable reloading files in `__pycache__` directory
(cherry picked from commit b214a993da
)
4 years ago
Sagar Vora
e288b781bf
fix: add docstring
4 years ago
Sagar Vora
b214a993da
fix: disable reloading files in `__pycache__` directory
4 years ago
leela
a8f74d9471
refactor: Move finding email accounts code to EmailAccount doctype
4 years ago
Gavin D'souza
127f5223e4
fix: Respond to /api requests as JSON by default
If header 'Accept: application/json' isn't set, the failure
responses to /api endpoints is HTML. Success responses are of type JSON.
(cherry picked from commit fcf63622bc
)
4 years ago
Gavin D'souza
6ca0af82b5
fix: Respond to /api requests as JSON by default
If header 'Accept: application/json' isn't set, the failure
responses to /api endpoints is HTML. Success responses are of type JSON.
(cherry picked from commit fcf63622bc
)
4 years ago
Gavin D'souza
fcf63622bc
fix: Respond to /api requests as JSON by default
If header 'Accept: application/json' isn't set, the failure
responses to /api endpoints is HTML. Success responses are of type JSON.
4 years ago
Suraj Shetty
87fa672250
style: Resolve code correctness warning
4 years ago
Suraj Shetty
e18a43e11d
fix: Replace render() with get_response
4 years ago
Revant Nandgaonkar
37cd622628
fix: remove unused imports
4 years ago
leela
d8d86f7498
refactor: enable profiler from env variable
4 years ago
Revant Nandgaonkar
1d0e72834d
fix: remove unused imports
4 years ago
leela
b7c8e030b9
fix: Fix setting admin as user when frappe.db is not set
we are setting admin as current user, At time of request handling if
frappe.db is not set. fixed that issue by adding a check.
4 years ago
mergify[bot]
7e6ce22d64
perf: optimise set_cors_headers (bp #12460 ) ( #12462 )
(cherry picked from commit 68c6fc4a44
)
Co-authored-by: Sagar Vora <sagar@resilient.tech>
4 years ago
Sagar Vora
68c6fc4a44
fix: optimise set_cors_headers
4 years ago
Faris Ansari
51bb7aa39a
fix: Throw early if invalid arguments
4 years ago
Rushabh Mehta
4369b8c0dc
fix(rendering): add doctype generate pages
4 years ago
Rushabh Mehta
3f38c33004
fix: status_code, login page works
4 years ago
Sagar Vora
f35e8045d9
feat: set CORS headers based on allow_cors site config
4 years ago
Rushabh Mehta
a0a3606a7f
fix(tests): add test cases for custom_link and custom_action
4 years ago
Rushabh Mehta
77e79c050f
fix(linting)
4 years ago
Rushabh Mehta
1e48ced097
feat(customize form): add links and actions to customize form and cleanup code
4 years ago
Faris Ansari
129eb72a2f
fix: Print disabled traceback in development
4 years ago
Saurabh
435b522dbf
fix: cache all apps in local and switch to enable/disable frappe logger
5 years ago
Aditya Hase
0748312e39
fix(werkzeug): Avoid duplicate lines from werkzeug in bench start logs ( #11171 )
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
5 years ago
Gavin D'souza
f6f3fba485
fix: Log site only if exists
(cherry picked from commit 4b93f75eba
)
5 years ago
Gavin D'souza
4b93f75eba
fix: Log site only if exists
5 years ago
Gavin D'souza
1de50505f9
feat: Allow_site flag in frappe.logger
(cherry picked from commit 1345c2feb3
)
5 years ago
Gavin D'souza
973b01cd02
fix: Add site validation for logger
(cherry picked from commit 476e625261
)
5 years ago
Gavin D'souza
1345c2feb3
feat: Allow_site flag in frappe.logger
5 years ago
Gavin D'souza
476e625261
fix: Add site validation for logger
5 years ago
Gavin D'souza
fe22595e85
fix: rename web.log generated by frappe to frappe.web.log to avoid
conflict with web.log file generated by gunicorn process in production
5 years ago
Gavin D'souza
a3d64fb4c5
fix: use fallback attr for web logging
5 years ago
Gavin D'souza
746b540af8
fix: Add Form Dict information only for frappe.log
5 years ago
Aditya Hase
19e8008c3c
feat(rate-limiter): Ignore requests above limit
5 years ago
Chinmay D. Pai
fd88d324dc
fix: sanitize html before rendering error
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
5 years ago
Aditya Hase
4740e4f7e6
refactor: Monitor
Do not collect request headers
Collect job wait time and whether it was scheduled
5 years ago
Aditya Hase
af3c4feb64
feat: Monitor
Collect HTTP Request and Background Job logs
5 years ago
Chinmay D. Pai
f239684740
chore: update werkzeug to 1.0.0
* move all werkzeug.wsgi and werkzeug.contrib imports to
werkzeug.middleware to make things work.
* update pinned requirement to 1.0.0
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
5 years ago
Himanshu Warekar
b684ade868
fix: restore debugging code
5 years ago
Himanshu Warekar
200767e0a3
fix: get_doc while in test
5 years ago