Skip to content

Commit

Permalink
cleanup: followpep8, plone code conventions, better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Jun 2, 2015
1 parent 1572ff1 commit a334ba8
Show file tree
Hide file tree
Showing 9 changed files with 224 additions and 159 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Expand Up @@ -4,7 +4,8 @@ Changelog
3.5.6 (unreleased)
------------------

- Nothing changed yet.
- Cleanup: Pep8, plone style conventions, better readbility.
[jensens]


3.5.5 (2015-04-29)
Expand Down
17 changes: 10 additions & 7 deletions plone/session/__init__.py
@@ -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
)
18 changes: 10 additions & 8 deletions plone/session/configure.zcml
Expand Up @@ -3,15 +3,17 @@
xmlns:five="http://namespaces.zope.org/five"
xmlns:zcml="http://namespaces.zope.org/zcml">

<five:registerPackage package="." initialize=".initialize" />
<five:registerPackage
initialize=".initialize"
package="."
/>

<include package="plone.protect" />
<include package="plone.protect" />
<include file="resources.zcml" />

<include file="resources.zcml" />

<include
zcml:condition="installed Products.CMFPlone"
file="profiles.zcml"
/>
<include
file="profiles.zcml"
zcml:condition="installed Products.CMFPlone"
/>

</configure>
1 change: 1 addition & 0 deletions plone/session/interfaces.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import Interface


Expand Down
2 changes: 1 addition & 1 deletion plone/session/plugins/__init__.py
@@ -1 +1 @@
#
# -*- coding: utf-8 -*-

0 comments on commit a334ba8

Please sign in to comment.