diff options
author | Simo Sorce <simo@redhat.com> | 2014-05-20 15:29:45 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-05-20 15:31:08 -0400 |
commit | 4fbacd9897dfcdcb23a325e78f837d9f8d372cb6 (patch) | |
tree | f55b8ab7b017168cc4dbf8fc056d9eaa626cb8d0 /ipsilon | |
parent | c4aa2a8fc207d464aa23e065b5f2ad0549a58f5e (diff) | |
download | ipsilon-4fbacd9897dfcdcb23a325e78f837d9f8d372cb6.tar.gz ipsilon-4fbacd9897dfcdcb23a325e78f837d9f8d372cb6.tar.xz ipsilon-4fbacd9897dfcdcb23a325e78f837d9f8d372cb6.zip |
Fix E501 line too long errors
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon')
-rwxr-xr-x | ipsilon/admin/login.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ipsilon/admin/login.py b/ipsilon/admin/login.py index 5b6a1ff..62522fc 100755 --- a/ipsilon/admin/login.py +++ b/ipsilon/admin/login.py @@ -34,11 +34,12 @@ class LoginPluginsOrder(Page): @admin_protect def GET(self, *args, **kwargs): + opts = [p.name for p in self._site[FACILITY]['enabled']] return self._template('admin/login_order.html', title='login plugins order', name='admin_login_order_form', menu=self.menu, action=self.url, - options=[p.name for p in self._site[FACILITY]['enabled']]) + options=opts) @admin_protect def POST(self, *args, **kwargs): @@ -88,13 +89,14 @@ class LoginPluginsOrder(Page): message = "Failed to save data!" message_type = "error" + opts = [p.name for p in self._site[FACILITY]['enabled']] return self._template('admin/login_order.html', message=message, message_type=message_type, title='login plugins order', name='admin_login_order_form', menu=self.menu, action=self.url, - options=[p.name for p in self._site[FACILITY]['enabled']]) + options=opts) class LoginPlugins(Page): |