Commit graph

1334 commits

Author SHA1 Message Date
Gavin D'souza
31cc658e6d fix(typing): Add type hints for frappe.cache 2022-01-07 14:17:28 +05:30
Gavin D'souza
84ebdabe49 refactor(minor): frappe.has_permission
The throw block was very clearly broken. Referencing frappe.throw inside
__init__.py rip. Added drop in replacement msgprint call
2021-12-24 13:59:57 +05:30
phot0n
1d879f741b feat: before_uninstall and after_uninstall hooks 2021-12-20 14:05:10 +05:30
Aradhya
69108c4c86 Merge branch 'develop' of github.com:Aradhya-Tripathi/frappe into at/aggregations 2021-11-27 17:52:30 +05:30
mergify[bot]
55103a92e6
Merge pull request #14987 from Aradhya-Tripathi/at/queries
refactor: moving raw queries to frappe ORM
2021-11-26 16:20:04 +00:00
Aradhya
e3bdf11006 refactor: moved aggregation functions to Query Builder 2021-11-26 14:19:59 +05:30
Aradhya
9ccf467acb fix: fixed no order arg in converted queries 2021-11-23 13:30:42 +05:30
mergify[bot]
17aa4b823b
Merge pull request #14577 from Alchez/dev-granular-printing
feat: allow more print page size options (develop)
2021-11-22 10:39:10 +00:00
Aradhya
1bdff9f3bd refactor: converted queries in init 2021-11-20 21:33:03 +05:30
codescientist703
ed13182573 chore: Remove Chat Module 2021-11-09 13:44:57 +05:30
Suraj Shetty
31d5d81e31
revert: "chore: Remove chat module" (#14922) 2021-11-09 10:30:00 +05:30
Rushabh Mehta
da6b86ef4f
Merge pull request #14411 from codescientist703/remove-chat
chore: Remove chat module
2021-11-09 09:54:22 +05:30
mergify[bot]
b3bc419a11
fix: for frappe._dict deepcopy; Opened issue 14833 (#14889) (#14914)
* fix: DFP "__deepcopy__" exception" within _dict __getattr__

* fix: for frappe._dict deepcopy; Opened issue 14833 #14889 (accepted gavindsouza suggestion)

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

* fix: for frappe._dict deepcopy; Opened issue 14833 #14889 (accepted gavindsouza suggestion)

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

Co-authored-by: gavin <gavin18d@gmail.com>
(cherry picked from commit db6996a763ec2ffd85470d991f860192e87ca7e3)

Co-authored-by: Development for People <47140294+developmentforpeople@users.noreply.github.com>
2021-11-08 11:18:55 +01:00
Rohan Bansal
c5464e2c5a fix: requested changes 2021-11-04 14:50:37 +05:30
Rohan Bansal
c4ed8cf0e7 Merge remote-tracking branch 'upstream/develop' into dev-granular-printing 2021-11-04 14:38:27 +05:30
mergify[bot]
80345e4206
Merge pull request #14526 from surajshetty3416/fix-has-permission-for-child-doc
fix: Check parent permission while doing `has_permission` for child
2021-10-28 10:08:50 +00:00
Suraj Shetty
4e6ea8fdbd fix: Docstring of has_permission & made error title translatable
- doctype -> DocType
- fixed other typo
2021-10-28 15:25:45 +05:30
Ankush Menat
af4ce8156d
fix: remove mutable defaults (#14597)
* fix: mutable defaults

* fix: missing defaults
2021-10-28 09:36:31 +00:00
Gavin D'souza
482878733b fix(typing): Show "accurate" type hints for qb 2021-10-27 13:42:15 +05:30
Suraj Shetty
64822df6ff
Merge branch 'develop' into fix-has-permission-for-child-doc 2021-10-27 13:07:44 +05:30
Suraj Shetty
0f98b4d174 fix: Make parent_doctype mandatory while accessing child doctype 2021-10-27 12:59:42 +05:30
Rohan Bansal
64c18a3187 feat: allow more print page size options 2021-10-26 17:04:41 +05:30
Nihal Mittal
024dcb32e0
Merge branch 'develop' into remove-chat 2021-10-26 12:39:54 +05:30
Ankush Menat
a6c752458b
refactor!: remove faker from requirements.txt 2021-10-20 12:43:12 +05:30
Suraj Shetty
c968712450 fix: Return unsorted json in case of type error 2021-10-19 18:22:09 +05:30
codescientist703
d766b8f158 refactor: move chat utils to frappe utils 2021-10-11 15:28:49 +05:30
lukptr
1ee2385944 feat: custom database port for read-only replica configuration 2021-09-09 16:19:19 +07:00
lukptr
85834d7a00 feat: Able to use custom port for database load balancers 2021-09-09 15:51:15 +07:00
Gavin D'souza
309eaabcf9 fix: Get rid of pointless except: raise 2021-09-08 14:01:38 +05:30
Gavin D'souza
70ac05025b fix: Make make_access_log write only
Write to primary db if connection is currently set to replica
2021-09-08 13:48:02 +05:30
Gavin D'souza
61d067710f feat: @frappe.write_only
When would you want to use it? Typically if you want to be sure that
"this" particular thing will be make WRITES to the database. If this
were to be called via a function wrapped with @frappe.read_only. This
will momentarily switch the connection from replica to primary
2021-09-08 13:25:19 +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
Lev
6f114b1c19 chore: Query Builder autocomplete hack 2021-09-02 12:21:34 +03:00
Gavin D'souza
0839004ff3 feat: Execute queries directly in frappe.qb 2021-08-03 13:10:19 +05:30
saxenabhishek
42dc8a180f refactor: get_table_name, run_only_if 2021-07-30 11:48:12 +05:30
saxenabhishek
dd36b2a528 refactor: move to get_query_builder 2021-07-30 11:00:35 +05:30
saxenabhishek
eb9d2bcd64 feat: Query builder 2021-07-30 11:00:34 +05:30
Sagar Vora
cb2c013db1
fix: use <strong> instead of <b> (#13557)
* fix: use `<strong>` instead of `<b>`

* test: fix expected error
2021-06-24 20:44:11 +05:30
Suraj Shetty
eba4c24503
Merge branch 'develop' into refactor-website 2021-06-04 11:15:12 +05:30
Gavin D'souza
a74ffda29b chore: Drop dead code to handle webnotes frappe naming 2021-06-03 18:59:29 +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
2ad9d202cb Merge branch 'develop' of github.com:frappe/frappe into drop-py2-code 2021-06-03 11:21:55 +05:30
Suraj Shetty
62eda3fd6f Merge branch 'develop' of https://github.com/frappe/frappe into refactor-website 2021-06-03 09:47:59 +05:30
Leela vadlamudi
b40a82a659
Merge pull request #13393 from leela/email-queue
refactor: build Email queue from send mail request
2021-06-01 21:56:35 +05:30
leela
8e3b358b9f refactor: email queue builder is added
replaced queue.send function with Queue builder.
Queue builder builds a queue from sendmail request and sends the mail
if requested to send mail immediately.
2021-06-01 21:39:02 +05:30
Aditya Hase
c033e0d34d
fix(server scripts): Restrict access to python's internal attributes 2021-05-31 19:24:36 +05:30
Gavin D'souza
e8cf96d1d3 fix: Replace cmp with different logic
cmp was being used from past.builtins library since it was deprecated in
PY2. It's hard to understand behaviour of their usages, so this is an
attempt to replicate behaviour with simpler logic, making this more
readable.

Also, removed usages of iteritems and string_types, compatibility
imports
2021-05-26 13:25:01 +05:30
Suraj Shetty
68e2dfa499 Merge branch 'develop' of https://github.com/frappe/frappe into refactor-website 2021-05-20 12:57:23 +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
Suraj Shetty
c5b9815248 fix: Add get_response_content to get page content 2021-05-14 23:43:36 +05:30