Commit dd4a66be authored by Laurent Bachelier's avatar Laurent Bachelier 🐧 Committed by Florent Fourcot

Some missing renames of ICap to Cap

refs #1424
parent 20ffb6ca
......@@ -28,7 +28,7 @@ from webob.dec import wsgify
from webob import exc
from wsgiref.simple_server import make_server
from import ICapVideo
from import CapVideo
from import BaseApplication
......@@ -44,7 +44,7 @@ class VideoobWeb(BaseApplication):
VERSION = '0.j'
COPYRIGHT = 'Copyright(C) 2010-2011 Christophe Benz'
DESCRIPTION = 'WSGI web server application allowing to search for videos on various websites.'
CAPS = ICapVideo
CAPS = CapVideo
CONFIG = dict(host='localhost', port=8080)
......@@ -78,7 +78,7 @@ class VideoobWeb(BaseApplication):
def main(self, argv):
print 'Web server created. Listening on http://%s:%s' % (
self.config.get('host'), int(self.config.get('port')))
srv = make_server(self.config.get('host'), int(self.config.get('port')), self.make_app)
......@@ -12,9 +12,9 @@ Prefer returning objects
Python is an object-oriented language, so when your capability supports entities (for example
:class:`` with the :class:`` capability),
:class:`` with the :class:`` capability),
you have to create a class derived from :class:`weboob.capabilities.base.BaseObject`, and create an unique method
to get it (for example :func:`get_video() <>`), instead of several methods like
to get it (for example :func:`get_video() <>`), instead of several methods like
``get_video_url()``, ``get_video_preview()``, etc.
An object has an unique ID.
......@@ -23,7 +23,7 @@ Capabilities
The core library defines capabilities. They represent features common to various websites.
For example, and are both videos
providers: Weboob defines the ``ICapVideo`` capability.
providers: Weboob defines the ``CapVideo`` capability.
Each backend interfaces a website and implements one or many of these
capabilities. Backends can be configured, which means that the end-user can
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