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

Last change on this file since 2508 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
RevLine 
[821]1from zope.i18nmessageid import MessageFactory
2
[797]3from AccessControl import allow_module, ModuleSecurityInfo
4from Products.CMFCore.utils import ToolInit
5
[1953]6from quintagroup.captcha.core import config
7from quintagroup.captcha.core import CaptchaTool
[797]8
[1953]9ProductMessageFactory = MessageFactory('quintagroup.captcha.core')
10ModuleSecurityInfo('quintagroup.captcha.core').declarePublic("ProductMessageFactory")
[821]11
[1953]12allow_module('quintagroup.captcha.core.utils')
[1978]13allow_module('quintagroup.captcha.core.config')
[821]14
[797]15def initialize(context):
16    ToolInit(meta_type="CaptchaTool",
[821]17             tools=(CaptchaTool.CaptchaTool, ),
[797]18             icon=config.TOOL_ICON,).initialize(context)
Note: See TracBrowser for help on using the repository browser.