source: products/quintagroup.captcha.core/trunk/quintagroup/captcha/core/__init__.py @ 1978

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 
1from zope.i18nmessageid import MessageFactory
2
3from AccessControl import allow_module, ModuleSecurityInfo
4from Products.CMFCore.utils import ToolInit
5
6from quintagroup.captcha.core import config
7from quintagroup.captcha.core import CaptchaTool
8
9ProductMessageFactory = MessageFactory('quintagroup.captcha.core')
10ModuleSecurityInfo('quintagroup.captcha.core').declarePublic("ProductMessageFactory")
11
12allow_module('quintagroup.captcha.core.utils')
13allow_module('quintagroup.captcha.core.config')
14
15def 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.