Skip to content

Commit 17a0ede

Browse files
committed
fix PEP8 (except line length)
1 parent 759a35b commit 17a0ede

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

fluent_dashboard/appsettings.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@
4949
'auth/group': 'resource-group.png',
5050
'auth/user': 'system-users.png',
5151
'cms/page': 'internet-web-browser.png',
52-
'comments/comment': 'kde-telepathy.png', #'irc-voice.png',
52+
'comments/comment': 'kde-telepathy.png', # 'irc-voice.png',
5353
'dashboardmods/rssdashboardmodule': 'feed-subscribe.png',
5454
'fluent_blogs/entry': 'view-calendar-journal.png',
5555
'fluent_pages/pagelayout': 'view-choose.png',
5656
'fluent_pages/page': 'internet-web-browser.png',
5757
'fluent_faq/faqquestion': 'system-help.png',
5858
'fluent_faq/faqcategory': 'custom-bookmarks-help.png',
59-
'fluent_comments/fluentcomment': 'kde-telepathy.png', #'irc-voice.png',
59+
'fluent_comments/fluentcomment': 'kde-telepathy.png', # 'irc-voice.png',
6060
'fluentcms_googlemaps/markergroup': 'marble.png',
6161
'fluentcms_googlemaps/marker': 'preferences-system-session-services.png',
6262
'fiber/contentitem': 'folder-txt.png',
@@ -76,7 +76,7 @@
7676
'snippet/snippet': 'folder-txt.png',
7777
'tagging/tag': 'feed-subscribe.png',
7878
'tagging/taggeditem': 'feed-subscribe.png',
79-
'threadedcomments/threadedcomment': 'kde-telepathy.png', #'irc-voice.png',
79+
'threadedcomments/threadedcomment': 'kde-telepathy.png', # 'irc-voice.png',
8080
'zinnia/category': 'folder-bookmark.png',
8181
'zinnia/entry': 'view-calendar-journal.png',
8282
}

fluent_dashboard/dashboard.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def get_application_modules(self):
8888
modules = []
8989
appgroups = get_application_groups()
9090
for title, kwargs in appgroups:
91-
AppListClass = get_class(kwargs.pop('module')) #e.g. CmsAppIconlist, AppIconlist, Applist
91+
AppListClass = get_class(kwargs.pop('module')) # e.g. CmsAppIconlist, AppIconlist, Applist
9292
modules.append(AppListClass(title, **kwargs))
9393
return modules
9494

fluent_dashboard/items.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ def init_with_context(self, context):
3535
# Convert to a similar data structure like the dashboard icons have.
3636
# This allows sorting the items identically.
3737
models = [
38-
{ 'name': get_meta_model_name(model._meta),
39-
'app_name': model._meta.app_label,
40-
'title': capfirst(model._meta.verbose_name_plural),
41-
'url': self._get_admin_change_url(model, context)
42-
}
38+
{'name': get_meta_model_name(model._meta),
39+
'app_name': model._meta.app_label,
40+
'title': capfirst(model._meta.verbose_name_plural),
41+
'url': self._get_admin_change_url(model, context)
42+
}
4343
for model, perms in listitems if self.is_item_visible(model, perms)
4444
]
4545

fluent_dashboard/modules.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ def get_icon_url(self, icon):
189189
* Otherwise, it's relative to the theme url folder.
190190
"""
191191
if not icon.startswith('/') \
192-
and not icon.startswith('http://') \
193-
and not icon.startswith('https://'):
192+
and not icon.startswith('http://') \
193+
and not icon.startswith('https://'):
194194
if '/' in icon:
195195
return self.icon_static_root + icon
196196
else:
@@ -217,7 +217,7 @@ def init_with_context(self, context):
217217
super(CmsAppIconList, self).init_with_context(context)
218218
apps = self.children
219219

220-
cms_apps = [a for a in apps if is_cms_app(a['name'])]
220+
cms_apps = [a for a in apps if is_cms_app(a['name'])]
221221
non_cms_apps = [a for a in apps if a not in cms_apps]
222222

223223
if cms_apps:

0 commit comments

Comments
 (0)