Commit graph

1239 commits

Author SHA1 Message Date
Sagar Vora
34ad0cf331 fix: introduce frappe.controllers; clear global if cache is cleared; replace old references 2021-01-07 10:57:08 +05:30
Saurabh
97b693c6b0
feat: Added permission to grant only Select access to document (#12063)
* feat: add permtype 'select' to DocPerm and CustomDocPerm

* feat: add 'select' perm in rights tupple

* feat: provisions to handle select permission

* feat: toggle href based on permissions

* feat: pass permission type explicitly while validating link in permission check

* fix: sider

* feat: added test cases to validate select perm

* feat: add method frappe.only_has_select_perm to explicitly check the select perm

* fix: if user only has select perm then do not show anchor tag for link fields

* fix: sider
2020-12-29 16:58:28 +05:30
Rushabh Mehta
c873c36971 feat(minor): add before_commit methods 2020-12-17 18:46:06 +05:30
Marica
d5a1faebcb
Merge pull request #11795 from gavindsouza/fix-broken-folders
fix: Rename Doc (and others)
2020-12-17 11:37:33 +05:30
mergify[bot]
ff13e303d0
Merge pull request #12077 from saurabh6790/cache_bench_apps_from_app_txt
fix: cache bench apps
2020-12-11 08:10:49 +00:00
Saurabh
5f708fa160 feat: cache bench apps 2020-12-11 12:47:16 +05:30
Gavin D'souza
f024b48f52 fix: Remove unnecessary import
Removed via 3581e591f3
2020-11-11 20:11:30 +05:30
Gavin D'souza
3581e591f3 fix: Strip html tags for frappe.msgprint output to stdout 2020-11-11 19:40:41 +05:30
Gavin D'souza
03c8a23d77 style: Trim the fat (whitepsace) 2020-11-06 15:34:06 +05:30
Gavin D'souza
ad603487a3 feat: Allow configurable filters and order_by for
frappe.get_last_doc
2020-11-06 15:25:07 +05:30
Gavin D'souza
63907e4006 feat: Allow kwargs in frappe.get_last_doc 2020-11-04 16:45:56 +05:30
Rushabh Mehta
1e48ced097 feat(customize form): add links and actions to customize form and cleanup code 2020-10-26 10:02:04 +05:30
Saqib Ansari
a5b4326a6d fix: remove kwargs 2020-10-23 18:32:46 +05:30
Saqib Ansari
d04e6cc95f fix: handle msgprint html on client side 2020-10-14 21:35:58 +05:30
Saqib Ansari
350bc0258f fix: pass as_list to frappe.throw 2020-10-14 16:02:02 +05:30
Saqib Ansari
80fad21311 chore: add as_list parameter to msgprint 2020-10-14 15:54:06 +05:30
gavin
0ee7d890bc
fix: Provide file paths instead of "title"s
Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>
2020-09-24 13:38:10 +05:30
Gavin D'souza
04e0af578b fix: Give better errors about corrupt configs 2020-09-24 11:59:32 +05:30
Saurabh
a0086db9b6
fix(frappe client): validate http method for frappe.client api (#11228) 2020-09-14 12:30:30 +05:30
Suraj Shetty
0449ba0b6d
refactor: Use .pop instead of del 2020-09-08 10:58:03 +05:30
Suraj Shetty
dba454f941 fix(security): Remove ignore_permissions flag from API request 2020-09-08 10:37:25 +05:30
Faris Ansari
3f5a50d677 fix: Restrict ui test helper method to dev server mode 2020-09-06 18:37:22 +05:30
Rushabh Mehta
c83a9a142b fix(minor): mogrify 2020-08-17 09:41:54 +05:30
Rushabh Mehta
14d9c28eb7 fix(test): try with print_sql 2020-08-17 09:41:54 +05:30
Mohammad Hasnain Mohsin Rajan
14400fe1d3
style: fix typo tood to todo (#11272) 2020-08-14 17:04:09 +05:30
Suraj Shetty
7e37591c79
Merge branch 'develop' into fix-frappe-logger 2020-08-10 13:25:27 +05:30
Saurabh
435b522dbf fix: cache all apps in local and switch to enable/disable frappe logger 2020-08-10 12:31:08 +05:30
Shivam Mishra
be4d3ae434 feat: allow wide attribute in msgprint and throw 2020-08-10 12:16:16 +05:30
Suraj Shetty
130cce8840
Merge branch 'develop' into fix-test 2020-08-08 17:04:37 +05:30
Shridhar Patil
80733d4124
fix: raise incorrect site path error instead of sys.exit (#11206) 2020-08-07 21:52:04 +05:30
Suraj Shetty
cd1ab8e23c
feat: Add validate_and_sanitize_search_inputs decorator (#11194)
* feat: Add validate_and_sanitize_search_inputs decorator

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
Co-authored-by: Prssanna Desai <prssud@gmail.com>
Co-authored-by: Shivam Mishra <scmmishra@users.noreply.github.com>

* refactor: Move validate_and_sanitize_search_inputs to init

* refactor: Move validate_and_sanitize_search_inputs to search.py

* test: validate_and_sanitize_search_inputs decorator

* chore: Add wrapt module

* refactor: Use @wrapt to define validate_and_sanitize_search_inputs decorator

* test: Add a case to make sure frappe.call works as well

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
Co-authored-by: Prssanna Desai <prssud@gmail.com>
Co-authored-by: Shivam Mishra <scmmishra@users.noreply.github.com>
2020-08-05 19:41:41 +05:30
Suraj Shetty
c4aa9f5f2c
Merge branch 'develop' into fix-test 2020-08-04 12:57:03 +05:30
Suraj Shetty
3c3b1037ea
fix: Import frappe.permissions 2020-08-04 10:44:45 +05:30
Suraj Shetty
744a9413fd fix: Use common function to get_roles 2020-08-04 10:36:16 +05:30
Gavin D'souza
94116ae93c feat(logger): allow max_size and file_count params 2020-07-31 16:07:51 +05:30
Gavin D'souza
1345c2feb3 feat: Allow_site flag in frappe.logger 2020-07-27 17:31:12 +05:30
Gavin D'souza
ad1152f8e8 feat: override site name via _site
added filter parameter for logger
2020-07-27 17:13:18 +05:30
Gavin D'souza
476e625261 fix: Add site validation for logger 2020-07-16 16:26:20 +05:30
AminovE99
4ce70e2bcf fix(sendmail): 'frappe' not defined (#10799)
* 💄 Add frappe library

Signed-off-by: Emil <amionv99@gmail.com>

* 💄 directly import

Co-authored-by: gavin <gavin18d@gmail.com>

Co-authored-by: gavin <gavin18d@gmail.com>
(cherry picked from commit 6b9c92baf48c0671516727cb43761fc56a6dd12a)
2020-07-06 05:47:07 +00:00
Faris Ansari
5a1ce409b6 fix: Add method to import data from file
- Update import paths to use data_import module
- Data Import Beta -> Data Import
2020-06-11 18:02:25 +05:30
Faris Ansari
6f80a0b462 fix: Data Import -> Data Import Legacy 2020-06-11 18:02:25 +05:30
Gavin D'souza
079da0b645 Merge branch 'develop' of github.com:frappe/frappe into no-site-specified 2020-06-01 12:23:16 +05:30
Gavin D'souza
f71585ec74 Merge branch 'develop' of github.com:frappe/frappe into site-wise-logging 2020-05-29 14:56:29 +05:30
Gavin D'souza
746b540af8 fix: Add Form Dict information only for frappe.log 2020-05-27 19:09:18 +05:30
Gavin D'souza
c39a52d764 feat: seperate loggers into frappe, web, scheduler categories and not by
module
2020-05-27 18:33:03 +05:30
Gavin D'souza
a86ae948f7 fix(commands): raise SiteNotSpecifiedError if site not found in context 2020-05-18 13:01:33 +05:30
Suraj Shetty
d53b88a72f
perf: Make tests faster (#10307)
* feat: Ignore versions for test

* test: Do not ignore version where needed

* perf: Use frappe.db.get_single_value to leverage caching

- frappe.get_cached_value does not support single value caching

* style: Fix sider issue
2020-05-12 22:34:10 +05:30
sahil28297
aae45ed98c
fix: bump frappe develop to version 13-dev 2020-05-08 12:18:09 +05:30
Suraj Shetty
981da526f9 fix: Contextual translation key generation 2020-05-04 22:27:06 +05:30
Suraj Shetty
06ee14e433
Merge branch 'develop' into contextual-translation 2020-04-17 13:26:05 +05:30