Akhil Narang
123844b10d
chore(csvutils): update messages
...
Avoid semgrep issue with translated string
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-05-08 16:18:53 +05:30
Mate Laszlo Valko
e69093c82b
feat: CSV import introduce FILE_ENCODING_OPTIONS constant in file.py, cleanup
2024-05-08 07:40:17 +02:00
Mate Laszlo Valko
45eabd32cd
feat(Data Import): custom delimiters
2024-04-30 13:40:38 +02:00
Raffael Meyer
fc64e8a0fb
feat: pass doctype as context when translating label ( #24903 )
2024-02-18 19:42:15 +05:30
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
barredterra
88c8baa9ee
refactor: for append to extend, merge list extend
...
Replace a for append loop with list extend.
Create the list with values instead of creating
an empty list and extending it with another list.
2023-08-09 13:25:39 +02:00
Ankush Menat
32bd5d3e2c
Revert "perf: defer many requests imports"
...
This reverts commit 71b44efcac .
This gets frequently imported from one place or another. Since with
gc.freeze we can mostly reuse the import from parent, let's just leave
it here.
2023-06-24 16:26:22 +05:30
Ankush Menat
71b44efcac
perf: defer many requests imports
2023-06-24 15:22:01 +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
Chillar Anand
485988682d
refactor: Remove dead code ( #16886 )
2022-05-12 18:04:44 +05:30
Shadrak Gurupnor
e0c89cdc73
fix: properly validate google sheets url ( #16683 )
...
* fix: properly validate google sheets url
* fix: check for spreadsheets in path
* fix(minor): error should throw if any of the cond fails
2022-04-26 15:17:19 +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
barredterra
b1383df15a
refactor: use is None instead of == None
2022-01-17 10:37:51 +01:00
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
Suraj Shetty
1cf1bc1e06
refactor: Remove unused functions
2021-08-19 17:48:40 +05:30
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
Britlog
662f409604
feat: Add quoting parameter in the UnicodeWriter constructor ( #12578 )
...
* Add quoting parameter in the constructor
* fix: Use quoting kwarg to pass quoting value
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2021-03-17 12:50:20 +00:00
Rushabh Mehta
75fe8a615a
feat(app): move /desk to /app
2020-11-11 16:31:47 +05:30
Faris Ansari
e70f7fa706
fix: Show message if URL without gid is errored
2020-07-06 22:54:49 +05:30
Faris Ansari
e5e6c7c9fe
fix: Extract gid from google sheets url
2020-06-30 12:15:12 +05:30
Faris Ansari
0e5b3769e4
feat: Ability to import data from Google Sheets
2020-06-12 12:33:37 +05:30
Rushabh Mehta
7135c0d9e8
fix(various): after manual testing
2019-05-24 11:22:09 +05:30
Rushabh Mehta
81fa64d4bc
refactor(form.js): remove very old API
2019-05-24 09:08:56 +05:30
Rohit Waghchaure
0307b3da59
[Fix] File not found error
2018-10-10 13:17:53 +05:30
Ameya Shenoy
387f556dd5
Merge branch 'staging' into develop
2018-10-04 11:41:29 +00:00
Ameya Shenoy
66073c360a
Merge branch 'master' into staging-fixes
2018-10-03 14:51:32 +00:00
rohitwaghchaure
8fe95f2876
Submit the attendance if it's in draft mode ( #6156 )
2018-09-30 21:11:01 +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
Chinmay Pai
6eca292e1a
[3/3] file-api: code migration
...
migrate api from file_manager.py to file.py
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
2018-09-06 01:18:21 +05:30
Chinmay Pai
22ba310aaf
[2/3] file-api: code migration
...
migrate api from file_manager.py to file.py
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
2018-09-03 18:04:45 +05:30
Chinmay Pai
16a99f5472
[1/3] file-api: code migration
...
migrate api from file_manager.py to file.py
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
2018-08-31 01:55:15 +05:30
Ameya Shenoy
5cee74e8db
python 2/3 fixes
2018-08-16 12:28:59 +00:00
Prateeksha Singh
d0a1565aa8
[csv-utils] don't decode when you've encoded special chars ( #5970 )
...
* [csv-utils] don't decode when you've encoded special chars
* Update csvutils.py
2018-08-15 11:25:56 +05:30
Achilles Rasquinha
3a5c090bde
fix test case
2018-03-31 18:01:11 +05:30
Achilles Rasquinha
0563788cb2
fix data import test case
2018-03-31 17:47:16 +05:30
Achilles Rasquinha
f06b15bccb
Fixed csv utils
2018-03-18 14:14:48 +05:30
Aditya Hase
769338f136
Replaced all instances of basestring with six.string_types
2017-08-11 00:10:11 +05:30
Aditya Hase
e6bd1e4995
Replaced all instances of 'unicode' with 'six.text_type' ( #3825 )
2017-08-02 16:57:39 +05:30
Aditya Hase
d3395dfd28
Replaced StringIO and cStringIO imports with six.StringIO ( #3810 )
...
StringIO and cStringIO modules are replaced with io.StringIO in
Python 3. six.StringIO is an alias for StringIO.StringIO in
Python 2 and io.StringIO in Python 3
2017-07-31 10:54:17 +05:30
Rushabh Mehta
3a211bf497
Merge pull request #1969 from frappe/hotfix
...
Hotfix
2016-08-12 11:39:20 +05:30
Rohit Waghchaure
1fbc271b5d
[Rename Tool] Fixed reading data from wrong file issue
2016-08-11 19:27:40 +05:30
Rushabh Mehta
caeb6c8f58
[minor] fixed error for #5782 and grid text editor must be text
2016-07-18 14:48:34 +05:30
Rushabh Mehta
2191312c87
[enhancement] document management system
2015-09-21 15:41:34 +05:30
Anand Doshi
2995f02f3b
Web Notes to Frappe, better alerts, css fixes, fixed splash
2015-03-03 15:09:34 +05:30
Rushabh Mehta
de73b13021
[fixes] print format builder, edit standard makes new format
2015-03-02 16:11:57 +05:30
Rushabh Mehta
8710680cfa
[fixes] removed attach_files: wtf and cleaned up listviews
2015-02-19 20:04:51 +05:30
Anand Doshi
e6a7459657
Fixes in share, moved flags like ignore_mandatory, ignore_validate etc to doc.flags
2015-02-10 14:41:14 +05:30
Anand Doshi
536926cb12
[minor] Percent
2014-07-25 13:22:48 +05:30
Anand Doshi
eb5ddf4640
Limit available functions in jinja environment
2014-07-25 13:01:53 +05:30