Corentin Flr
69d0060bdf
chore: format code
2023-06-30 11:52:29 +02:00
Ankush Menat
f3c876e43e
chore: ignore pyo files too
2023-06-28 11:43:23 +05:30
Corentin Flr
bcdc483a13
fix(test): Fix test_never_render to get path as string, exclude PYC files from static downloads
...
This test code never actually tested the behaviour for two reasons:
- first, the page had an error which meant that a 500 Error page was returned (because `path` is not a string)
- second, every page contains the string "400" because it's contained in some of the icons.svg icons!
I also found a minor related bug in static_page.py, allowing people to download PYC files (pycache)
2023-06-15 18:36:30 +02:00
mergify[bot]
3a130abfc5
fix: extension extracted if at least one dot, because if not dot ( #19946 ) ( #20142 )
...
(cherry picked from commit 53c41e0ce6bf9985786a570c43fd32c79332c44c)
Co-authored-by: Jaime <developmentforpeople@gmail.com>
2023-02-23 15:03:11 +05:30
Ankush Menat
786df3fbeb
perf: ~33% faster Desk response
...
- hardcode `/app` resolution
- use cached website settings everywhere. It was mixing cache and DB
everywhere and re-quering same thing (why ?)
2022-08-21 17:35:07 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black ( #16453 )
...
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Gavin D'souza
9dbaf252f0
fix: Check if binary file in Page Renderers
...
* Check if binary before rendering using StaticPage resolver
* Check if not binary before rendering using TemplatePage resolver
2022-01-19 19:30:45 +05:30
Suraj Shetty
1e926b55ce
fix: Rename WebPage to BaseRenderer
2021-06-15 14:01:56 +05:30
Suraj Shetty
8317e00712
refactor: Rename page_controllers folder to page_renderers
2021-05-25 09:27:26 +05:30