rename CapBaseObject to BaseObject (refs #1424)
This commit is contained in:
parent
4529735935
commit
51958135cb
44 changed files with 183 additions and 183 deletions
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
from weboob.tools.ordereddict import OrderedDict
|
||||
|
||||
from .base import IBaseCap, CapBaseObject, UserError, StringField, Field
|
||||
from .base import IBaseCap, BaseObject, UserError, StringField, Field
|
||||
|
||||
|
||||
__all__ = ['ICapCollection', 'BaseCollection', 'Collection', 'CollectionNotFound']
|
||||
|
|
@ -34,13 +34,13 @@ class CollectionNotFound(UserError):
|
|||
UserError.__init__(self, msg)
|
||||
|
||||
|
||||
class BaseCollection(CapBaseObject):
|
||||
class BaseCollection(BaseObject):
|
||||
"""
|
||||
Inherit from this if you want to create an object that is *also* a Collection.
|
||||
However, this probably will not work properly for now.
|
||||
"""
|
||||
def __init__(self, split_path):
|
||||
CapBaseObject.__init__(self, None)
|
||||
BaseObject.__init__(self, None)
|
||||
self.split_path = split_path
|
||||
|
||||
@property
|
||||
|
|
@ -76,7 +76,7 @@ class Collection(BaseCollection):
|
|||
|
||||
It is a dumb object, it must not contain callbacks to a backend.
|
||||
|
||||
Do not inherit from this class if you want to make a regular CapBaseObject
|
||||
Do not inherit from this class if you want to make a regular BaseObject
|
||||
a Collection, use BaseCollection instead.
|
||||
"""
|
||||
title = StringField('Collection title')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue