Last change
on this file since 1978 was
1978,
checked in by mylan, 14 years ago
|
#172: update security setting for config module for use constants in templates
|
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 | ProductMessageFactory = MessageFactory('quintagroup.captcha.core') |
---|
10 | ModuleSecurityInfo('quintagroup.captcha.core').declarePublic("ProductMessageFactory") |
---|
11 | |
---|
12 | allow_module('quintagroup.captcha.core.utils') |
---|
13 | allow_module('quintagroup.captcha.core.config') |
---|
14 | |
---|
15 | def initialize(context): |
---|
16 | ToolInit(meta_type="CaptchaTool", |
---|
17 | tools=(CaptchaTool.CaptchaTool, ), |
---|
18 | icon=config.TOOL_ICON,).initialize(context) |
---|
Note: See
TracBrowser
for help on using the repository browser.