Commit graph

2432 commits

Author SHA1 Message Date
mergify[bot]
b76f79c06c
Merge pull request #14547 from Aradhya-Tripathi/query-conversion
refactor: Converting raw SQL queries using frappe ORM and frappe.qb
2021-11-03 12:06:35 +00:00
Gavin D'souza
6d212c2d02 refactor(minor): Don't re-write var, use set_value
* doctype variable was being re-defined which broke functionality. Fixed
  that, re-used getattr for consistency
* Use set_value instead of raw query
* Style fixes
2021-11-03 16:13:09 +05:30
Faris Ansari
96ea14003d fix: generate dom id helper for jinja 2021-10-29 16:26:45 +05:30
rohitwaghchaure
6ae352a05f
fix: ignore filename with dotted path (#14617)
* fix: ignore dotted path in file name

* fix: condition for checking file

* Update data.py

* fix: only allow pdf files

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2021-10-28 19:23:57 +00:00
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
rohitwaghchaure
2c77d938f2
Merge pull request #14602 from rohitwaghchaure/pdf-to-base-64
feat: pdf to base64 convert
2021-10-28 13:04:13 +05:30
Rohit Waghchaure
5ef72dd290 feat: pdf to base64 convert 2021-10-28 12:41:27 +05:30
mergify[bot]
704d5e2fc6
Merge pull request #14582 from ankush/weasyprint_import_error
fix(dx): error message for missing system deps
2021-10-27 06:00:34 +00:00
Ankush Menat
50eb39eb5e fix(dx): error message for missing system deps 2021-10-27 10:15:11 +05:30
Aradhya-Tripathi
3ba3269b9d refactor: converted SELECT queries 2021-10-27 00:00:46 +05:30
Aradhya-Tripathi
cd9e0ffa84 refactor: converted queries in nameing and nestedset 2021-10-26 22:20:03 +05:30
Gavin D'souza
125233315f fix: errprint only if traceback? 2021-10-26 17:33:03 +05:30
Gavin D'souza
c755df29bd Merge branch 'develop' of github.com:frappe/frappe into mask-sql-errors 2021-10-26 15:37:03 +05:30
Faris Ansari
c1053bea93 fix: Field rendering of every field 2021-10-22 19:20:42 +05:30
Suraj Shetty
04374de9eb
fix: Update licence text
Co-authored-by: gavin <gavin18d@gmail.com>
2021-10-22 09:22:52 +05:30
Faris Ansari
5f5f0e8bba fix: Include print style and print format css 2021-10-20 19:18:35 +05:30
Faris Ansari
239ec49612 style: formatting 2021-10-20 19:06:16 +05:30
Faris Ansari
5345d4ce7b Merge branch 'develop' of https://github.com/frappe/frappe into print-format-builder-beta 2021-10-20 18:40:18 +05:30
Saqib Ansari
4f288db878 refactor: handle exception messages on client side 2021-10-19 20:00:35 +05:30
Faris Ansari
76b5ee8b9e feat: Field Templates
- standard field templates for rendering custom templates for fields for e.g., taxes in invoice
- ability to create user defined reusable templates that show up in print format builder
2021-10-19 19:12:15 +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
gavin
22876d9803
Merge pull request #14102 from Aradhya-Tripathi/at-refactor
feat: additional filter support
2021-10-05 12:06:04 +05:30
gavin
1385f9f468
Merge pull request #14342 from gavindsouza/serve-no-redis
fix: Remove Webserver's dependency on Redis
2021-10-04 12:42:46 +05:30
Gavin D'souza
7c6fad09ee fix: NoneType comparison flake8 E711
ref: https://www.flake8rules.com/rules/E711.html
2021-10-04 11:01:56 +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
Suraj Shetty
740485273a
Merge pull request #14226 from pateljannat/discussions 2021-10-04 07:29:29 +05:30
Gavin D'souza
f37b954fbf fix: get_assets_json w/o Redis too ;) 2021-10-03 12:30:52 +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
gavin
fe82487c15
Merge pull request #14334 from rohitwaghchaure/errprint-for-server-script
feat: frappe.errprint in the server script for debugging
2021-10-01 15:59:35 +05:30
Rohit Waghchaure
5bd9be2437 feat: frappe.errprint in the server script for debugging 2021-10-01 15:35:28 +05:30
pateljannat
2df2032689 Merge branch 'develop' of https://github.com/frappe/frappe into discussions 2021-10-01 13:07:06 +05:30
KrithiRamani
ad89c1fcd8
Update frappe/utils/print_format.py
As suggested, moved new args to the end for supporting non-kwarg function calls.

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2021-10-01 09:43:59 +05:30
Krithi Ramani
78a89fdb99 renamed argument to file_path. Added pycups to requirements.txt 2021-09-30 22:20:42 +05:30
Krithi Ramani
2d018a8591 passed filename as argument 2021-09-30 21:59:29 +05:30
Aradhya-Tripathi
a31f23bee9 Merge branch 'develop' of https://github.com/Aradhya-Tripathi/frappe into at-refactor 2021-09-30 21:42:09 +05:30
pateljannat
888bff9b1b Merge branch 'develop' of https://github.com/frappe/frappe into discussions 2021-09-28 14:50:41 +05:30
Deepesh Garg
dffd78d3fc fix: Validate server script for doc events 2021-09-27 12:02:31 +05:30
Anupam
cfe4dc41c0 review changes 2021-09-27 10:21:19 +05:30
Anupam
ec938c960e feat: provision to add multiple network printers 2021-09-27 10:21:19 +05:30