From dac73bd39db07e2fc471fb306f62d48d9a7faf9e Mon Sep 17 00:00:00 2001 From: pepperpepperpepper Date: Sat, 5 Dec 2015 17:23:14 -0800 Subject: updated imbreak --- ricky/param/enum.py | 2 +- ricky/param/imageurl.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'ricky/param') diff --git a/ricky/param/enum.py b/ricky/param/enum.py index 3a9fe0e..d4a839a 100644 --- a/ricky/param/enum.py +++ b/ricky/param/enum.py @@ -5,7 +5,7 @@ import decimal class Enum(Param): def __init__(self, options=None, **kwargs): - self._options = set(options) + self._options = tuple(options) if not self._options: raise ValueError("Object must be initialized with options set") super(Enum, self).__init__(**kwargs) diff --git a/ricky/param/imageurl.py b/ricky/param/imageurl.py index 8c26e8f..8b4aff4 100644 --- a/ricky/param/imageurl.py +++ b/ricky/param/imageurl.py @@ -1,7 +1,9 @@ from ricky.config import TEST_URL from ricky.param.string import String + class ImageUrl(String): def __init__(self, *args, **kwargs): - super(ImageUrl, self).__init__(*args, **kwargs) - self.default(TEST_URL) + if 'default' not in kwargs: + kwargs['default'] = TEST_URL + super(ImageUrl, self).__init__(*args, **kwargs) -- cgit v1.2.3-70-g09d2