summaryrefslogtreecommitdiffstats
path: root/django/engagementmanager/service/cms
diff options
context:
space:
mode:
authorEdan Binshtok <eb578m@intl.att.com>2017-11-19 11:42:55 +0200
committerEdan Binshtok <eb578m@intl.att.com>2017-11-19 11:43:15 +0200
commita9ef6f094a2bcf1fd7a0b7c2aaf814841db558ec (patch)
tree81a3f8436f9e6af07c3070c74f3a0543c2ca5eff /django/engagementmanager/service/cms
parentc169d08d437ccb62fd79ade759077b874f00b1c3 (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/service/cms')
-rw-r--r--django/engagementmanager/service/cms/__init__.py4
-rw-r--r--django/engagementmanager/service/cms/base_cms.py4
-rw-r--r--django/engagementmanager/service/cms/pages_service.py10
-rw-r--r--django/engagementmanager/service/cms/posts_service.py10
4 files changed, 16 insertions, 12 deletions
diff --git a/django/engagementmanager/service/cms/__init__.py b/django/engagementmanager/service/cms/__init__.py
index 1726c13..16f81cb 100644
--- a/django/engagementmanager/service/cms/__init__.py
+++ b/django/engagementmanager/service/cms/__init__.py
@@ -1,5 +1,5 @@
-#
-# ============LICENSE_START==========================================
+#
+# ============LICENSE_START==========================================
# org.onap.vvp/engagementmgr
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
diff --git a/django/engagementmanager/service/cms/base_cms.py b/django/engagementmanager/service/cms/base_cms.py
index 8625d88..4f7cdd5 100644
--- a/django/engagementmanager/service/cms/base_cms.py
+++ b/django/engagementmanager/service/cms/base_cms.py
@@ -1,5 +1,5 @@
-#
-# ============LICENSE_START==========================================
+#
+# ============LICENSE_START==========================================
# org.onap.vvp/engagementmgr
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
diff --git a/django/engagementmanager/service/cms/pages_service.py b/django/engagementmanager/service/cms/pages_service.py
index ab6fc96..9dbc44f 100644
--- a/django/engagementmanager/service/cms/pages_service.py
+++ b/django/engagementmanager/service/cms/pages_service.py
@@ -1,5 +1,5 @@
-#
-# ============LICENSE_START==========================================
+#
+# ============LICENSE_START==========================================
# org.onap.vvp/engagementmgr
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
@@ -55,10 +55,12 @@ class CMSPagesService(BaseCms):
def getPage(self, id):
page = cms_client.get_page(id)
- # Handling static files address (like images) to get the full address of the CMS static file:
+ # Handling static files address (like images) to get the full
+ # address of the CMS static file:
if 'content' in page and page['content']:
cmsAddress = re.sub('\/api/$', '', cms_client.api_url)
- page['content'] = page['content'].replace('src="/static/media/', 'src="%s/static/media/' % cmsAddress)
+ page['content'] = page['content'].replace(
+ 'src="/static/media/', 'src="%s/static/media/' % cmsAddress)
return page
diff --git a/django/engagementmanager/service/cms/posts_service.py b/django/engagementmanager/service/cms/posts_service.py
index 720f766..3121202 100644
--- a/django/engagementmanager/service/cms/posts_service.py
+++ b/django/engagementmanager/service/cms/posts_service.py
@@ -1,5 +1,5 @@
-#
-# ============LICENSE_START==========================================
+#
+# ============LICENSE_START==========================================
# org.onap.vvp/engagementmgr
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
@@ -51,8 +51,10 @@ class CMSPostsService(BaseCms):
from_last_days_param = ""
if (fromLastDays is not None and fromLastDays != ""):
- from_last_days_param = (datetime.now() - timedelta(days=int(fromLastDays))).strftime('%Y-%m-%d')
+ from_last_days_param = (datetime.now() - timedelta(
+ days=int(fromLastDays))).strftime('%Y-%m-%d')
- posts = cms_client.get_posts(offset, limit, category, from_last_days_param)
+ posts = cms_client.get_posts(
+ offset, limit, category, from_last_days_param)
return posts