root/plesonet_captcha/trunk/util.py
| Revision 35, 429 bytes (checked in by 235, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | # -*- coding:UTF-8 -*- |
| 2 | # Copyright (c) 2007 Brandon Low |
| 3 | # Licensed under the GPL v2 |
| 4 | #from settings import ALLOWED_CHARACTERS |
| 5 | #import random |
| 6 | |
| 7 | from plesonet_captcha.generator.Words import WordList |
| 8 | from settings import MIN_LENGTH, MAX_LENGTH |
| 9 | |
| 10 | # врахувати довжину потім |
| 11 | def get_string(): |
| 12 | return defaultWordList.pick() |
| 13 | |
| 14 | defaultWordList = WordList("basic-english", minLength=MIN_LENGTH, max_length=MAX_LENGTH) |
Note: See TracBrowser
for help on using the browser.

