rename ICap to Cap (closes #1424)
This commit is contained in:
parent
51958135cb
commit
e025fb0b20
244 changed files with 679 additions and 679 deletions
|
|
@ -27,9 +27,9 @@ from tempfile import NamedTemporaryFile
|
|||
from lxml import etree
|
||||
|
||||
from weboob.core import CallErrors
|
||||
from weboob.capabilities.messages import ICapMessages, Message, Thread
|
||||
from weboob.capabilities.account import ICapAccount
|
||||
from weboob.capabilities.contact import ICapContact
|
||||
from weboob.capabilities.messages import CapMessages, Message, Thread
|
||||
from weboob.capabilities.account import CapAccount
|
||||
from weboob.capabilities.contact import CapContact
|
||||
from weboob.tools.application.repl import ReplApplication, defaultcount
|
||||
from weboob.tools.application.formatters.iformatter import IFormatter
|
||||
from weboob.tools.misc import html2text
|
||||
|
|
@ -239,7 +239,7 @@ class Boobmsg(ReplApplication):
|
|||
DESCRIPTION = "Console application allowing to send messages on various websites and " \
|
||||
"to display message threads and contents."
|
||||
SHORT_DESCRIPTION = "send and receive message threads"
|
||||
CAPS = ICapMessages
|
||||
CAPS = CapMessages
|
||||
EXTRA_FORMATTERS = {'msglist': MessagesListFormatter,
|
||||
'msg': MessageFormatter,
|
||||
'xhtml': XHtmlFormatter,
|
||||
|
|
@ -262,7 +262,7 @@ class Boobmsg(ReplApplication):
|
|||
type='string', dest='title')
|
||||
|
||||
def load_default_backends(self):
|
||||
self.load_backends(ICapMessages, storage=self.create_storage())
|
||||
self.load_backends(CapMessages, storage=self.create_storage())
|
||||
|
||||
def main(self, argv):
|
||||
self.load_config()
|
||||
|
|
@ -282,7 +282,7 @@ class Boobmsg(ReplApplication):
|
|||
results = {}
|
||||
for backend, field in self.do('get_account_status',
|
||||
backends=backend_name,
|
||||
caps=ICapAccount):
|
||||
caps=CapAccount):
|
||||
if backend.name in results:
|
||||
results[backend.name].append(field)
|
||||
else:
|
||||
|
|
@ -460,7 +460,7 @@ class Boobmsg(ReplApplication):
|
|||
_id, backend_name = self.parse_id(id, unique_backend=True)
|
||||
|
||||
found = 0
|
||||
for backend, contact in self.do('get_contact', _id, backends=backend_name, caps=ICapContact):
|
||||
for backend, contact in self.do('get_contact', _id, backends=backend_name, caps=CapContact):
|
||||
if contact:
|
||||
self.format(contact)
|
||||
found = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue