From 6c3c36e2e3670a3fc3b84f051558eb77ba6ff373 Mon Sep 17 00:00:00 2001 From: pepperpepperpepper Date: Tue, 8 Dec 2015 15:51:26 -0800 Subject: removed api class, simplified source tree --- ricky/pbbreaker/params.py | 59 ----------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 ricky/pbbreaker/params.py (limited to 'ricky/pbbreaker/params.py') diff --git a/ricky/pbbreaker/params.py b/ricky/pbbreaker/params.py deleted file mode 100644 index e8438b1..0000000 --- a/ricky/pbbreaker/params.py +++ /dev/null @@ -1,59 +0,0 @@ -from ricky.params import Params as _Params -from ricky.param.username import Username -from ricky.param.imageurl import PbageUrl -from ricky.param.enum import Enum -from ricky.param.constrainednumber import ConstrainedNumber -from ricky.param.bool import Bool -from ricky.config import PBBREAKER_URL - -_BREAKTYPE_OPTIONS = [ - "CLASSIC", - "REDUX", - "BLURRY_BREAK", - "BLURRY_BREAK_2", - "SWIPE", - "RGB_WASH", - "RGB_WASH_2", - "NOISY_BREAK", - "BROKEN_VIGNETTE", - "FAX_MACHINE", - "STRIPES", - "PHOTOCOPY" -] -_BREAKMODE_OPTIONS = [ - "extreme", - "subtle", -] -_FINALFORMAT_OPTIONS = [ - "png", - "jpg", - "gif", -] - - -class Params(_Params): - def __init__(self): - super(Params, self).__init__( - Username(name="username", required=False), - PbageUrl(name="url", required=True), - Enum( - name="finalformat", - required=False, - options=_FINALFORMAT_OPTIONS), - Enum( - name="breaktype", - required=True, - options=_BREAKTYPE_OPTIONS), - ConstrainedNumber( - name="breakangle", - required=False, - enforce_int=True, - min=-180, - max=180), - Enum( - name="breakmode", - required=True, - options=_BREAKMODE_OPTIONS), - Bool(name="expanded", required=False) - ) - self._url = PBBREAKER_URL -- cgit v1.2.3-70-g09d2