Last change
on this file since 3128 was
3128,
checked in by vmaksymiv, 13 years ago
|
pep8 fixes
|
File size:
663 bytes
|
Line | |
---|
1 | from zope.i18nmessageid import MessageFactory |
---|
2 | |
---|
3 | from AccessControl import allow_module, ModuleSecurityInfo |
---|
4 | from Products.CMFCore.utils import ToolInit |
---|
5 | |
---|
6 | from quintagroup.captcha.core import config |
---|
7 | from quintagroup.captcha.core import CaptchaTool |
---|
8 | |
---|
9 | product = 'quintagroup.captcha.core' |
---|
10 | ProductMessageFactory = MessageFactory(product) |
---|
11 | ModuleSecurityInfo(product).declarePublic("ProductMessageFactory") |
---|
12 | |
---|
13 | allow_module('quintagroup.captcha.core.utils') |
---|
14 | allow_module('quintagroup.captcha.core.config') |
---|
15 | |
---|
16 | |
---|
17 | def initialize(context): |
---|
18 | ToolInit(meta_type="CaptchaTool", |
---|
19 | tools=(CaptchaTool.CaptchaTool, ), |
---|
20 | icon=config.TOOL_ICON,).initialize(context) |
---|
Note: See
TracBrowser
for help on using the repository browser.