summaryrefslogtreecommitdiff
path: root/ricky/imbreak/params.py
diff options
context:
space:
mode:
authoryo mama <pepper@scannerjammer.com>2015-10-10 02:54:41 -0700
committeryo mama <pepper@scannerjammer.com>2015-10-10 02:54:41 -0700
commitb02cc8d49513cdcc54f4421e71db3512354d4e2e (patch)
tree2a3a83e1f99a1108eedb703d2cf8ed43613b2c22 /ricky/imbreak/params.py
parent52d85ddcb9c934ec4dc0e890633762bfa2ff51f5 (diff)
renamed options to selections
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 01a46e4..9d8b356 100644
--- a/ricky/imbreak/params.py
+++ b/ricky/imbreak/params.py
@@ -1,7 +1,7 @@
import re, random
from ricky.params import Params
-from ricky.param.option import Option
-from ricky.param.options import Options
+from ricky.param.option import Selection
+from ricky.param.selections import Selections
from ricky.param.username import Username
from ricky.param.imageurl import ImageUrl
from ricky.param.multiselect import MultiSelect
@@ -10,7 +10,7 @@ from ricky.param.color import Color
from ricky.config import PATTERN_BASE_URL
-breaktype_options = Options.from_dict(
+breaktype_selections = Selections.from_dict(
{"value":"CLASSIC", "weight": 1},
{"value":"REDUX", "weight": 1},
{"value":"BLURRY_BREAK", "weight": 1},
@@ -24,22 +24,22 @@ breaktype_options = Options.from_dict(
{"value":"STRIPES", "weight": 1},
{"value":"PHOTOCOPY", "weight": 1},
)
-breakmode_options = Options.from_dict(
+breakmode_selections = Selections.from_dict(
{"value":"extreme", "weight": 1},
{"value":"subtle", "weight": 1},
)
-finalformat_options = Options.from_dict(
+finalformat_selections = Selections.from_dict(
{"value":"png", "weight": 5},
{"value":"jpg", "weight": 2},
{"value":"gif", "weight": 2},
)
-breakangle_options = Options.from_dict(
+breakangle_selections = Selections.from_dict(
{"value":0, "weight": 9},
{"value":90, "weight": 2},
{"value":-180, "weight": 2},
{"value":180, "weight": 2},
)
-expanded_options = Options.from_dict(
+expanded_selections = Selections.from_dict(
{"value": "" , "weight": 11 },
{"value": 1, "weight": 2}
)
@@ -49,9 +49,9 @@ class ImBreakParams(Params):
self._params = [
Username(name="username", required=0),
ImageUrl(name="url", required=1),
- MultiSelect(name="finalformat", required=0, options=finalformat_options),
- MultiSelect(name="breaktype", required=1, options=breaktype_options),
- NumberRange(name="breakangle", required=0, options=breakangle_options, min=-180, max=180),
- MultiSelect(name="breakmode", required=1, options=breakmode_options),
- MultiSelect(name="expanded", required=0, options=expanded_options),
+ MultiSelect(name="finalformat", required=0, selections=finalformat_selections),
+ MultiSelect(name="breaktype", required=1, selections=breaktype_selections),
+ NumberRange(name="breakangle", required=0, selections=breakangle_selections, min=-180, max=180),
+ MultiSelect(name="breakmode", required=1, selections=breakmode_selections),
+ MultiSelect(name="expanded", required=0, selections=expanded_selections),
]