source: products/qPloneCaptchas/tags/1.1.0/config.py

Last change on this file was 1, checked in by myroslav, 18 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1GLOBALS = globals()
2PRODUCT_NAME = 'qPloneCaptchas'
3CAPTCHAS_COUNT = 165
4LAYERS = ['captchas', 'plone_captchas']
5LAYER_DISCUSSION = 'captchas_discussion'
6LAYER_FORMMAILER = 'captchas_ploneformmailer'
7LAYER_DYNAMIC_CAPTCHAS = 'plone_captchas/dynamic'
8LAYER_STATIC_CAPTCHAS = 'plone_captchas/static'
9ALL_LAYERS = LAYERS + [LAYER_DISCUSSION, LAYER_FORMMAILER, LAYER_STATIC_CAPTCHAS, LAYER_DYNAMIC_CAPTCHAS]
10TOOL_ICON = 'tool.gif'
11TOOL_ID = 'portal_captchas'
12CONFIGLET_ID = "prefs_captchas_setup_form"
13CONFIGLET_NAME = "qPloneCaptchas setup"
14
15DEFAULT_IMAGE_SIZE = 27
16DEFAULT_BG = 'gray'
17DEFAULT_FONT_COLOR = 'black'
18DEFAULT_PERIOD = 0.1
19DEFAULT_AMPLITUDE = 5
20DEFAULT_OFFSET = (0.5, 0.5)
21DEFAULT_DISTORTION = [DEFAULT_PERIOD, DEFAULT_AMPLITUDE, DEFAULT_OFFSET]
22
23PROPERTIES = (('image_size', DEFAULT_IMAGE_SIZE, 'int'),
24              ('background', DEFAULT_BG, 'string'),
25              ('font_color', DEFAULT_FONT_COLOR, 'string'),
26              ('period', DEFAULT_PERIOD, 'float'),
27              ('amplitude', DEFAULT_AMPLITUDE, 'float'),
28              ('random_params', True, 'boolean'))
29
30try:
31    import PIL
32    havePIL = True
33except:
34    havePIL = False
Note: See TracBrowser for help on using the repository browser.