Commit graph

1655 commits

Author SHA1 Message Date
Faris Ansari
42586041c1 fix: Remove unnecessary error handling 2020-04-25 20:50:57 +05:30
Faris Ansari
c676174908 fix: Unused variable name 2020-04-25 20:50:43 +05:30
Faris Ansari
dbf180f368 fix: Handle empty image 2020-04-25 15:48:05 +05:30
Faris Ansari
e8e64012e6 tests: Fix exporter tests 2020-04-25 15:22:35 +05:30
Faris Ansari
280e7d982e feat: Blur-up images before loading 2020-04-25 14:48:43 +05:30
Faris Ansari
77281c6207 fix: tests 2020-04-25 00:43:31 +05:30
Faris Ansari
caa068932c Merge branch 'develop' of https://github.com/frappe/frappe into page-builder-tailwind 2020-04-24 23:48:29 +05:30
mergify[bot]
20083c743e
Merge pull request #10065 from Thunderbottom/site-based-logging
feat: Separate frappe log by site
2020-04-23 08:00:41 +00:00
Chinmay D. Pai
1bd5c916ce
chore: separate frappe log by site
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-22 16:23:02 +05:30
Chinmay D. Pai
96c5162c7e
fix: compare and sort release list to get latest release
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-22 14:18:38 +05:30
Faris Ansari
e572a3733b fix: Use frappe.throw instead of raise 2020-04-21 21:31:08 +05:30
Chinmay D. Pai
1dfa8ccbc4
feat: add name validation to data fieldtype
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-21 15:49:55 +05:30
prssanna
89e0a9804b fix: add missing fullstop in system update message 2020-04-19 22:13:10 +05:30
Faris Ansari
5ea86c6454 fix: Use Web Page Block for Navbar and Footer
- Add more Web Templates
2020-04-19 16:19:02 +05:30
Faris Ansari
2431767fdf feat: Page Builder based on Tailwind
- Website Theme based on: Bootstrap 4, Tailwind
- Web Page: Page Builder
- Web Template: Create templates for web pages
- Added some common Web Templates
- Components: Standard components directly usable in Jinja
- Purge Tailwind Classes in Production
- PostCSS Config to support tailwind
2020-04-18 15:02:56 +05:30
Gavin D'souza
4fa3522c3b Merge branch 'develop' into misc-fix-1 2020-04-17 13:40:49 +05:30
Chinmay Pai
6d8540fbe2
Merge pull request #9849 from saurabh6790/scheduler_based_server_scripts 2020-04-17 11:09:22 +05:30
mergify[bot]
104381abfe
Merge pull request #9969 from Mangesh-Khairnar/increase-password-limit
fix: increase the length of the password
2020-04-16 10:30:50 +00:00
Mangesh-Khairnar
feba8878d9 fix: increase the length of the password to maximum possible under current structure 2020-04-16 14:26:55 +05:30
Rushabh Mehta
e323441c15 feat: Add Web View to compose webpages with components 2020-04-15 23:12:57 +05:30
Shivam Mishra
7651df7bed Merge branch 'develop' of github.com:frappe/frappe into field-strip-html 2020-04-13 14:04:22 +05:30
Suraj Shetty
e26064436b chore: Do not print traceback in console
- Instead print class of error and the site name
2020-04-12 15:05:28 +05:30
Gavin D'souza
5cc11910ad fix: return Job object on frappe.enqueue_doc 2020-04-10 13:34:38 +05:30
Suraj Shetty
ad95fbf519 fix: Handle invalid date parsing 2020-04-10 10:17:01 +05:30
Felipe Orellana
4479405872
fix: hooks.py boilerplate escape chars
Creating new app currently breaks due to comments in hooks.py do not properly escape sample configuration on webform hooks.
2020-04-05 21:27:32 -04:00
Saurabh
6624f3a1af enhancement: provision to scheduled server scripts execution 2020-04-03 18:13:27 +05:30
mergify[bot]
9a7f55c68a
Merge pull request #9799 from Thunderbottom/global-search-sqli
fix: avoid sqli inside global web search
2020-04-03 07:14:54 +00:00
Suraj Shetty
ac464f2b99
Merge branch 'develop' into redis_wrapper_error 2020-04-01 23:10:07 +05:30
gavin
0177c03139
Merge pull request #9784 from gavindsouza/data-options
feat: Validate Data options and Data values
2020-04-01 14:00:48 +05:30
prssanna
8f3209c5e9 fix: fix HTMLParser import in unescape_html 2020-04-01 12:04:10 +05:30
marty
256428572f resolve error redis_wrapper 2020-03-31 12:54:30 +00:00
Chinmay D. Pai
10e939d012
chore: update global_search and add test
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-03-30 10:46:00 +05:30
Suraj Shetty
0a65266c1e
Merge branch 'develop' into data-options 2020-03-30 10:44:25 +05:30
Suraj Shetty
6dd5d3174e
Merge branch 'develop' into dev-webform-custom-js-css 2020-03-30 10:07:12 +05:30
Chinmay D. Pai
063def052e
chore: remove trailing closing bracket
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-03-27 18:54:18 +05:30
Chinmay D. Pai
708248baf9
fix: avoid sqli inside global web search
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-03-27 16:04:11 +05:30
prssanna
523f0a1f57 fix: strip html from fetched fields server side if required 2020-03-27 15:32:11 +05:30
Gavin D'souza
2c5bc5abcf fix: remove type annotations 2020-03-25 17:22:12 +05:30
Gavin D'souza
f7111e20be fix: Improper ValidationError string
returning empty string if parseaddr returns None shows " is not a valid Email Address"

