MediaWiki REL1_31
captcha.py File Reference

Go to the source code of this file.

Namespaces

namespace  captcha
 

Functions

 captcha.gen_captcha (text, fontname, fontsize, file_name)
 
 captcha.gen_subdir (basedir, md5hash, levels)
 
 captcha.pick_word (words, blacklist, verbose, nwords, min_length, max_length)
 
 captcha.read_wordlist (filename)
 
 captcha.run_in_thread (object)
 
 captcha.try_pick_word (words, blacklist, verbose, nwords, min_length, max_length)
 
 captcha.wobbly_copy (src, wob, col, scale, ang)
 

Variables

 captcha.action
 
 captcha.args
 
 captcha.blacklist = read_wordlist(opts.blacklist)
 
int captcha.chunks = 1
 
 captcha.count = opts.count
 
list captcha.data = []
 
 captcha.default
 
 captcha.dirs = opts.dirs
 
 captcha.fill = opts.fill
 
 captcha.font = opts.font
 
 captcha.fontsize = opts.font_size
 
 captcha.help
 
 captcha.key = opts.key
 
 captcha.metavar
 
 captcha.nonalpha = re.compile('[^a-z]')
 
 captcha.opts
 
 captcha.output = opts.output
 
 captcha.p = multiprocessing.Pool(threads);
 
 captcha.parser = OptionParser()
 
 captcha.script_dir = os.path.dirname(os.path.realpath(__file__))
 
 captcha.threads = opts.threads
 
 captcha.type
 
 captcha.verbose = opts.verbose
 
 captcha.wordlist = opts.wordlist
 
 captcha.words = None