source: products/qPloneCaptchas/tags/1.2.1/config.py @ 2284

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

Building directory structure

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