rename ICap to Cap (closes #1424)
This commit is contained in:
parent
51958135cb
commit
e025fb0b20
244 changed files with 679 additions and 679 deletions
|
|
@ -21,7 +21,7 @@
|
|||
from .base import IBaseCap, BaseObject, StringField, Field, UserError
|
||||
|
||||
|
||||
__all__ = ['AccountRegisterError', 'Account', 'StatusField', 'ICapAccount']
|
||||
__all__ = ['AccountRegisterError', 'Account', 'StatusField', 'CapAccount']
|
||||
|
||||
|
||||
class AccountRegisterError(UserError):
|
||||
|
|
@ -56,7 +56,7 @@ class StatusField(object):
|
|||
self.flags = flags
|
||||
|
||||
|
||||
class ICapAccount(IBaseCap):
|
||||
class CapAccount(IBaseCap):
|
||||
"""
|
||||
Capability for websites when you can create and manage accounts.
|
||||
|
||||
|
|
|
|||
|
|
@ -23,10 +23,10 @@ from datetime import timedelta
|
|||
|
||||
from .image import BaseImage
|
||||
from .base import Field, StringField, IntField, BaseObject
|
||||
from .file import ICapFile, BaseFile
|
||||
from .file import CapFile, BaseFile
|
||||
|
||||
|
||||
__all__ = ['BaseAudio', 'ICapAudio']
|
||||
__all__ = ['BaseAudio', 'CapAudio']
|
||||
|
||||
|
||||
def decode_id(decode_id):
|
||||
|
|
@ -106,7 +106,7 @@ class BaseAudio(BaseFile):
|
|||
return _id
|
||||
|
||||
|
||||
class ICapAudio(ICapFile):
|
||||
class CapAudio(CapFile):
|
||||
"""
|
||||
Audio file provider
|
||||
"""
|
||||
|
|
@ -124,7 +124,7 @@ class ICapAudio(ICapFile):
|
|||
else:
|
||||
return 'get_audio'
|
||||
|
||||
def search_audio(self, pattern, sortby=ICapFile.SEARCH_RELEVANCE):
|
||||
def search_audio(self, pattern, sortby=CapFile.SEARCH_RELEVANCE):
|
||||
"""
|
||||
search for a audio file
|
||||
|
||||
|
|
@ -135,7 +135,7 @@ class ICapAudio(ICapFile):
|
|||
"""
|
||||
return self.search_file(pattern, sortby)
|
||||
|
||||
def search_album(self, pattern, sortby=ICapFile.SEARCH_RELEVANCE):
|
||||
def search_album(self, pattern, sortby=CapFile.SEARCH_RELEVANCE):
|
||||
"""
|
||||
search for an album
|
||||
:param pattern: pattern to search on
|
||||
|
|
@ -144,7 +144,7 @@ class ICapAudio(ICapFile):
|
|||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def search_playlist(self, pattern, sortby=ICapFile.SEARCH_RELEVANCE):
|
||||
def search_playlist(self, pattern, sortby=CapFile.SEARCH_RELEVANCE):
|
||||
"""
|
||||
search for an album
|
||||
:param pattern: pattern to search on
|
||||
|
|
|
|||
|
|
@ -20,11 +20,11 @@
|
|||
|
||||
from weboob.tools.capabilities.streaminfo import StreamInfo
|
||||
from .base import Field
|
||||
from .file import ICapFile
|
||||
from .audio import ICapAudio, BaseAudio
|
||||
from .file import CapFile
|
||||
from .audio import CapAudio, BaseAudio
|
||||
|
||||
|
||||
__all__ = ['BaseAudioStream', 'ICapAudioStream']
|
||||
__all__ = ['BaseAudioStream', 'CapAudioStream']
|
||||
|
||||
|
||||
class BaseAudioStream(BaseAudio):
|
||||
|
|
@ -40,11 +40,11 @@ class BaseAudioStream(BaseAudio):
|
|||
return self.__unicode__()
|
||||
|
||||
|
||||
class ICapAudioStream(ICapAudio):
|
||||
class CapAudioStream(CapAudio):
|
||||
"""
|
||||
Audio streams provider
|
||||
"""
|
||||
def search_audiostreams(self, pattern, sortby=ICapFile.SEARCH_RELEVANCE):
|
||||
def search_audiostreams(self, pattern, sortby=CapFile.SEARCH_RELEVANCE):
|
||||
"""
|
||||
Search an audio stream
|
||||
|
||||
|
|
|
|||
|
|
@ -25,10 +25,10 @@ import re
|
|||
from weboob.tools.compat import basestring, long
|
||||
|
||||
from .base import BaseObject, Field, StringField, DateField, DecimalField, IntField, UserError, Currency
|
||||
from .collection import ICapCollection
|
||||
from .collection import CapCollection
|
||||
|
||||
|
||||
__all__ = ['AccountNotFound', 'TransferError', 'Recipient', 'Account', 'Transaction', 'Investment', 'Transfer', 'ICapBank']
|
||||
__all__ = ['AccountNotFound', 'TransferError', 'Recipient', 'Account', 'Transaction', 'Investment', 'Transfer', 'CapBank']
|
||||
|
||||
|
||||
class AccountNotFound(UserError):
|
||||
|
|
@ -157,7 +157,7 @@ class Transfer(BaseObject):
|
|||
reason = StringField('Reason')
|
||||
|
||||
|
||||
class ICapBank(ICapCollection):
|
||||
class CapBank(CapCollection):
|
||||
"""
|
||||
Capability of bank websites to see accounts and transactions.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@
|
|||
|
||||
|
||||
from .base import BaseObject, StringField, DateField, DecimalField, UserError
|
||||
from .collection import ICapCollection
|
||||
from .collection import CapCollection
|
||||
|
||||
|
||||
__all__ = ['SubscriptionNotFound', 'BillNotFound', 'Detail', 'Bill', 'Subscription', 'ICapBill']
|
||||
__all__ = ['SubscriptionNotFound', 'BillNotFound', 'Detail', 'Bill', 'Subscription', 'CapBill']
|
||||
|
||||
|
||||
class SubscriptionNotFound(UserError):
|
||||
|
|
@ -86,7 +86,7 @@ class Subscription(BaseObject):
|
|||
renewdate = DateField('Reset date of consumption')
|
||||
|
||||
|
||||
class ICapBill(ICapCollection):
|
||||
class CapBill(CapCollection):
|
||||
def iter_resources(self, objs, split_path):
|
||||
"""
|
||||
Iter resources. Will return :func:`iter_subscriptions`.
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ from .base import IBaseCap, BaseObject, Field, StringField, DateField, \
|
|||
|
||||
|
||||
__all__ = ['IssueError', 'Project', 'User', 'Version', 'Status', 'Attachment',
|
||||
'Change', 'Update', 'Issue', 'Query', 'ICapBugTracker']
|
||||
'Change', 'Update', 'Issue', 'Query', 'CapBugTracker']
|
||||
|
||||
|
||||
class IssueError(UserError):
|
||||
|
|
@ -231,7 +231,7 @@ class Query(BaseObject):
|
|||
BaseObject.__init__(self, '')
|
||||
|
||||
|
||||
class ICapBugTracker(IBaseCap):
|
||||
class CapBugTracker(IBaseCap):
|
||||
"""
|
||||
Bug trackers websites.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -18,12 +18,12 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from .base import BaseObject, StringField, DateField, IntField, FloatField, Field
|
||||
from .collection import ICapCollection, CollectionNotFound, Collection
|
||||
from .collection import CapCollection, CollectionNotFound, Collection
|
||||
|
||||
from datetime import time, datetime
|
||||
from weboob.tools.date import parse_date
|
||||
|
||||
__all__ = ['BaseCalendarEvent', 'ICapCalendarEvent']
|
||||
__all__ = ['BaseCalendarEvent', 'CapCalendarEvent']
|
||||
|
||||
|
||||
def enum(**enums):
|
||||
|
|
@ -102,7 +102,7 @@ class Query(BaseObject):
|
|||
self.categories.append(value)
|
||||
|
||||
|
||||
class ICapCalendarEvent(ICapCollection):
|
||||
class CapCalendarEvent(CapCollection):
|
||||
"""
|
||||
Capability of calendar event type sites
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import datetime
|
|||
from .base import IBaseCap, BaseObject, StringField, DateField, UserError
|
||||
|
||||
|
||||
__all__ = ['ChatException', 'ChatMessage', 'ICapChat']
|
||||
__all__ = ['ChatException', 'ChatMessage', 'CapChat']
|
||||
|
||||
|
||||
class ChatException(UserError):
|
||||
|
|
@ -52,7 +52,7 @@ class ChatMessage(BaseObject):
|
|||
self.date = datetime.datetime.utcnow()
|
||||
|
||||
|
||||
class ICapChat(IBaseCap):
|
||||
class CapChat(IBaseCap):
|
||||
"""
|
||||
Websites with a chat system.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
from .base import IBaseCap, BaseObject, DateField, StringField, IntField, Field
|
||||
|
||||
|
||||
__all__ = ['Movie', 'Person', 'ICapCinema']
|
||||
__all__ = ['Movie', 'Person', 'CapCinema']
|
||||
|
||||
|
||||
class Movie(BaseObject):
|
||||
|
|
@ -68,7 +68,7 @@ class Person(BaseObject):
|
|||
self.name = name
|
||||
|
||||
|
||||
class ICapCinema(IBaseCap):
|
||||
class CapCinema(IBaseCap):
|
||||
"""
|
||||
Cinema databases.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ from weboob.tools.ordereddict import OrderedDict
|
|||
from .base import IBaseCap, BaseObject, UserError, StringField, Field
|
||||
|
||||
|
||||
__all__ = ['ICapCollection', 'BaseCollection', 'Collection', 'CollectionNotFound']
|
||||
__all__ = ['CapCollection', 'BaseCollection', 'Collection', 'CollectionNotFound']
|
||||
|
||||
|
||||
class CollectionNotFound(UserError):
|
||||
|
|
@ -95,7 +95,7 @@ class Collection(BaseCollection):
|
|||
return u'Unknown collection'
|
||||
|
||||
|
||||
class ICapCollection(IBaseCap):
|
||||
class CapCollection(IBaseCap):
|
||||
def iter_resources_flat(self, objs, split_path, clean_only=False):
|
||||
"""
|
||||
Call iter_resources() to fetch all resources in the tree.
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ from .base import IBaseCap, BaseObject, Field, StringField, BytesField, IntField
|
|||
from weboob.tools.ordereddict import OrderedDict
|
||||
|
||||
|
||||
__all__ = ['ProfileNode', 'ContactPhoto', 'Contact', 'QueryError', 'Query', 'ICapContact']
|
||||
__all__ = ['ProfileNode', 'ContactPhoto', 'Contact', 'QueryError', 'Query', 'CapContact']
|
||||
|
||||
|
||||
class ProfileNode(object):
|
||||
|
|
@ -165,7 +165,7 @@ class Query(BaseObject):
|
|||
self.message = message
|
||||
|
||||
|
||||
class ICapContact(IBaseCap):
|
||||
class CapContact(IBaseCap):
|
||||
def iter_contacts(self, status=Contact.STATUS_ALL, ids=None):
|
||||
"""
|
||||
Iter contacts
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
from .base import IBaseCap, BaseObject, StringField, DateField, Field
|
||||
|
||||
|
||||
__all__ = ['Content', 'Revision', 'ICapContent']
|
||||
__all__ = ['Content', 'Revision', 'CapContent']
|
||||
|
||||
|
||||
class Content(BaseObject):
|
||||
|
|
@ -44,7 +44,7 @@ class Revision(BaseObject):
|
|||
minor = Field('Is this change minor?', bool)
|
||||
|
||||
|
||||
class ICapContent(IBaseCap):
|
||||
class CapContent(IBaseCap):
|
||||
def get_content(self, id, revision=None):
|
||||
"""
|
||||
Get a content from an ID.
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ from .base import IBaseCap, BaseObject, Field, StringField, DateField, UserError
|
|||
from .contact import Contact
|
||||
|
||||
|
||||
__all__ = ['OptimizationNotFound', 'Optimization', 'Event', 'ICapDating']
|
||||
__all__ = ['OptimizationNotFound', 'Optimization', 'Event', 'CapDating']
|
||||
|
||||
|
||||
class OptimizationNotFound(UserError):
|
||||
|
|
@ -89,7 +89,7 @@ class Event(BaseObject):
|
|||
message = StringField('Message of the event')
|
||||
|
||||
|
||||
class ICapDating(IBaseCap):
|
||||
class CapDating(IBaseCap):
|
||||
"""
|
||||
Capability for dating websites.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
from .base import IBaseCap, BaseObject, NotAvailable, Field, StringField, DateField
|
||||
|
||||
|
||||
__all__ = ['BaseFile', 'ICapFile']
|
||||
__all__ = ['BaseFile', 'CapFile']
|
||||
|
||||
|
||||
class BaseFile(BaseObject):
|
||||
|
|
@ -59,7 +59,7 @@ class BaseFile(BaseObject):
|
|||
return self.id2url(self.id)
|
||||
|
||||
|
||||
class ICapFile(IBaseCap):
|
||||
class CapFile(IBaseCap):
|
||||
"""
|
||||
Provide file download
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ from weboob.tools.capabilities.thumbnail import Thumbnail
|
|||
from .base import IBaseCap, BaseObject, NotLoaded, Field, StringField, \
|
||||
BytesField, IntField, FloatField, DateField
|
||||
|
||||
__all__ = ['BaseGallery', 'BaseImage', 'ICapGallery']
|
||||
__all__ = ['BaseGallery', 'BaseImage', 'CapGallery']
|
||||
|
||||
|
||||
class BaseGallery(BaseObject):
|
||||
|
|
@ -102,7 +102,7 @@ class BaseImage(BaseObject):
|
|||
return self.data is not NotLoaded
|
||||
|
||||
|
||||
class ICapGallery(IBaseCap):
|
||||
class CapGallery(IBaseCap):
|
||||
"""
|
||||
This capability represents the ability for a website backend to provide videos.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
from .base import IBaseCap, BaseObject, StringField, FloatField, DateField, Field, UserError, empty
|
||||
|
||||
__all__ = ['Gauge', 'GaugeSensor', 'GaugeMeasure', 'ICapGauge', 'SensorNotFound']
|
||||
__all__ = ['Gauge', 'GaugeSensor', 'GaugeMeasure', 'CapGauge', 'SensorNotFound']
|
||||
|
||||
|
||||
class SensorNotFound(UserError):
|
||||
|
|
@ -73,7 +73,7 @@ class GaugeSensor(BaseObject):
|
|||
return "<GaugeSensor id=%s name=%s>" % (self.id, self.name)
|
||||
|
||||
|
||||
class ICapGauge(IBaseCap):
|
||||
class CapGauge(IBaseCap):
|
||||
def iter_gauges(self, pattern=None):
|
||||
"""
|
||||
Iter gauges.
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
from .base import IBaseCap, BaseObject, StringField, FloatField
|
||||
|
||||
|
||||
__all__ = ['IpLocation', 'ICapGeolocIp']
|
||||
__all__ = ['IpLocation', 'CapGeolocIp']
|
||||
|
||||
|
||||
class IpLocation(BaseObject):
|
||||
|
|
@ -42,7 +42,7 @@ class IpLocation(BaseObject):
|
|||
BaseObject.__init__(self, ipaddr)
|
||||
|
||||
|
||||
class ICapGeolocIp(IBaseCap):
|
||||
class CapGeolocIp(IBaseCap):
|
||||
"""
|
||||
Access information about IP addresses database.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ from .base import IBaseCap, BaseObject, Field, IntField, DecimalField, \
|
|||
StringField, BytesField, DateField
|
||||
|
||||
|
||||
__all__ = ['HousingPhoto', 'Housing', 'Query', 'City', 'ICapHousing']
|
||||
__all__ = ['HousingPhoto', 'Housing', 'Query', 'City', 'CapHousing']
|
||||
|
||||
|
||||
class HousingPhoto(BaseObject):
|
||||
|
|
@ -89,7 +89,7 @@ class City(BaseObject):
|
|||
name = StringField('Name of city')
|
||||
|
||||
|
||||
class ICapHousing(IBaseCap):
|
||||
class CapHousing(IBaseCap):
|
||||
"""
|
||||
Capability of websites to search housings.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -20,9 +20,9 @@
|
|||
|
||||
from weboob.tools.ordereddict import OrderedDict
|
||||
from .base import NotLoaded, Field, BytesField
|
||||
from .file import ICapFile, BaseFile
|
||||
from .file import CapFile, BaseFile
|
||||
|
||||
__all__ = ['BaseImage', 'ICapImage']
|
||||
__all__ = ['BaseImage', 'CapImage']
|
||||
|
||||
class _BaseImage(BaseFile):
|
||||
"""
|
||||
|
|
@ -57,11 +57,11 @@ class BaseImage(_BaseImage):
|
|||
return OrderedDict(iter_decorate(fields_iterator))
|
||||
|
||||
|
||||
class ICapImage(ICapFile):
|
||||
class CapImage(CapFile):
|
||||
"""
|
||||
Image file provider
|
||||
"""
|
||||
def search_image(self, pattern, sortby=ICapFile.SEARCH_RELEVANCE, nsfw=False):
|
||||
def search_image(self, pattern, sortby=CapFile.SEARCH_RELEVANCE, nsfw=False):
|
||||
"""
|
||||
search for an image file
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
from .base import BaseObject, IBaseCap, StringField, DateField
|
||||
|
||||
__all__ = ['BaseJobAdvert', 'ICapJob']
|
||||
__all__ = ['BaseJobAdvert', 'CapJob']
|
||||
|
||||
|
||||
class BaseJobAdvert(BaseObject):
|
||||
|
|
@ -67,7 +67,7 @@ class BaseJobAdvert(BaseObject):
|
|||
return self.id2url(self.id)
|
||||
|
||||
|
||||
class ICapJob(IBaseCap):
|
||||
class CapJob(IBaseCap):
|
||||
"""
|
||||
Capability of job annouce websites.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -17,11 +17,11 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from .collection import ICapCollection
|
||||
from .collection import CapCollection
|
||||
from .base import BaseObject, Field, StringField, DateField
|
||||
|
||||
|
||||
__all__ = ['Book', 'Renew', 'ICapBook']
|
||||
__all__ = ['Book', 'Renew', 'CapBook']
|
||||
|
||||
|
||||
class Book(BaseObject):
|
||||
|
|
@ -42,7 +42,7 @@ class Renew(BaseObject):
|
|||
message = StringField('Message')
|
||||
|
||||
|
||||
class ICapBook(ICapCollection):
|
||||
class CapBook(CapCollection):
|
||||
"""
|
||||
Library websites.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
from .base import IBaseCap, BaseObject, StringField
|
||||
|
||||
|
||||
__all__ = ['SongLyrics', 'ICapLyrics']
|
||||
__all__ = ['SongLyrics', 'CapLyrics']
|
||||
|
||||
|
||||
class SongLyrics(BaseObject):
|
||||
|
|
@ -37,7 +37,7 @@ class SongLyrics(BaseObject):
|
|||
self.title = title
|
||||
|
||||
|
||||
class ICapLyrics(IBaseCap):
|
||||
class CapLyrics(IBaseCap):
|
||||
"""
|
||||
Lyrics websites.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ from .base import IBaseCap, BaseObject, NotLoaded, Field, StringField, \
|
|||
DateField, IntField, UserError
|
||||
|
||||
|
||||
__all__ = ['Thread', 'Message', 'ICapMessages', 'CantSendMessage', 'ICapMessagesPost']
|
||||
__all__ = ['Thread', 'Message', 'CapMessages', 'CantSendMessage', 'CapMessagesPost']
|
||||
|
||||
|
||||
# Message and Thread's attributes refer to themselves, and it isn't possible
|
||||
|
|
@ -165,7 +165,7 @@ class Thread(_Thread):
|
|||
yield m
|
||||
|
||||
|
||||
class ICapMessages(IBaseCap):
|
||||
class CapMessages(IBaseCap):
|
||||
"""
|
||||
Capability to read messages.
|
||||
"""
|
||||
|
|
@ -209,7 +209,7 @@ class CantSendMessage(UserError):
|
|||
"""
|
||||
|
||||
|
||||
class ICapMessagesPost(IBaseCap):
|
||||
class CapMessagesPost(IBaseCap):
|
||||
"""
|
||||
This capability allow user to send a message.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class Parcel(BaseObject):
|
|||
history = Field('History', list)
|
||||
|
||||
|
||||
class ICapParcel(IBaseCap):
|
||||
class CapParcel(IBaseCap):
|
||||
def get_parcel_tracking(self, id):
|
||||
"""
|
||||
Get information abouut a parcel.
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
from .base import IBaseCap, BaseObject, NotLoaded, Field, StringField, UserError
|
||||
|
||||
|
||||
__all__ = ['PasteNotFound', 'BasePaste', 'ICapPaste']
|
||||
__all__ = ['PasteNotFound', 'BasePaste', 'CapPaste']
|
||||
|
||||
|
||||
class PasteNotFound(UserError):
|
||||
|
|
@ -63,7 +63,7 @@ class BasePaste(BaseObject):
|
|||
return self.id2url(self.id)
|
||||
|
||||
|
||||
class ICapPaste(IBaseCap):
|
||||
class CapPaste(IBaseCap):
|
||||
"""
|
||||
This capability represents the ability for a website backend to store plain text.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ from .base import IBaseCap, BaseObject, Field, DecimalField, \
|
|||
StringField, DateField
|
||||
|
||||
|
||||
__all__ = ['Shop', 'Price', 'Product', 'ICapPriceComparison']
|
||||
__all__ = ['Shop', 'Price', 'Product', 'CapPriceComparison']
|
||||
|
||||
|
||||
class Product(BaseObject):
|
||||
|
|
@ -53,7 +53,7 @@ class Price(BaseObject):
|
|||
product = Field('Product', Product)
|
||||
|
||||
|
||||
class ICapPriceComparison(IBaseCap):
|
||||
class CapPriceComparison(IBaseCap):
|
||||
"""
|
||||
Capability for price comparison websites.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ from .base import IBaseCap, BaseObject, Field, StringField
|
|||
from weboob.tools.capabilities.streaminfo import StreamInfo
|
||||
|
||||
|
||||
__all__ = ['Radio', 'ICapRadio']
|
||||
__all__ = ['Radio', 'CapRadio']
|
||||
|
||||
|
||||
class Radio(BaseObject):
|
||||
|
|
@ -35,7 +35,7 @@ class Radio(BaseObject):
|
|||
current = Field('Current emission', StreamInfo)
|
||||
streams = Field('List of streams', list)
|
||||
|
||||
class ICapRadio(IBaseCap):
|
||||
class CapRadio(IBaseCap):
|
||||
"""
|
||||
Capability of radio websites.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import re
|
|||
import urllib
|
||||
|
||||
|
||||
__all__ = ['Recipe', 'ICapRecipe']
|
||||
__all__ = ['Recipe', 'CapRecipe']
|
||||
|
||||
|
||||
class Comment():
|
||||
|
|
@ -161,7 +161,7 @@ class Recipe(BaseObject):
|
|||
return header + ET.tostring(doc, encoding='UTF-8', pretty_print=True).decode('utf-8')
|
||||
|
||||
|
||||
class ICapRecipe(IBaseCap):
|
||||
class CapRecipe(IBaseCap):
|
||||
"""
|
||||
Recipe providers.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
from .base import IBaseCap, BaseObject, StringField, IntField, UserError
|
||||
|
||||
|
||||
__all__ = ['Subtitle', 'ICapSubtitle']
|
||||
__all__ = ['Subtitle', 'CapSubtitle']
|
||||
|
||||
|
||||
class LanguageNotSupported(UserError):
|
||||
|
|
@ -48,7 +48,7 @@ class Subtitle(BaseObject):
|
|||
BaseObject.__init__(self, id)
|
||||
self.name = name
|
||||
|
||||
class ICapSubtitle(IBaseCap):
|
||||
class CapSubtitle(IBaseCap):
|
||||
"""
|
||||
Subtitle providers.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ from .base import IBaseCap, BaseObject, Field, StringField, FloatField, \
|
|||
DateField, IntField, UserError
|
||||
|
||||
|
||||
__all__ = ['MagnetOnly', 'Torrent', 'ICapTorrent']
|
||||
__all__ = ['MagnetOnly', 'Torrent', 'CapTorrent']
|
||||
|
||||
|
||||
class MagnetOnly(UserError):
|
||||
|
|
@ -54,7 +54,7 @@ class Torrent(BaseObject):
|
|||
self.name = name
|
||||
|
||||
|
||||
class ICapTorrent(IBaseCap):
|
||||
class CapTorrent(IBaseCap):
|
||||
"""
|
||||
Torrent trackers.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
from .base import IBaseCap, BaseObject, StringField, UserError
|
||||
|
||||
|
||||
__all__ = ['TranslationFail', 'LanguageNotSupported', 'ICapTranslate']
|
||||
__all__ = ['TranslationFail', 'LanguageNotSupported', 'CapTranslate']
|
||||
|
||||
|
||||
class LanguageNotSupported(UserError):
|
||||
|
|
@ -51,7 +51,7 @@ class Translation(BaseObject):
|
|||
text = StringField('Translation')
|
||||
|
||||
|
||||
class ICapTranslate(IBaseCap):
|
||||
class CapTranslate(IBaseCap):
|
||||
"""
|
||||
Capability of online translation website to translate word or sentence
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ from .base import IBaseCap, BaseObject, StringField, TimeField, DeltaField, \
|
|||
DateField, DecimalField, UserError
|
||||
|
||||
|
||||
__all__ = ['Station', 'Departure', 'RoadStep', 'RoadmapError', 'RoadmapFilters', 'ICapTravel']
|
||||
__all__ = ['Station', 'Departure', 'RoadStep', 'RoadmapError', 'RoadmapFilters', 'CapTravel']
|
||||
|
||||
|
||||
class Station(BaseObject):
|
||||
|
|
@ -96,7 +96,7 @@ class RoadmapFilters(BaseObject):
|
|||
BaseObject.__init__(self, '')
|
||||
|
||||
|
||||
class ICapTravel(IBaseCap):
|
||||
class CapTravel(IBaseCap):
|
||||
"""
|
||||
Travel websites.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@
|
|||
from datetime import timedelta
|
||||
|
||||
from .base import Field
|
||||
from .image import ICapImage, BaseImage
|
||||
from .image import CapImage, BaseImage
|
||||
|
||||
|
||||
__all__ = ['BaseVideo', 'ICapVideo']
|
||||
__all__ = ['BaseVideo', 'CapVideo']
|
||||
|
||||
|
||||
class BaseVideo(BaseImage):
|
||||
|
|
@ -36,12 +36,12 @@ class BaseVideo(BaseImage):
|
|||
duration = Field('file duration', int, long, timedelta)
|
||||
|
||||
|
||||
class ICapVideo(ICapImage):
|
||||
class CapVideo(CapImage):
|
||||
"""
|
||||
Video file provider.
|
||||
"""
|
||||
|
||||
def search_videos(self, pattern, sortby=ICapImage.SEARCH_RELEVANCE, nsfw=False):
|
||||
def search_videos(self, pattern, sortby=CapImage.SEARCH_RELEVANCE, nsfw=False):
|
||||
"""
|
||||
search for a video file
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ from .base import IBaseCap, BaseObject, Field, DateField, FloatField, \
|
|||
StringField, UserError
|
||||
|
||||
|
||||
__all__ = ['Forecast', 'Current', 'City', 'CityNotFound', 'Temperature', 'ICapWeather']
|
||||
__all__ = ['Forecast', 'Current', 'City', 'CityNotFound', 'Temperature', 'CapWeather']
|
||||
|
||||
|
||||
class Temperature(BaseObject):
|
||||
|
|
@ -109,7 +109,7 @@ class CityNotFound(UserError):
|
|||
"""
|
||||
|
||||
|
||||
class ICapWeather(IBaseCap):
|
||||
class CapWeather(IBaseCap):
|
||||
"""
|
||||
Capability for weather websites.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue