Commit 048dc2a9 authored by Vincent A's avatar Vincent A inherits _BaseImage instead of BaseObject

parent ebf51a0a
......@@ -17,22 +17,22 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <>.
from weboob.capabilities.base import BaseObject, NotLoaded, StringField, BytesField
from weboob.capabilities.base import NotLoaded, BytesField
from weboob.capabilities.image import _BaseImage
__all__ = ['Thumbnail']
class Thumbnail(BaseObject):
class Thumbnail(_BaseImage):
Thumbnail of an image.
url = StringField('URL to photo thumbnail')
data = BytesField('Data')
data = BytesField('Data')
def __init__(self, url):
BaseObject.__init__(self, url)
super(Thumbnail, self).__init__(url)
self.url = url.replace(u' ', u'%20')
def __str__(self):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment