Ankush Menat
de9ac89748
style: re-format with ruff
2024-02-05 18:53:33 +05:30
Hussain Nagaria
8d2137c265
docs: consistent doc strings
2023-12-18 18:27:39 +05:30
Akhil Narang
23bcb6733e
refactor(website_generator): update variable name to make more sense as per usage
...
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2023-11-23 16:06:07 +05:30
Akhil Narang
fbc88a4d24
refactor(treewide): code cleanup
...
Drop redundant bool conversion
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-11-23 13:57:51 +05:30
Suraj Shetty
b56cbdfff8
perf: Enqueue "removing of index" on web page deletion ( #23044 )
2023-11-01 09:40:51 +05:30
Suraj Shetty
2587d3e2e0
perf: Enqueue "removing of index" on web page save ( #22409 )
...
* perf: Enqueue "removing of index" on web page save
* fix: Enqueue after commit
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
* fix: enqueue after commit
---------
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2023-09-14 14:58:19 +05:30
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
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
Suraj Shetty
2d8c6c1710
Merge branch 'develop' of https://github.com/frappe/frappe into refactor-website
2021-06-03 11:43:28 +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
Suraj Shetty
86897c1808
refactor: Remove render.py and move all utility functions to utils.py
...
- Replace or remove all render imports
2021-05-25 10:53:35 +05:30
Suraj Shetty
15f5b697d3
fix: Website template path
2021-05-24 19:52:31 +05:30
barredterra
c72b68d0fb
fix: remove obsolete argument
2020-08-19 11:53:13 +02:00
Shivam Mishra
e1d9909b78
feat: do not update search index in tests
2020-08-10 12:50:49 +05:30
Shivam Mishra
788711bdad
fix: arguments for remove_document_from_index
2020-08-06 19:47:46 +05:30
Shivam Mishra
6da04fcb97
fix: arguments for update_index_for_path
2020-08-06 19:47:46 +05:30
Shivam Mishra
560e9dc8dd
fix: fetch index_web_pages_for_search from meta
2020-08-06 19:47:46 +05:30
Shivam Mishra
59fe187313
feat: update search and website generator to check index_web_pages_for_search
2020-08-06 19:47:46 +05:30
Shivam Mishra
b2100279d6
feat: update code for new search
2020-08-06 19:47:46 +05:30
Shivam Mishra
90456a979e
feat: allow indexing only if route is present
2020-08-06 19:47:46 +05:30
Shivam Mishra
eb9435c012
refactor: rename enable_website_search_indexing to allow_website_search_indexing
2020-08-06 19:47:46 +05:30
Shivam Mishra
841914c110
feat: allow disabling indexing for certain routes
2020-08-06 19:47:46 +05:30
Shivam Mishra
f0547ce0d0
feat: added index hooks to website generator
2020-08-06 19:47:46 +05:30
Mangesh-Khairnar
751d38436e
chore: remove whitespaces from docstrings
2020-03-30 16:18:47 +05:30
Mangesh-Khairnar
d61a2ad429
fix: check if website is published
2020-03-20 22:32:39 +05:30
Mangesh-Khairnar
6dff5d3831
fix: validate google settings
2020-02-11 09:58:43 +05:30
Mangesh-Khairnar
6684c0cd3c
fix: add indexing configuration to website settings
2020-02-05 17:47:13 +05:30
Mangesh-Khairnar
d8de63b341
fix: enqueue publish on update and trash
2020-01-31 17:31:05 +05:30
Rushabh Mehta
65d2167551
feat: various fixes to Web Form and content type selection for Web Page and Blog Post
2019-02-06 15:50:57 +05:30
Saif
7610d6fb05
WebsiteGenerator call super class clear_cache ( #6542 )
2018-12-03 09:35:03 +05:30
Rushabh Mehta
f9bcb11d35
[minor] website-fix
2018-06-06 11:07:54 +05:30
Rushabh Mehta
974559cef1
[minor] start file watcher only in developer mode
2017-05-09 18:04:12 +05:30
Rushabh Mehta
6dff729d88
[enhance] Web View settings in DocType ( #2798 )
...
* [enhance] add web view settings doctype
* [enhance] add web view settings doctype
* [fix] default for checks (?)
* [fix] framework json
* [fix] missing return
* [fix] hooks for website_generators
2017-03-05 11:12:32 +05:30
Kanchan Chauhan
8f58649905
[Fix] Webpage title fix
2017-03-02 12:35:56 +05:30
Rushabh Mehta
8ac3a9a7ca
[web-forms] added text-editor and using div in summernote instead of p
2017-02-28 12:13:36 +05:30
Rushabh Mehta
b005662d0d
[fix] tests and show in website
2017-02-24 16:19:38 +05:30
Rushabh Mehta
c0ef741ce8
[hot] fix socket js
2017-02-24 16:01:30 +05:30
Rushabh Mehta
d989a95472
[feature] document versioning #2469 ( #2523 )
...
* [feature] document versioning #2469
* [minor] remove on_update from WebsiteGenerator
* [fix] delete shares when deleting user
* [test] don't run delete in background if test
* [fix] test_db
* [added] Deleted Document
* [fix] added track_changes in all documents
* [fix] add to deleted only if exists
* [fix] in_install flag in deleted documents
* [minor] name will always be reset
2016-12-29 18:01:42 +05:30
Rushabh Mehta
83eee92692
[fix] route too long
2016-07-28 11:13:13 +05:30
Rushabh Mehta
a9e3df6e82
[minor] fixes for custom field and website route length
2016-07-26 08:23:04 +05:30
latyas(懒)
58901e644b
Forgot add self
2016-07-04 18:42:11 +08:00
latyas(懒)
9634688d17
self.route does not initiate
...
Or exception raises in `validate` method.
2016-07-04 18:32:20 +08:00
Rushabh Mehta
5e3bcbe01f
[tests] added basic tests for page and generator
2016-06-27 11:50:04 +05:30
Rushabh Mehta
21edc27a2c
[minor] make route only if published
2016-06-25 18:08:27 +05:30
Rushabh Mehta
3ef7d5ba78
[minor] make route only if published
2016-06-25 18:00:38 +05:30
Rushabh Mehta
c262e7e3ef
[fix] tests
2016-06-24 15:29:39 +05:30
Rushabh Mehta
47005e9e02
[fix] parent_website_route + '/' + page_name = route
2016-06-23 15:47:47 +05:30
Rushabh Mehta
0cb31006e5
[redesign] website route is evaluated on request, no cold start
2016-06-23 12:23:37 +05:30
Rushabh Mehta
6824df7ac9
[cleanup] rename functions in website and router for cleaner meaning
2016-05-29 14:25:49 +05:30