many pep8 improvements
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#########################################################################
|
||||
from gluon import current
|
||||
|
||||
|
||||
class RESIZE(object):
|
||||
def __init__(self, nx=160, ny=80, error_message=' image resize'):
|
||||
(self.nx, self.ny, self.error_message) = (nx, ny, error_message)
|
||||
@@ -43,6 +44,7 @@ class RESIZE(object):
|
||||
else:
|
||||
return (value, None)
|
||||
|
||||
|
||||
def THUMB(image, nx=120, ny=120, gae=False, name='thumb'):
|
||||
if image:
|
||||
if not gae:
|
||||
|
||||
Reference in New Issue
Block a user