Commit graph

76 commits

Author SHA1 Message Date
Aditya Hase
09b87f8a2d
perf: Remove frappe.website.render from import tree 2021-02-21 09:47:05 +05:30
Faris Ansari
6fa38a325d fix: Fallback value for allow_traceback when no db 2021-02-16 21:45:26 +05:30
Karthikeyan Singaravelan
0d4f116b3e fix: Import ABC from collections.abc for Python 3.9 compatibility. 2020-11-26 13:17:12 +00:00
ABHISHEK KEDAR
7afb5b0b73
feat: as_raw update to display content inline not always download as attachment (#11569)
* feat: as_raw update to display content inline not always download as attachment

* fix: string formatting corrected in as_raw()

* fix: missing quotes in filename in as_raw()
2020-10-30 06:58:25 +00:00
prssanna
89e0a9804b fix: add missing fullstop in system update message 2020-04-19 22:13:10 +05:30
Rohit Waghchaure
80f87a37fb fix: not able to download XML file 2019-12-07 12:53:04 +05:30
Aditya Hase
ab455b46cd
fix(pdf): Remove unnecessary argument
https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote
https://docs.python.org/2/library/urllib.html#urllib.quote
2019-11-15 15:44:39 +05:30
IOWEB TECHNOLOGIES
a4585bfcd9 add support for utf-8 characters in pdf filename during downloads 2019-10-29 23:33:23 +02:00
gavin
b5ab59ad6e feat: Access log (#8014)
* feat: Access log doctype for logging information about private file
downloads, backups downloads, printing and exporting data

* updated: access log

* updated: formattted access_log.js

* access logging: print/pdf/pvt files/export/backup

client side implementation: treeview, query_report
server side implementation on the rest

* fixes: codacy errors

* Update response.py

* Update response.py

* Update response.py

* codacy: please

* travis fixes

* changes:filters=>_filters(lol this works @ times?)

added: tests for access_log, make_access_log formatting, form ui added
buttons

* this hopefully fixes em tests

* changes: fixed indents, session.user, formatting

* fixes: tests, refactor, permissions

emerging from exporter.py => reference doctype in export_data (check
format!)

* fixes: convert dict to json

* changes: added more tests, wrote lesser code?

switched js to display depends on

* fixes: codacy and hopefully travis

* fix: tests? and polishing up

* added column field, removed tracked views

changed access log in exporter.py > export_data
added access log in reportview.py > export_query

* style: Fix indentation

* style: Fix indentation

* fix: Remove problematic string replace

It may replace quotes in the actual filter values which can result in invalid JSON

* fix: Remove filter string conversion

* fix: Error due to quote escapes

TODO: Check for a better way
2019-08-06 10:24:55 +05:30
Faris Ansari
fed179b4ea fix: Check private file permissions for all docs
A file may be attached to multiple documents. It's permission is decided
based on the attached document's permissions. So, the permission
should be checked for each document and should be allowed if atleast
one document is accessible.
2019-07-29 15:43:06 +05:30
Aditya Hase
6d4ec8e4d6 fix: Encode path before passing to urllib.quote (#7758) 2019-06-28 14:09:24 +05:30
jijan1985
7dfaaee1fe fix: quoting special characters and appropriately encoding non-ASCII filename (#7677) 2019-06-14 11:43:08 +05:30
Aditya Hase
5d5e68dbed fix: Do not show locals to user (#7397) 2019-05-02 19:35:17 +05:30
Frappe Bot
bd2e410a02 Merge branch 'master' into develop 2019-03-23 07:23:54 +00:00
Himanshu Mishra
d0eb066fa4
Variable bleed in response 2019-03-21 16:49:35 +05:30
Prateeksha Singh
14693b4327 feat(response): force download html or xml files 2019-03-14 08:47:02 +05:30
Frappe Bot
bfc25ad1e5 Merge branch 'master' into develop 2019-02-15 10:21:47 +00:00
Aditya Hase
683be9e096 feat(error-report): Collect frame locals in error report (#6938)
* feat(error-report): Collect frame locals in error report

* style: Linting fixes
2019-02-15 14:24:08 +05:30
Sagar Vora
17b20b22a3 Merge branch 'master' into develop 2019-02-12 16:31:54 +05:30
Saif
1bb4c6275f fix: Don't send attachment/download header with PDF files (#6881) 2019-02-06 12:48:41 +05:30
Sagar Vora
ef82f39f99 Merge branch 'staging' into develop 2019-01-29 18:24:11 +05:30
Zarrar
8bdb0dc5f8 feat: Download json file (#6793)
* feat: download file as json type

* fix: make raw type files downloadable
2019-01-23 16:51:02 +05:30
Ameya Shenoy
13524a1ad5
Merge branch 'staging' into develop 2018-11-23 08:14:29 +00:00
Juan Carlos Espinoza Zurita
7319853d58 [MINOR FEATURE] Export file to TXT #6737 (#6489) 2018-11-21 18:17:34 +05:30
Faris Ansari
b37c5153a9 fix(File): Infer File Permissions from linked doc 2018-09-26 14:40:10 +05:30
Chinmay Pai
8943f6cfd5
file-api: migration improvements and fixes
* migrate more functions to file class
* add get_content(), returns file content from file_name
* move get_file_path() to get_full_path() to decrease naming ambiguity

Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
2018-09-06 17:30:33 +05:30
Saurabh
f1b35c82f4 [fix] resolved merge conflicts 2018-05-15 12:56:21 +05:30
Ameya Shenoy
187b04bfa3
added handler for decimal object in response 2018-04-25 15:45:47 +05:30
Achilles Rasquinha
c148748b82 Fixed byte response headers 2018-03-09 14:51:27 +05:30
Achilles Rasquinha
4b5e7d80dd response headers to string 2018-03-08 20:38:18 +05:30
Ameya Shenoy
de6fc02509 indentation fix 43941d4 (#4944) 2018-01-31 13:10:11 +05:30
Ritesh Shrivastav
43941d40d7 Provision to print a complex object for all 'bench execute' commands (#4908) 2018-01-31 11:25:01 +05:30
Achilles Rasquinha
473d3eb6be Fixes for Python 3 (#4940)
* Fixed dict_keys and lists

* [FIX] config.get keys must be list

* [FIX] pickle all objects

* [FIX] get versions in unicode

* [FIX] get log versions

* debugging

* Fixed commit ID reference

* Fixed branch reference

* Fixed doc keys to list

* [LOG] test log

* [LOG] test log

* Convert iterators to list

* removed logs

* [FIX] Trial to load templates

* Fixed codacy
2018-01-31 10:51:13 +05:30
Aditya Hase
e6bd1e4995 Replaced all instances of 'unicode' with 'six.text_type' (#3825) 2017-08-02 16:57:39 +05:30
tundebabzy
702e52e665 Change raise syntax to python 3 compatible style (#3497)
* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement
2017-06-19 09:07:19 +05:30
Manas Solanki
0ce499e13d Configurable error traceback (#3464)
* Configurable error traceback

* Create system_settings.json
2017-06-13 15:33:08 +05:30
Rushabh Mehta
0a5df4fb4d [debug] show where permission is failing (#3264)
* [debug] show where permission is failing

* [fix] document.py
2017-05-11 11:46:47 +05:30
Manas Solanki
8bcd479831 Add binary mime type in response.py 2017-02-14 18:34:35 +05:30
Rushabh Mehta
0618b98c92 [minor] cleanup to comment update and maintenance mode page 2017-01-10 17:50:36 +05:30
Rushabh Mehta
47005e9e02 [fix] parent_website_route + '/' + page_name = route 2016-06-23 15:47:47 +05:30
Anand Doshi
6e4f16b07a [fix] use response.mimetype and response.charset instead of setting 'Content-Type' directly in response.header 2016-04-28 15:26:30 +05:30
Anand Doshi
e055ad221f [fix] Load private files having non-ascii characters when using Nginx's X-Accel-Redirect system 2016-04-22 12:45:15 +05:30
Anand Doshi
d8f24822a9 [fix] cleanup, re-org and fixes to error snapshot 2015-12-16 19:39:56 +05:30
Anand Doshi
9b85610b93 [fix] set content type of private files 2015-12-12 01:31:59 +05:30
Anand Doshi
485786e9b6 [fix] bring back content disposition in send private file 2015-12-11 11:15:25 +05:30
Anand Doshi
72761d6f3e [fix] send private file via dev server: use direct_passthrough=True for faster delivery 2015-12-10 17:16:57 +05:30
Anand Doshi
80d11cbb23 [fix] response for X-Use-X-Accel-Redirect 2015-12-10 12:19:51 +05:30
Anand Doshi
8a5addaae7 [feature] Private files. Fixes #927
- Option during upload + all new incoming email files will be private
- Paired with @rmehta
2015-12-09 14:02:14 +05:30
Anand Doshi
6084775ed0 Added CSRF token verification for desk 2015-09-21 11:41:06 +05:30
Rushabh Mehta
3932cecf85 [fixes] wiring exections for async requests 2015-07-27 18:22:50 +05:30