Last change
on this file since 3659 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
537 bytes
|
Rev | Line | |
---|
[1] | 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 | allow_module('Products.qPloneCaptchas.utils') |
---|
| 7 | allow_module('Products.qPloneCaptchas.config') |
---|
| 8 | |
---|
| 9 | try: |
---|
| 10 | import PIL |
---|
| 11 | config.havePIL = True |
---|
| 12 | except: |
---|
| 13 | config.havePIL = False |
---|
| 14 | |
---|
| 15 | registerDirectory('skins', config.GLOBALS) |
---|
| 16 | tools = (CaptchaTool.CaptchaTool, ) |
---|
| 17 | def initialize(context): |
---|
| 18 | ToolInit("PingTool", tools=tools, icon=config.TOOL_ICON).initialize(context) |
---|
Note: See
TracBrowser
for help on using the repository browser.