|
Revision 665
(checked in by crchemist, 2 years ago)
|
Modified captchas tool installation to be compatible with Plone-2.0.5
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
from Products.CMFCore.DirectoryView import registerDirectory |
|---|
| 2 |
from Products.CMFCore.utils import ToolInit |
|---|
| 3 |
from AccessControl import allow_module |
|---|
| 4 |
import config |
|---|
| 5 |
import CaptchaTool |
|---|
| 6 |
|
|---|
| 7 |
allow_module('Products.qPloneCaptchas.utils') |
|---|
| 8 |
allow_module('Products.qPloneCaptchas.config') |
|---|
| 9 |
registerDirectory('skins', config.GLOBALS) |
|---|
| 10 |
|
|---|
| 11 |
tools = (CaptchaTool.CaptchaTool, ) |
|---|
| 12 |
def initialize(context): |
|---|
| 13 |
ToolInit(meta_type="CaptchaTool", |
|---|
| 14 |
tools=tools, |
|---|
| 15 |
product_name=config.PRODUCT_NAME, |
|---|
| 16 |
icon=config.TOOL_ICON,).initialize(context) |
|---|