Skip to content

Commit

Permalink
Moved imports to top of file
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed May 31, 2017
1 parent 1c6e63b commit 7a87ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collective/portlet/embed/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from Products.CMFCore.permissions import setDefaultRoles
from zope.i18nmessageid import MessageFactory
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)

from zope.i18nmessageid import MessageFactory
messageFactory = MessageFactory('collective.portlet.embed')

from Products.CMFCore.permissions import setDefaultRoles
setDefaultRoles('collective.portlet.embed: Add embed portlet',
('Manager', 'Site Administrator', 'Owner',))

0 comments on commit 7a87ca0

Please sign in to comment.