source: products/qPloneCaptchas/tags/1.3.0/config.py @ 458

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

Building directory structure

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