Line | |
---|
1 | """Main product initializer |
---|
2 | """ |
---|
3 | |
---|
4 | from zope.i18nmessageid import MessageFactory |
---|
5 | |
---|
6 | # Define a message factory for when this product is internationalised. |
---|
7 | # This will be imported with the special name "_" in most modules. Strings |
---|
8 | # like _(u"message") will then be extracted by i18n tools for translation. |
---|
9 | |
---|
10 | GLOBALS = globals() |
---|
11 | |
---|
12 | ${package}MessageFactory = MessageFactory('${namespace_package}.${namespace_package2}.${package}') |
---|
13 | #if str($zope2product) == 'True' |
---|
14 | |
---|
15 | def initialize(context): |
---|
16 | """Initializer called when used as a Zope 2 product. |
---|
17 | |
---|
18 | This is referenced from configure.zcml. Regstrations as a "Zope 2 product" |
---|
19 | is necessary for GenericSetup profiles to work, for example. |
---|
20 | """ |
---|
21 | |
---|
22 | #end if |
---|
Note: See
TracBrowser
for help on using the repository browser.