Skip to content

Commit

Permalink
add utf8 headers to all python files
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Sep 30, 2016
1 parent a80b577 commit aa9b3dd
Show file tree
Hide file tree
Showing 191 changed files with 192 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -31,6 +31,8 @@ New features:

Bug fixes:

- Add utf8 headers to all Python source files. [jensens]

- Apply security hotfix 20160830 for ``z3c.form`` widgets. [maurits]

- Fixed tests in combination with newer CMFFormController which has the hotfix. [maurits]
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/ActionsTool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from AccessControl import ClassSecurityInfo
from App.class_init import InitializeClass
from Products.CMFCore.ActionInformation import ActionInfo
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/CatalogTool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import logging
import re
import time
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/DublinCore.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2001 Zope Foundation and Contributors.
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/MigrationTool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import logging
import sys
from StringIO import StringIO
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/PloneBaseTool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from App.class_init import InitializeClass
from AccessControl import ClassSecurityInfo
from Products.CMFPlone.interfaces import IPloneBaseTool
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/PloneBatch.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from ZTUtils import make_query

from plone.batching.batch import QuantumBatch
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/PloneControlPanel.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from AccessControl import ClassSecurityInfo
from App.class_init import InitializeClass
from App.special_dtml import DTMLFile
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/PloneFolder.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from plone.memoize import view
from App.class_init import InitializeClass
from zExceptions import NotFound
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/PropertiesTool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Acquisition import aq_parent, aq_inner
from Products.CMFCore.permissions import ManagePortal
from Products.CMFCore.utils import UniqueObject
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/QuickInstallerTool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from AccessControl import ClassSecurityInfo
from App.class_init import InitializeClass
from Products.CMFCore.permissions import ManagePortal
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/RegistrationTool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from AccessControl import ClassSecurityInfo, Unauthorized
from AccessControl import getSecurityManager
from AccessControl.requestmethod import postonly
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/SkinsTool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from AccessControl import ClassSecurityInfo
from App.class_init import InitializeClass
from Products.CMFCore.permissions import ManagePortal
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/TranslationServiceTool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
This tool requires a translation service which supports
the translate method and the default parameter.
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/TypesTool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from AccessControl import ClassSecurityInfo
from App.class_init import InitializeClass

Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/URLTool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from AccessControl import ClassSecurityInfo
from App.class_init import InitializeClass
from plone.registry.interfaces import IRegistry
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/UnicodeSplitter/splitter.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/WorkflowTool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component import getMultiAdapter

from Products.CMFCore.utils import getToolByName
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/__init__.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from App.ImageFile import ImageFile
import os
import sys
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/__init__.py
@@ -1 +1,2 @@
# -*- coding: utf-8 -*-
# browser package
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/admin.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from AccessControl import getSecurityManager
from AccessControl.Permissions import view as View
from OFS.interfaces import IApplication
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/atd.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFCore.utils import getToolByName
from zope.component import getUtility
from plone.registry.interfaces import IRegistry
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/author.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from AccessControl import Unauthorized

from Products.CMFCore.interfaces import IPropertiesTool
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/global_statusmessage.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import implementer

from Products.Five import BrowserView
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/interfaces.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope import schema
from zope.interface import Interface

Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/main_template.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import implementer

