Skip to content

Commit

Permalink
fixed package initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Apr 11, 2012
1 parent 353fce2 commit b9b60bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
7 changes: 2 additions & 5 deletions src/collective/twitter/accounts/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# -*- extra stuff goes here -*-
# -*- coding: utf-8 -*-

# Import PloneMessageFactory to create messages in the plone domain
from zope.i18nmessageid import MessageFactory
MessageFactory = MessageFactory('collective.twitter.accounts')

def initialize(context):
"""Initializer called when used as a Zope 2 product."""
MessageFactory = MessageFactory('collective.twitter.accounts')
10 changes: 3 additions & 7 deletions src/collective/twitter/accounts/configure.zcml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<configure
xmlns="http://namespaces.zope.org/zope"
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five"
xmlns:i18n="http://namespaces.zope.org/i18n"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
i18n_domain="collective.twitter.accounts">

<include package="plone.app.registry" />

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

<five:registerPackage package="." />
<includeDependencies package="." />
<i18n:registerTranslations directory="locales" />

<include package=".browser" />
Expand Down Expand Up @@ -36,6 +33,5 @@
description="Uninstall profile for the collective.twitter.accounts package"
provides="Products.GenericSetup.interfaces.EXTENSION"
/>
<!-- -*- extra stuff goes here -*- -->

</configure>

0 comments on commit b9b60bb

Please sign in to comment.