summaryrefslogtreecommitdiff
path: root/ricky/impattern/params.py
diff options
context:
space:
mode:
authorpepperpepperpepper <pepper@scannerjammer.com>2015-12-06 17:30:20 -0800
committerpepperpepperpepper <pepper@scannerjammer.com>2015-12-06 17:30:20 -0800
commit8ebd9d7eb7b3289a722cdae6a4bdcdd4cd21ff86 (patch)
treeed19bc96ee19653c09ef1d29df9c1cc9ef9e5d49 /ricky/impattern/params.py
parent86f6c859270a37d600292a7bc7c99dc7f8fa70f8 (diff)
cleaned up names
Diffstat (limited to 'ricky/impattern/params.py')
-rw-r--r--ricky/impattern/params.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/ricky/impattern/params.py b/ricky/impattern/params.py
deleted file mode 100644
index 20f64d0..0000000
--- a/ricky/impattern/params.py
+++ /dev/null
@@ -1,24 +0,0 @@
-from ricky.params import Params as _Params
-from ricky.param.username import Username
-from ricky.param.imageurl import ImageUrl
-from ricky.param.enum import Enum
-from ricky.config import PATTERN_URL_BASE
-
-
-class Params(_Params):
- def __init__(self):
- self._params = (
- Username(name="username", required=False),
- ImageUrl(name="image_url", required=True),
- Enum(
- name="pattern_url",
- required=True,
- options=self._get_pattern_urls()
- )
- )
-
- def _get_pattern_urls(self):
- return set(
- ["%s/img/%s.png" % (PATTERN_URL_BASE, i) for i in xrange(0, 97)] +
- ["%s/img/a%s.png" % (PATTERN_URL_BASE, i) for i in xrange(1, 42)]
- )