summaryrefslogtreecommitdiff
path: root/ricky/imbreak/params.py
diff options
context:
space:
mode:
authorpepperpepperpepper <pepper@scannerjammer.com>2015-12-03 18:30:20 -0800
committerpepperpepperpepper <pepper@scannerjammer.com>2015-12-03 18:30:20 -0800
commit74dc301ff9ca7b74541b44f99e42d06bd22d59be (patch)
treeeb9d096587df3392575d896e52d27c45610920d7 /ricky/imbreak/params.py
parentc0083b4cbe1c685c61bff5dc612dc9df1bff9619 (diff)
fixed up syntax a bit
Diffstat (limited to 'ricky/imbreak/params.py')
-rw-r--r--ricky/imbreak/params.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/ricky/imbreak/params.py b/ricky/imbreak/params.py
index 3df42ec..9ceb89c 100644
--- a/ricky/imbreak/params.py
+++ b/ricky/imbreak/params.py
@@ -1,12 +1,12 @@
from ricky.params import Params
from ricky.param.username import Username
from ricky.param.imageurl import ImageUrl
-from ricky.param.multiselect import MultiSelect
+from ricky.param.enum import Enum
from ricky.param.constrainednumber import ConstrainedNumber
from ricky.param.bool import Bool
-breaktype_options = [
+_BREAKTYPE_OPTIONS = [
"CLASSIC",
"REDUX",
"BLURRY_BREAK",
@@ -20,11 +20,11 @@ breaktype_options = [
"STRIPES",
"PHOTOCOPY"
]
-breakmode_options = [
+_BREAKMODE_OPTIONS = [
"extreme",
"subtle",
]
-finalformat_options = [
+_FINALFORMAT_OPTIONS = [
"png",
"jpg",
"gif",
@@ -33,25 +33,25 @@ finalformat_options = [
class ImBreakParams(Params):
def __init__(self):
- self._params = [
+ self._params = (
Username(name="username", required=False),
ImageUrl(name="url", required=True),
- MultiSelect(
+ Enum(
name="finalformat",
required=False,
- options=finalformat_options),
- MultiSelect(
+ options=_FINALFORMAT_OPTIONS),
+ Enum(
name="breaktype",
required=True,
- options=breaktype_options),
+ options=_BREAKTYPE_OPTIONS),
ConstrainedNumber(
name="breakangle",
required=False,
min=-180,
max=180),
- MultiSelect(
+ Enum(
name="breakmode",
required=True,
- options=breakmode_options),
+ options=_BREAKMODE_OPTIONS),
Bool(name="expanded", required=False)
- ]
+ )