from Products.Five import BrowserView
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/sendto.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone import PloneMessageFactory as _
from Products.CMFPlone.interfaces.controlpanel import IMailSchema
from Products.CMFPlone.utils import pretty_title_or_id
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/sitelogo.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone.interfaces import ISiteSchema
from plone.formwidget.namedfile.converter import b64decode_file
from plone.namedfile.browser import Download
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/sitemap.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Acquisition import aq_inner
from zope.component import getMultiAdapter
from zope.interface import implementer
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/syndication/adapters.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component.hooks import getSite
from zope.component import adapts
from zope.interface import implementer
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/syndication/settings.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component import adapts
from zope.interface import implementer
from Products.CMFPlone.interfaces.syndication import IFeedSettings
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/syndication/tool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Acquisition import aq_parent
from AccessControl import Unauthorized

Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/syndication/utils.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zExceptions import NotFound
from Products.Five import BrowserView

Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/browser/syndication/views.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from DateTime import DateTime
from uuid import uuid3
from uuid import NAMESPACE_OID
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/bbb/filter.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone.interfaces import IFilterSchema
from Products.CMFPlone.interfaces import IPloneSiteRoot
from plone.registry.interfaces import IRegistry
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/bbb/mail.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone.interfaces import IPloneSiteRoot
from Products.CMFPlone.interfaces.controlpanel import IMailSchema
from Products.CMFPlone.utils import safe_hasattr
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/bbb/markup.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone.interfaces import IMarkupSchema
from Products.CMFPlone.interfaces.siteroot import IPloneSiteRoot
from plone.registry.interfaces import IRegistry
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/bbb/usergroups.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component import adapts
from zope.component import getUtility
from zope.interface import implementer
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/browser/actions.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from plone.autoform.form import AutoExtensibleForm
from Products.CMFCore.ActionInformation import Action
from Products.CMFCore.interfaces import IAction, IActionCategory
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/browser/imaging.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone import PloneMessageFactory as _
from Products.CMFPlone.interfaces.controlpanel import IImagingSchema
from logging import getLogger
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/browser/mail.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone import PloneMessageFactory as _
from Products.CMFPlone.interfaces.controlpanel import IMailSchema
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/browser/markup.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone import PloneMessageFactory as _
from Products.CMFPlone.interfaces import IMarkupSchema
from plone.app.registry.browser import controlpanel
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/browser/overview.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from AccessControl import getSecurityManager
from Acquisition import aq_inner
from Globals import DevelopmentMode
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/browser/quickinstaller.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone import PloneMessageFactory as _
from Products.CMFPlone.interfaces import INonInstallable
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/browser/security.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Acquisition import aq_inner
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone import PloneMessageFactory as _
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/browser/syndication.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFCore.utils import getToolByName
from zope.i18nmessageid import MessageFactory
from Products.CMFPlone.interfaces.syndication import ISiteSyndicationSettings
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/browser/tinymce.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone import PloneMessageFactory as _
from Products.CMFPlone.interfaces import ITinyMCELayoutSchema
from Products.CMFPlone.interfaces import ITinyMCESpellCheckerSchema
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/browser/usergroups.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFCore.permissions import ManagePortal
from ZTUtils import make_query
from itertools import chain
Expand Down
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Acquisition import aq_inner
from Products.CMFPlone.controlpanel.browser.usergroups import \
UsersGroupsControlPanelView
Expand Down
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone import PloneMessageFactory as _
from zExceptions import Forbidden
from Products.CMFCore.utils import getToolByName
Expand Down
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from itertools import chain
from Acquisition import aq_inner
from Products.CMFPlone.controlpanel.browser.usergroups import \
Expand Down
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone import PloneMessageFactory as _
from zExceptions import Forbidden
from Products.CMFCore.utils import getToolByName
Expand Down
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import logging
from Acquisition import aq_inner
from zExceptions import Forbidden
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/events.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFCore.ActionInformation import Action
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone import PloneMessageFactory as _
Expand Down
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone.interfaces import IEditingSchema
from Products.CMFPlone.testing import PRODUCTS_CMFPLONE_INTEGRATION_TESTING
from plone.app.testing import TEST_USER_ID
Expand Down
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone.interfaces import IMaintenanceSchema
from Products.CMFPlone.testing import PRODUCTS_CMFPLONE_INTEGRATION_TESTING
from plone.app.testing import TEST_USER_ID
Expand Down
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone.testing import \
PRODUCTS_CMFPLONE_INTEGRATION_TESTING
from Products.CMFPlone.interfaces import ISecuritySchema
Expand Down
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from plone.app.testing import setRoles
from Products.CMFPlone.interfaces import IUserGroupsSettingsSchema
from zope.component import getAdapter
Expand Down
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone.interfaces import IDateAndTimeSchema
from Products.CMFPlone.testing import PRODUCTS_CMFPLONE_INTEGRATION_TESTING
from plone.app.testing import TEST_USER_ID
Expand Down
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone.testing import \
PRODUCTS_CMFPLONE_INTEGRATION_TESTING
from Products.CMFCore.utils import getToolByName
Expand Down
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from plone.app.testing import PLONE_INTEGRATION_TESTING
from plone.app.testing import TEST_USER_ID
from plone.app.testing import setRoles
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/utils.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFCore.utils import getToolByName

import logging
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/controlpanel/widgets.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from z3c.form.browser.checkbox import CheckBoxWidget
from z3c.form.interfaces import NO_VALUE
from z3c.form.widget import FieldWidget
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/events.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import implementer
from zope.component import getMultiAdapter
from zope.component.interfaces import ObjectEvent
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/exportimport/__init__.py
@@ -1 +1,2 @@
# -*- coding: utf-8 -*-
"""exportimport package"""
1 change: 1 addition & 0 deletions Products/CMFPlone/exportimport/controlpanel.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2005 Zope Corporation and Contributors. All Rights Reserved.
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/exportimport/memberdata_properties.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""MemberData tool properties setup handlers.

$Id:$
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/exportimport/propertiestool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Plone Properties tool setup handlers.

$Id:$
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/exportimport/tests/__init__.py
@@ -1 +1,2 @@
# -*- coding: utf-8 -*-
"""exportimport tests package"""
1 change: 1 addition & 0 deletions Products/CMFPlone/exportimport/tests/base.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from plone.testing.zca import UNIT_TESTING
from Products.GenericSetup.testing import BodyAdapterTestCase
from Products.GenericSetup.testing import NodeAdapterTestCase
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/exportimport/tests/testControlPanel.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from OFS.Folder import Folder
from Products.CMFPlone.exportimport.tests.base import BodyAdapterTestCase
from Products.CMFPlone.interfaces import IControlPanel
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/exportimport/tests/testPropertiesTool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone.exportimport.tests.base import BodyAdapterTestCase
from Products.CMFPlone.PropertiesTool import PropertiesTool
from Products.CMFPlone.PropertiesTool import SimpleItemWithProperties
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/factory.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFPlone.Portal import PloneSite
from Products.CMFPlone.events import SiteManagerCreatedEvent
from Products.CMFPlone.interfaces import INonInstallable
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/i18nl10n.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
Collection of i18n and l10n utility methods.
"""
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/interfaces/__init__.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# flake8: noqa
from basetool import IPloneBaseTool
from basetool import IPloneCatalogTool
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/interfaces/atd.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import Interface


Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/interfaces/basetool.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import Interface


Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/interfaces/breadcrumbs.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import Interface


Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/interfaces/constrains.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.interface import Interface


Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/interfaces/events.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from zope.component.interfaces import IObjectEvent
from zope.interface import Attribute
from zope.interface import Interface
Expand Down

0 comments on commit aa9b3dd

Please sign in to comment.