Permalink
Browse files

fixed package initialization

  • Loading branch information...
1 parent 353fce2 commit b9b60bb1e80f1e7174a2ca97e0e45b6a796573af @hvelarde hvelarde committed Apr 11, 2012
Showing with 5 additions and 12 deletions.
  1. +2 −5 src/collective/twitter/accounts/__init__.py
  2. +3 −7 src/collective/twitter/accounts/configure.zcml
@@ -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')
@@ -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" />
@@ -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.