Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features ( #17367 )
...
refactor: clean up code to py39+ supported syntax
- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes
Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +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
Suraj Shetty
cc725e9f48
fix: Allow empty webhook data
2022-03-29 08:56:16 +05:30
Sagar Vora
4c403333c4
fix: remove unused flag in_setup_help
2022-02-16 16:02:37 +05:30
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.
2021-09-03 12:02:59 +05:30
Gavin D'souza
e2ee75e3cb
fix: Translate strings passed in frappe.throw
...
* Remove trailing whitespaces in translatable strings
* Sort imports appropriately
2021-05-27 13:47:21 +05:30
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
2021-05-26 15:31:29 +05:30
Faris Ansari
976ebd5b2c
fix: Check if path is a module first then function
2021-04-22 06:03:35 +05:30
Faris Ansari
b32db6e329
fix: method call
2021-04-17 16:11:28 +05:30
Faris Ansari
a78fed4ffc
fix: Move standard filters to jinja hooks
2021-04-17 16:11:28 +05:30
Faris Ansari
1fd08d3960
refactor: Jinja hooks
...
- Rename hook from "jenv" to "jinja"
- You can now pass the path to the module and all of the methods in that
module will be added as methods
- You can also pass module path of a method
BREAKING CHANGE: Previous use of "jenv" hook won't work anymore
2021-04-17 16:11:28 +05:30
Faris Ansari
e90faf76b5
fix: Remove unnecessary code
...
- Extra spacing is only applied to templates of type Section
- should be able to call web_block without values
- default type should be Section
- set_query can be set once
2020-10-22 17:43:31 +05:30
barredterra
5d3178ed19
fix: disable padding and container by default
2020-10-20 14:53:23 +02:00
Faris Ansari
8f0f17eb7e
fix: Render web blocks using web_template.render
...
- web_block object need not be a WebPageBlock instance
2020-09-14 15:23:14 +00:00
Faris Ansari
7a31983c90
fix: Succinct syntax for rendering web templates
2020-09-11 19:49:20 +05:30
Faris Ansari
58a819c305
fix: import
2020-09-03 13:59:20 +05:30
Faris Ansari
8c905437e6
fix: Add template validation in web_blocks
2020-09-03 13:58:22 +05:30
Emil
edcdb66b92
🎨 Change indetions to tabs
...
Signed-off-by: Emil <amionv99@gmail.com>
2020-06-15 12:30:44 +03:00
Emil
8a9ba93119
🎨 change construction for not in
...
Signed-off-by: Emil <amionv99@gmail.com>
2020-06-14 14:31:17 +03:00
Emil
267d3119f1
🐛 Return way of checking path
...
Signed-off-by: Emil <amionv99@gmail.com>
2020-06-14 13:26:43 +03:00
Emil
3bc66bfea1
✨ add another way to check path
...
Signed-off-by: Emil <amionv99@gmail.com>
2020-06-14 12:28:21 +03:00
Emil
d25b141451
✨ Expand list with extensions for template rendering
...
Signed-off-by: Emil <amionv99@gmail.com>
2020-06-14 11:37:50 +03:00
Shivam Mishra
2328fe5aa3
style: linting fixes from sider
2020-05-20 19:07:05 +05:30
Faris Ansari
2f5ff98240
fix: web_blocks global method to render web blocks
2020-05-20 16:35:23 +05:30
Faris Ansari
7a87be29c4
fix: Remove components
...
- Use render_template to render web_block and image_with_blur
2020-05-11 16:28:29 +05:30
Faris Ansari
42586041c1
fix: Remove unnecessary error handling
2020-04-25 20:50:57 +05:30
Faris Ansari
77281c6207
fix: tests
2020-04-25 00:43:31 +05:30
Faris Ansari
caa068932c
Merge branch 'develop' of https://github.com/frappe/frappe into page-builder-tailwind
2020-04-24 23:48:29 +05:30
Faris Ansari
5ea86c6454
fix: Use Web Page Block for Navbar and Footer
...
- Add more Web Templates
2020-04-19 16:19:02 +05:30
Faris Ansari
2431767fdf
feat: Page Builder based on Tailwind
...
- Website Theme based on: Bootstrap 4, Tailwind
- Web Page: Page Builder
- Web Template: Create templates for web pages
- Added some common Web Templates
- Components: Standard components directly usable in Jinja
- Purge Tailwind Classes in Production
- PostCSS Config to support tailwind
2020-04-18 15:02:56 +05:30
Rushabh Mehta
e323441c15
feat: Add Web View to compose webpages with components
2020-04-15 23:12:57 +05:30
Sagar Vora
fb02908219
fix: (re)allow custom filters/methods to be used with jinja
2019-12-30 10:57:30 +05:30
Rushabh Mehta
9d615f7f12
fix(security): use restricted python
2019-10-11 14:16:49 +05:30
Rushabh Mehta
6d6f575904
feat(server scripts): add server scripts!
2019-10-11 14:16:49 +05:30
Aditya Hase
472d33f3da
fix(security): Make Jinja Tighter
2019-07-30 12:51:45 +05:30
Aditya Hase
fb896a460e
Revert "fix(security): Make jinja rendering tighter"
...
This reverts commit b30199b7f5 .
2019-07-26 20:49:56 +05:30
Aditya Hase
b30199b7f5
fix(security): Make jinja rendering tighter
2019-07-24 16:32:35 +05:30
Rushabh Mehta
03b045a5b5
refactor: remove autodocs, no longer used
2019-05-11 10:12:11 +05:30
Frappe Bot
629a5e502a
Merge branch 'master' into develop
2019-04-07 09:03:27 +00:00
Faris Ansari
70246946b2
fix: Dont escape tracebacks in errprint
2019-03-28 15:05:23 +05:30
Faris Ansari
eeb8fe98eb
fix: Don't escape traceback
...
Traceback breaks when there is a python object <frappe.model.Document>.
This is occasional, and other tracebacks are not clean, so reverting.
2019-03-14 13:20:11 +05:30
Faris Ansari
5a96fc70de
Merge branch 'develop' of https://github.com/frappe/frappe into website-bootstrap-4
2019-02-20 19:25:25 +05:30
Aditya Hase
c08bdd88a8
fix: Jinja template error ( #6958 )
...
https://github.com/frappe/frappe/pull/6957
2019-02-19 14:22:01 +05:30
Aditya Hase
4b4d59026f
fix: Jinja template error ( #6957 )
...
Errors in Custom Print Format are not framework errors and should not have a "Report Issue" button
2019-02-19 14:19:51 +05:30
Sagar Vora
89efa968d8
Merge branch 'master' into develop
2019-02-05 18:39:43 +05:30
Saurabh
96bff3cd9e
fix: jinja local.conf data leak ( #6884 )
2019-02-05 10:52:00 +05:30
Aditya Hase
57196a8bbe
fix(website): Enable socketio on website (for file upload) ( #6866 )
2019-01-31 13:54:42 +05:30
Faris Ansari
ac28b0373d
feat: Add get_single_value in jinja methods
2019-01-26 13:49:28 +05:30
Ameya Shenoy
ee3ae7abea
Merge branch 'staging' into develop
2018-10-30 12:52:16 +00:00
Ameya Shenoy
25a0b8dba2
Merge branch 'master' into staging-fixes
2018-10-30 12:09:41 +00:00