eg: if 'email@' is passed as value, email.utils.parseaddr will return a
(None, None) tuple
2020-03-25 16:28:37 +05:30
Gavin D'souza
c199a3555b chore: remove deprecated validate_email_add function 2020-03-25 15:59:01 +05:30
Gavin D'souza
d199d8027a feat: added server validations for phone and email
for fieldtype "Data" and options set to "Email" or "Phone", updating
    documents will trigger data validations for email and phone numbers will be made
2020-03-25 15:29:24 +05:30
dependabot[bot]
bdb77ba521
chore(deps): bump bleach from 2.1.4 to 3.1.2 (#9779)
* chore(deps): bump bleach from 2.1.4 to 3.1.2

Bumps [bleach](https://github.com/mozilla/bleach) from 2.1.4 to 3.1.2.
- [Release notes](https://github.com/mozilla/bleach/releases)
- [Changelog](https://github.com/mozilla/bleach/blob/master/CHANGES)
- [Commits](https://github.com/mozilla/bleach/compare/v2.1.4...v3.1.2)

Signed-off-by: dependabot[bot] <support@github.com>

* chore: use html.parser instead of html5lib

bleach no longer ships html5lib as a requirement and instead has
included it in the system. we can switch to using html.parser instead;
which is not an external dependency unlike html5lib.

source: https://github.com/mozilla/bleach/blob/master/CHANGES#L206

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* chore: use html5lib from bleach

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* chore: import html5lib from bleach._vendor

fixes issue where bs4 is unable to find html5lib in the tree:

bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: bleach._vendor.html5lib. Do you need to install a parser library?

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* chore: just give up and install html5lib as a dependency

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-03-25 00:20:57 +05:30
Alirio Castro
23d3f0e63b
feat: Indicate orientation for PDF file (#9660)
Same as other attributes, we could indicate default orientation by indicating in the .print-format css class without hardcoding, which is useful for cloud users.

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2020-03-16 17:31:28 +05:30
Suraj Shetty
e947b9ed84
Merge branch 'develop' into dev-webform-custom-js-css 2020-03-12 19:54:46 +05:30
Aditya Hase
d5fc0cef5d
Merge pull request #9542 from adityahase/feat-monitor
feat: Monitor
2020-03-05 21:24:29 +05:30
Aditya Hase
692055499a feat(scheduler): Frequent job scheduling
Scheduler tick interval (default 60 seconds) can now be configured with scheduler_tick_interval key in common_site_config.json
2020-03-05 15:45:19 +05:30
Aditya Hase
4740e4f7e6 refactor: Monitor
Do not collect request headers
Collect job wait time and whether it was scheduled
2020-03-05 15:06:15 +05:30
Aditya Hase
af3c4feb64 feat: Monitor
Collect HTTP Request and Background Job logs
2020-03-05 15:06:15 +05:30
Chinmay D. Pai
6f0e1f34dc
fix(rq): randomize worker name with uuid
fixes issue with rq where worker with the same name already exists.
cases where a pid gets killed and is respawned with the same pid, when
the worker isn't dead and a new worker is being spawned; causes the
following error:

ValueError: There exists an active worker named u'xxxxxxxxxxxx.y' already

fixed by appending random hex uuid for every worker.

inspo: https://github.com/rq/rq/blob/master/rq/worker.py#L187

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-03-02 17:15:31 +05:30
Rohan Bansal
91f023edbe feat: include custom JS and CSS files in web form 2020-03-02 16:28:47 +05:30