Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup: followpep8, plone code conventions, better readability
- Loading branch information
Showing
9 changed files
with
224 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
from AccessControl.Permissions import add_user_folders | ||
from plone.session.plugins import session | ||
from Products.PluggableAuthService.PluggableAuthService import \ | ||
registerMultiPlugin | ||
from plone.session.plugins import session | ||
|
||
|
||
registerMultiPlugin(session.SessionPlugin.meta_type) | ||
|
||
|
||
def initialize(context): | ||
context.registerClass(session.SessionPlugin, | ||
permission = add_user_folders, | ||
constructors = (session.manage_addSessionPluginForm, | ||
session.manage_addSessionPlugin), | ||
visibility = None) | ||
context.registerClass( | ||
session.SessionPlugin, | ||
permission=add_user_folders, | ||
constructors=( | ||
session.manage_addSessionPluginForm, | ||
session.manage_addSessionPlugin), | ||
visibility=None | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
from zope.interface import Interface | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# | ||
# -*- coding: utf-8 -*- |
Oops, something went wrong.