Commit graph

80 commits

Author SHA1 Message Date
Aditya Hase
43a722d3bb
fix(minor): Don't allow frappe.cache() methods in server scripts (#14609) 2021-10-28 15:54:32 +05:30
Aditya Hase
787364b166
fix(minor): Don't allow changes to global hooks from server scripts 2021-10-28 14:40:16 +05:30
Rohit Waghchaure
5ef72dd290 feat: pdf to base64 convert 2021-10-28 12:41:27 +05:30
Aradhya-Tripathi
fe7b45c068 fix: fixing safeqb in server scripts 2021-10-11 14:01:17 +05:30
Gavin D'souza
4e7be5b3ec Merge branch 'develop' of github.com:frappe/frappe into at/safeqb 2021-10-11 12:45:03 +05:30
Gavin D'souza
cfa2d65394 refactor(safe_exec): Manage in-safe frappe.db.sql
* Check if flag in_safe_exec to check if SELECT query in frappe.db.sql
* Get rid of read_sql...refactor logic
* Enable frappe.qb just like that ;)
* Add support fro *args in .run
2021-10-11 12:28:36 +05:30
Deepesh Garg
1127d3d184 fix: Restrict commit and rollback for doc events 2021-10-10 17:41:26 +05:30
Deepesh Garg
4f74f9e4e1 fix: Add rollback to safe_exec 2021-10-08 15:52:44 +05:30
Deepesh Garg
34882227fb Merge branch 'develop' of https://github.com/frappe/frappe into server_script_enhancements 2021-10-08 15:11:27 +05:30
Sun Howwrongbum
1d9000fd85
feat: expose frappe.db.exists to Server Script 2021-10-06 14:21:03 +05:30
Aradhya-Tripathi
2a241bd2dc style: formatted code 2021-10-05 18:23:46 +05:30
Aradhya-Tripathi
6c706ec000 fix: fixed multitenancy in safeqb 2021-10-05 18:13:32 +05:30
Aradhya-Tripathi
9c00a28869 feat: Added safe_qb for server scripts 2021-10-05 12:39:22 +05:30
Deepesh Garg
39ac03cf93 Merge branch 'develop' of https://github.com/frappe/frappe into server_script_enhancements 2021-10-04 11:00:11 +05:30
Deepesh Garg
4ebdabda48 fix: Encapsulate cache methods 2021-10-04 10:59:47 +05:30
Aradhya-Tripathi
dadd7abad2 Merge branch 'develop' of https://github.com/Aradhya-Tripathi/frappe into at-refactor 2021-10-03 01:21:15 +05:30
Rohit Waghchaure
5bd9be2437 feat: frappe.errprint in the server script for debugging 2021-10-01 15:35:28 +05:30
Deepesh Garg
dffd78d3fc fix: Validate server script for doc events 2021-09-27 12:02:31 +05:30
Aradhya-Tripathi
cbe068c7ff feat: added aggregation in safe_exec 2021-09-20 23:00:52 +05:30
Aradhya-Tripathi
73eb7806a8 refactor: removed aggregation from database.py
refactor: moved aggregate to frappe.query
2021-09-20 22:47:06 +05:30
Faris Ansari
6eb7b3a6b0
Revert "fix: add frappe.enqueue to server scripts (#14202)" (#14204)
This reverts commit a3d9a3290d.
2021-09-14 17:43:41 +05:30
Faris Ansari
a3d9a3290d
fix: add frappe.enqueue to server scripts (#14202) 2021-09-14 17:05:41 +05:30
Deepesh Garg
49b3f19aa6 Merge branch 'develop' of https://github.com/frappe/frappe into server_script_enhancements 2021-09-07 18:33:44 +05:30
Deepesh Garg
a1251aace9 fix: Syntax Error 2021-09-07 18:29:04 +05:30
Deepesh Garg
55e2af20c6 feat: Enhancements in Server Script 2021-09-07 17:51:46 +05:30
Rushabh Mehta
20dea90670 feat(minor): Packages! also cleanup of DocField and other minor fixes 2021-09-05 22:01:55 +05:30
Faris Ansari
f23802d25b fix: Enable Server Scripts by default 2021-09-01 16:30:15 +05:30
Gavin D'souza
8622142d7d fix: Use get_timedelta in cast, add to safe_exec list
* Return date and datetime objects for Date and Datetime field types
  respectively if Falsy output is set
2021-08-31 13:06:10 +05:30
Faris Ansari
fd05cf068e fix: Add frappe.rename_doc to Server Scripts 2021-06-22 18:14:15 +05:30
Ankush Menat
a89ed83c38
Merge branch 'develop' into sgrep_microtemplate 2021-06-02 16:55:29 +05:30
Aditya Hase
c033e0d34d
fix(server scripts): Restrict access to python's internal attributes 2021-05-31 19:24:36 +05:30
Aditya Hase
980f224bba
Merge pull request #13253 from rmehta/safe-json 2021-05-31 10:42:56 +05:30
Ankush Menat
faa347461d
chore: fix all findings flaged by ux rule 2021-05-25 13:04:20 +05:30
Gavin D'souza
8cc6804850 fix: Show deprecation warnings only if DEV_SERVER is set
This will show warnings in bench start commands by default as this
envvar is set.
2021-05-19 13:16:16 +05:30
Rushabh Mehta
2b8aaa5375 fix(minor): expose limited methods of json module 2021-05-18 21:12:45 +05:30
Faris Ansari
8678c09e91
feat: Add log_error and FrappeClient to restricted python (#12857) 2021-04-15 14:34:23 +05:30
Rohit Waghchaure
1dc2ae4be3 fix: modal width 2021-02-11 14:51:19 +05:30
Rushabh Mehta
bca3aecdaf fix(minor): fix routing and titles + added frappe.utils.markdown alias to frappe.utils.md_to_html 2021-01-31 18:18:47 +05:30
Suraj Shetty
ce379bc200 Merge branch 'develop' of https://github.com/frappe/frappe into rebrand-ui 2021-01-28 19:56:54 +05:30
Gavin D'souza
33ea496a8b feat: Added get_datetime_in_timezone in frappe.utils to get datetime in specific timezones
* Added util in safe_exec to access via Server Scripts and System
Console
2021-01-21 13:19:31 +05:30
Suraj Shetty
425ab65bb4 fix: Post merge issue 2021-01-21 11:23:41 +05:30
Suraj Shetty
e4bdbed414 Merge branch 'rebrand-ui' of https://github.com/frappe/frappe into rebrand-ui 2021-01-21 11:20:18 +05:30
Suraj Shetty
e2c763c989 feat: Add avatar macro 2021-01-21 11:14:04 +05:30
prssanna
e54a1262b4 Merge branch 'rebrand-ui' of https://github.com/frappe/frappe into rebrand-ui 2021-01-20 17:57:46 +05:30
prssanna
f363863b8c fix: website fixes
-move modal and icon styles to common

primary navbar theme
2021-01-20 17:56:05 +05:30
Suraj Shetty
a7aead676f feat: Set frappe.bold as safe global 2021-01-13 10:36:34 +05:30
Gavin D'souza
d7de64ae91 fix: Return dummy function to avoid NoneType not callable 2020-12-07 13:59:42 +05:30
Gavin D'souza
2c2bb72f6e fix: Show function not available in namespace instead of nothing
Prior to this, frappe._dict was being used to inject functions to the
server script namespaces. This meant unimplemented methods
returned None and we'd get a NoneType not callable error
2020-12-07 13:59:42 +05:30
Gavin D'souza
d5d0bc8ea9 fix: Return dummy function to avoid NoneType not callable 2020-11-30 15:25:55 +05:30
Gavin D'souza
5babacac3e fix: Show function not available in namespace instead of nothing
Prior to this, frappe._dict was being used to inject functions to the
server script namespaces. This meant unimplemented methods
returned None and we'd get a NoneType not callable error
2020-11-27 11:02:37 +05:30