Skip to content

Commit

Permalink
Merge pull request #91 from plone/gforcada-patch-2
Browse files Browse the repository at this point in the history
Add coding header
  • Loading branch information
gforcada authored Oct 3, 2016
2 parents 3b77a09 + 17b1559 commit 9a98a81
Show file tree
Hide file tree
Showing 59 changed files with 60 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Bug fixes:

- Apply security hotfix 20160830 for redirects. [maurits]

- Add coding header on python files.
[gforcada]

4.2 (2016-08-12)
----------------
Expand Down
1 change: 1 addition & 0 deletions plone/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
__import__('pkg_resources').declare_namespace(__name__)
Expand Down
1 change: 1 addition & 0 deletions plone/app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
__import__('pkg_resources').declare_namespace(__name__)
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# Import PloneMessageFactory to create messages in the plone domain
from zope.i18nmessageid import MessageFactory
import pkg_resources
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/assignable.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import implementer
from zope.component import adapter
from zope.annotation.interfaces import IAnnotations
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/browser/adding.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from warnings import warn

from zope.interface import implementer
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/browser/editmanager.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import logging

from plone.memoize.view import memoize
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/browser/formhelper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from z3c.form import button
from z3c.form import form
from zope.component import getMultiAdapter
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/browser/interfaces.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import Interface, Attribute
from zope.browser.interfaces import IAdding

Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/browser/manage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import implementer_only
from zope.interface import implementer
from zope.component import getMultiAdapter, getUtility
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/browser/traversal.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import implementer
from zope.component import adapts, getUtility, getMultiAdapter

Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/browser/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.Five import BrowserView
from zope.component import getUtility, getMultiAdapter

Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/cache.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope import component
from Acquisition import aq_inner
from Products.CMFCore.utils import getToolByName
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/checker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import implementer
from zope.component import adapts

Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/dashboard.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import implementer
from zope.component import adapts, queryUtility

Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/exportimport/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# -*- coding: utf-8 -*-
#
1 change: 1 addition & 0 deletions plone/app/portlets/exportimport/interfaces.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import Interface


Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/exportimport/portlets.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
In ``portlets.xml`` you can register various objects.
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/interfaces.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import Interface

from plone.portlets.interfaces import IPortletAssignmentMapping
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/manager.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import logging
import sys

Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/metaconfigure.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import Interface, alsoProvides

from zope.publisher.interfaces.browser import IDefaultBrowserLayer
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/metadirectives.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import Interface

from zope import schema
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/portletcontext.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from types import StringTypes

from zope.interface import implementer, Interface
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/portlets/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# -*- coding: utf-8 -*-
#
1 change: 1 addition & 0 deletions plone/app/portlets/portlets/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Acquisition import Explicit
from OFS.SimpleItem import SimpleItem
from plone.app.portlets.interfaces import IDeferredPortletRenderer
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/portlets/calendar.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
# avoid broken persistent object
from plone.app.event.portlets.portlet_calendar import Assignment
1 change: 1 addition & 0 deletions plone/app/portlets/portlets/classic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from plone.app.portlets import PloneMessageFactory as _
from plone.app.portlets.portlets import base
from plone.portlets.interfaces import IPortletDataProvider
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/portlets/events.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
# avoid broken persistent object
from plone.app.event.portlets.portlet_events import Assignment
1 change: 1 addition & 0 deletions plone/app/portlets/portlets/language.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from plone.app.i18n.locales.browser.selector import LanguageSelector
from plone.app.portlets import PloneMessageFactory as _
from plone.app.portlets.portlets import base
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/portlets/login.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from plone.app.portlets import PloneMessageFactory as _
from plone.app.portlets.portlets import base
from plone.memoize.instance import memoize
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/portlets/navigation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Acquisition import aq_inner, aq_base, aq_parent
from ComputedAttribute import ComputedAttribute
from plone.app.layout.navigation.interfaces import INavigationQueryBuilder
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/portlets/news.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Acquisition import aq_inner
from plone.app.layout.navigation.root import getNavigationRootObject
from plone.app.portlets.cache import render_cachekey
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/portlets/recent.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Acquisition import aq_inner
from plone.app.portlets import PloneMessageFactory as _
from plone.app.portlets.cache import render_cachekey
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/portlets/review.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Acquisition import aq_inner
from plone.app.portlets import PloneMessageFactory as _
from plone.app.portlets.portlets import base
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/portlets/rss.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from DateTime import DateTime
from DateTime.interfaces import DateTimeError
from logging import getLogger
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/portlets/search.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from plone import api
from plone.app.portlets import PloneMessageFactory as _
from plone.app.portlets.portlets import base
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/storage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.annotation.interfaces import IAnnotations
from zope.interface import implementer
from zope.component import adapts
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# -*- coding: utf-8 -*-
#
1 change: 1 addition & 0 deletions plone/app/portlets/tests/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Base class for integration tests, based on ZopeTestCase.
Note that importing this module has various side-effects: it registers a set of
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/testDoctests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import doctest
from unittest import TestSuite

Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_actions_portlet.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component import getUtility, getMultiAdapter

from plone.portlets.interfaces import IPortletType
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_classic_portlet.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component import getUtility, getMultiAdapter
from Products.GenericSetup.utils import _getDottedName

Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_context.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from plone.app.portlets.tests.base import PortletsTestCase
from plone.app.testing import TEST_USER_ID
from plone.app.testing import logout
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_dashboard.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zExceptions import Unauthorized
from zope.component import getUtility, getMultiAdapter
from zope.event import notify
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_exportimport.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from StringIO import StringIO

from zope.component import getSiteManager
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_login_portlet.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component import getUtility, getMultiAdapter, queryMultiAdapter

from Products.GenericSetup.utils import _getDottedName
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_manage_views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from plone.app.portlets.tests.base import PortletsTestCase


Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_mapping.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Acquisition import aq_base

from zope.component import getUtility, getMultiAdapter
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_namechooser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import unittest
import doctest

Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_navigation_portlet.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component import getUtility, getMultiAdapter
from zope.interface import directlyProvides

Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_news_portlet.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component import getUtility, getMultiAdapter

from Products.GenericSetup.utils import _getDottedName
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_recent_portlet.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component import getUtility, getMultiAdapter

from Products.GenericSetup.utils import _getDottedName
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_review_portlet.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component import getUtility, getMultiAdapter

from Products.CMFCore.utils import getToolByName
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_rss_portlet.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component import getUtility, getMultiAdapter

from Products.GenericSetup.utils import _getDottedName
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component import getSiteManager, getUtilitiesFor, getUtility

from plone.portlets.interfaces import IPortletManager
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_traversal.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Acquisition import aq_base
from Acquisition import aq_parent
from AccessControl import Unauthorized
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Testing.ZopeTestCase import user_name

from zope.component import getUtility, getMultiAdapter
Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import doctest
from plone.portlets.manager import PortletManager

Expand Down
1 change: 1 addition & 0 deletions plone/app/portlets/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component import getUtility, getMultiAdapter
from zope.container.interfaces import INameChooser

Expand Down

0 comments on commit 9a98a81

Please sign in to comment.