Commit graph

72 commits

Author SHA1 Message Date
prathameshkurunkar7
7da10131c0 fix(frappe-client): simplify post_api method to use json params 2026-04-13 17:45:10 +05:30
prathameshkurunkar7
2d9b40a2db feat(frappe-client): enhance post_api method to send payloads in data/json 2026-03-31 14:37:24 +05:30
Aditya Patil
35909f5c45
refactor: removed usage of cmd for login (#36801)
* refactor: removed usage of `cmd` for login

* refactor: use `set_request` in activity log tests
2026-02-16 14:09:48 +05:30
Akhil Narang
0ea49a8f1e
fix: make sure limit is an integer
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-11-19 21:15:57 +05:30
Shadrak Gurupnor
68246a73fb
fix: add order_by params to Frappeclient get_list (#33324)
* fix: add order_by params to client getlist

* fix(test): Test for groupby and orderby

* chore: pre-commit

* fix(test): Add test for group_by

* fix(test): Use dbapi for testing

* linter fix

* chore(test): linter
2025-07-21 19:23:32 +05:30
Ankush Menat
e4b0d11b19
fix: only show tracebacks to system users (#31629)
Website users by design are supposed to be "less trusted", so don't show
tracebacks to them.
2025-03-13 14:48:20 +05:30
Akhil Narang
84ef6ec677
refactor: fixup with ruff 0.8.1
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-04 13:18:04 +05:30
Abdeali Chharchhodawala
5fea212305
fix: Remove typo from get_doc docstring of FrappeClient (#28515) 2024-11-20 04:27:13 +00:00
Rehan Ansari
b8e1979864
chore: typo in frappeclient.py (#24854) 2024-02-11 11:06:30 +00:00
Akhil Narang
26ae0f3460
fix: ruff fixes
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-07 17:04:31 +05:30
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
Ankush Menat
4aa20c72c1 refactor: Simplify FrappeOAuth2Client
No need to override anything, use request.session in way it is intended.
2023-06-24 15:22:01 +05:30
Gavin D'souza
d357af1533 refactor: Add a maxsplit limit to string splits 2023-01-24 19:22:51 +05:30
Smit Vora
b2581430ed
fix: allow zero page length in get_list to return complete list (#19322)
* fix: allow zero page length to return complete list

* fix: linting issues

[skip ci]
2022-12-19 11:38:10 +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
phot0n
bebc8058b6 feat: integer primary keys 2022-03-11 23:46:00 +05:30
Gavin D'souza
984420363a fix: Use params instead of data for client login 2022-01-05 20:38:16 +05:30
Navdeep
d73428df91 feat(fixes): for frappeclient post_api(POST) request being redirected to GET request on calling server 2022-01-05 20:35:31 +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
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
Rushabh Mehta
868228bdea fix(minor): tests 2021-03-30 15:50:47 +05:30
Faris Ansari
79ff0eeaf8 fix: Better error handling in FrappeClient login 2020-05-13 05:45:38 +05:30
Rucha Mahabal
d19326f5df feat: dependency syncing in update type operation of mapped doctypes 2020-03-18 14:40:23 +05:30
Rucha Mahabal
85d6da6e2e feat: dependency syncing in mapped doctypes 2020-03-18 00:52:14 +05:30
Rucha Mahabal
19c69e5316 fix: anti-pattern code 2020-01-27 12:26:12 +05:30
Rucha Mahabal
ae1c041537 fix: check if event producer site is online before subscribing 2019-10-14 03:11:44 +05:30
Rucha Mahabal
37dec37f6d fix: tests 2019-10-11 03:33:06 +05:30
Rucha Mahabal
8b77a3faee fix: test 2019-10-11 03:22:35 +05:30
Rucha Mahabal
fb2d3394b1 fix: added tests for naming configuration and logs on both ends 2019-10-11 02:16:31 +05:30
Rucha Mahabal
8b27aa876c fix: auth header encoding in python3 2019-10-11 02:16:31 +05:30
Rucha Mahabal
4cfe9eed79 fix: authentication in handler.py 2019-10-11 02:16:31 +05:30
Rucha Mahabal
ee2e1936d3 fix: event consumer authentication 2019-10-11 02:16:31 +05:30
Rucha Mahabal
644a208f00 feat: sync doc dependencies 2019-10-11 02:16:31 +05:30
Rucha Mahabal
76dd643897 fix: frappeclient to return doc on insert or update 2019-10-11 02:16:31 +05:30
Rucha Mahabal
3f415094e9 feat: token based auth in frappeclient 2019-10-11 02:16:31 +05:30
Chinmay Pai
0740fddae3
chore: remove print from frappeclient
Co-Authored-By: Shivam Mishra <scmmishra@users.noreply.github.com>
2019-10-09 16:04:04 +05:30
Chinmay D. Pai
989cd82e90
fix: raise SiteExpiredError if site has expired
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-10-09 16:02:54 +05:30
Chinmay D. Pai
c560d2fb51
fix: handle site expired exception
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
Co-authored-by: Sahil Khan <sahilkhan28297@gmail.com>
2019-10-09 15:47:25 +05:30
Rushabh Mehta
9d83791066 fix(minor): allow api users to be website users too 2019-06-20 12:45:29 +05:30
Aditya Hase
928ec12d35 fix(import): Import print_function once 2019-01-28 14:54:55 +05:30
Aditya Hase
837bfc0995 fix(unicode): Import unicode_literals in every file (#6805)
* fix(unicode): Import unicode_literals in every file

* fix(unicode): Test if safe_json_loads return unicode instead of bytes
2019-01-25 11:56:27 +05:30
Faris Ansari
303f8f0e0d fix: Remove raise_for_status 2018-09-03 18:19:28 +05:30
Prateeksha Singh
b30bc0dc3b [frappe-client] raise an exception for error codes (#5947) 2018-08-09 16:18:55 +05:30
Prateeksha Singh
2d5bb3468e
Merge pull request #5901 from netchampfaris/frappeclient
Allow guest connection in FrappeClient
2018-08-01 13:51:35 +05:30
Faris Ansari
3960f0a5f5 Formatting 2018-08-01 12:39:37 +05:30
Faris Ansari
5b3b2a9617 Extract traceback from failed FrappeClient request and frappe.throw it 2018-08-01 12:29:20 +05:30
Faris Ansari
e41cde264d
Update frappeclient.py 2018-08-01 11:44:24 +05:30
Faris Ansari
0e40b18ecc Allow guest connection in FrappeClient 2018-07-31 18:27:05 +05:30