# HG changeset patch # User Tero Marttila # Date 1241550829 -10800 # Node ID 0187eddad3ebc31ca1e1a716d8f272f17412ea65 # Parent 17e1136cc2571921bf6d31693eb3db2027b0be51 fix img_* -> img-* diff -r 17e1136cc257 -r 0187eddad3eb index.py --- a/index.py Tue May 05 22:07:51 2009 +0300 +++ b/index.py Tue May 05 22:13:49 2009 +0300 @@ -460,8 +460,8 @@ Option('sharpness', False, FloatOption(), Defaults.sharpness, None), Option('image-format', False, StringOption(), Defaults.img_format, IMAGE_FORMATS.keys()), Option('seed', False, IntOption(), None, None), - Option('img_width', False, IntOption(), None, None), - Option('img_height', False, IntOption(), None, None), + Option('img-width', False, IntOption(), None, None), + Option('img-height', False, IntOption(), None, None), ) def handle_generic (req, img_size=None) : @@ -478,10 +478,10 @@ if opts['seed'] is None : opts['seed'] = time.time() - if opts['img_width'] and opts['img_height'] : - img_size = (opts['img_width'], opts['img_height']) + if opts['img-width'] and opts['img-height'] : + img_size = (opts['img-width'], opts['img-height']) - if opts['img_width'] > IMG_SIZE_MAX or opts['img_height'] > IMG_SIZE_MAX : + if opts['img-width'] > IMG_SIZE_MAX or opts['img-height'] > IMG_SIZE_MAX : raise ValueError(img_size) # load/prep resources