Commit graph

18 commits

Author SHA1 Message Date
Mitul David
4f86cdb8f8
Merge branch 'develop' into image-processing 2021-08-06 18:45:59 +05:30
MitulDavid
14fac949af test: Add test for optimize_image utility 2021-08-06 18:43:14 +05:30
Ankush
257723cb0a
feat: PythonExpression and Python option with syntax validation for Code field types (#13707)
* feat: `PythonExpression` and `Python` options for `Code` fields

* fix: check python expressions in assignment rule

* fix: replace server script syntax validation

* fix: validate condition in workflow transition

Add PythonExpression in Options.
2021-08-06 04:10:09 +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
Abhishek Balam
f4e4fc98f9 fix: remove unnecessary schemes and minor changes 2021-05-02 00:32:01 +05:30
Hussain Nagaria
024e759a70 refactor: Add optional URL scheme validation 2021-05-01 00:34:19 +05:30
Hussain Nagaria
3e229e931a test: Email and URL validate functions 2021-04-30 15:37:55 +05:30
Abhishek Balam
e306f5601c fix: made requested changes 2020-11-30 18:58:53 +05:30
Faris Ansari
8fb2a538ec test: Add UI test for Link control (#7809)
* test: Add UI test for Link control

- Add API cy.call
- Add API cy.create_records
- Add ui_test_helpers.py

* style: Missing semicolon

* style: Missing semicolon

* style: Missing semicolon

* style: Remove unused imports

* test: Robust test for setting invalid value

* style: Remove unused import
2019-07-03 07:55:36 +05:30
Suraj Shetty
b887091cbd fix: Clear cache after creating workflow 2019-06-03 12:05:33 +05:30
Suraj Shetty
8528298b55 test: Init bulk approval test 2019-05-31 13:44:15 +05:30
Faris Ansari
f63ac68510 test: Fix Cypress tests 2019-02-19 15:24:18 +05:30
sahil28297
3644f5f4cd feat: relative timeframe filters (#6792)
* feat: relative timeframe filters

* fix: resolve syntax errors

* fix: Translated options
2019-01-21 16:02:40 +05:30
Rushabh Mehta
aef1046b1f
[email] remove style from email so it does not mess up desk (#5860)
* [email] remove style from email so it does not mess up desk

* [fix] tests

* [fix] image parsing, #savedbyatestcase

* [fix] timeout issues in test

* [fix] timeout issues in test
2018-07-24 17:00:14 +05:30
Ameya Shenoy
09e71d0d77 added floor and ceil to frappe.utils (#5536)
Added frappe wrappers to math.ceil and math.floor, since they are widely
used functions. Also added their docstrings for documentation and wote
test cases. And some minor typo fixes
2018-05-08 15:13:50 +05:30
Faris Ansari
7397b68290 Scrub urls fix (#3918)
* Don't expand mailto urls

* Add test case
2017-08-11 13:00:10 +05:30
tundebabzy
ff4c86089c Make "Amount in words" spell three decimals (#3358)
* fixes frappe/erpnext#8895

* checks for non-numeric type

* makes words translatable
2017-06-13 12:09:35 +05:30
Rushabh Mehta
9d8c2b5eff [enhancements] added frappe.utils.evalute_filter(doc, filter) and ability to hook multiple doc events at the same time 2016-04-08 17:07:31 +05:30