diff options
author | 2017-11-19 11:42:55 +0200 | |
---|---|---|
committer | 2017-11-19 11:43:15 +0200 | |
commit | a9ef6f094a2bcf1fd7a0b7c2aaf814841db558ec (patch) | |
tree | 81a3f8436f9e6af07c3070c74f3a0543c2ca5eff /django/engagementmanager/rest/parsers.py | |
parent | c169d08d437ccb62fd79ade759077b874f00b1c3 (diff) |
Pep8 more fixes
Update base files to pass pep8 strict standarts.
Issue-ID: VVP-25
Change-Id: If9ef80abf7fbc33ea181dfc2eb73c27ddd6ddc3e
Signed-off-by: Edan Binshtok <eb578m@intl.att.com>
Diffstat (limited to 'django/engagementmanager/rest/parsers.py')
-rw-r--r-- | django/engagementmanager/rest/parsers.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/django/engagementmanager/rest/parsers.py b/django/engagementmanager/rest/parsers.py index fce516a..9c778e7 100644 --- a/django/engagementmanager/rest/parsers.py +++ b/django/engagementmanager/rest/parsers.py @@ -1,5 +1,5 @@ -# -# ============LICENSE_START========================================== +# +# ============LICENSE_START========================================== # org.onap.vvp/engagementmgr # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. @@ -47,10 +47,10 @@ sanitizer = Cleaner( styles=[ 'color', 'font-family', 'font-style', 'font-weight', 'text-decoration-line', - ], + ], protocols=['http'], strip=True, - ) +) def clean_r(obj): @@ -94,6 +94,7 @@ class XSSParserMixin(parsers.BaseParser): cause clean_r() to be run against the parsed data. """ + def parse(self, stream, media_type=None, parser_context=None): return clean_r( super().parse( |