s/ICap/Cap in contrib
This commit is contained in:
parent
983ed221e2
commit
9f8d866a80
2 changed files with 6 additions and 6 deletions
|
|
@ -25,7 +25,7 @@ import locale
|
|||
import time
|
||||
import logging
|
||||
from weboob.core import Weboob, CallErrors
|
||||
from weboob.capabilities.bank import ICapBank
|
||||
from weboob.capabilities.bank import CapBank
|
||||
from weboob.tools.browser import BrowserIncorrectPassword
|
||||
|
||||
class BoobankMuninPlugin(object):
|
||||
|
|
@ -135,7 +135,7 @@ class BoobankMuninPlugin(object):
|
|||
return
|
||||
|
||||
self.new_cache('boobank-munin-config')
|
||||
self.weboob.load_backends(ICapBank)
|
||||
self.weboob.load_backends(CapBank)
|
||||
self.write_output('graph_title Bank accounts')
|
||||
self.write_output('graph_vlabel balance')
|
||||
self.write_output('graph_category weboob')
|
||||
|
|
@ -189,7 +189,7 @@ class BoobankMuninPlugin(object):
|
|||
return
|
||||
|
||||
self.new_cache('boobank-munin')
|
||||
self.weboob.load_backends(ICapBank)
|
||||
self.weboob.load_backends(CapBank)
|
||||
try:
|
||||
for backend, account in self.weboob.do('iter_accounts'):
|
||||
if self.monitored(account):
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import re
|
|||
import ConfigParser
|
||||
|
||||
from weboob.core import Weboob
|
||||
from weboob.capabilities.video import ICapVideo
|
||||
from weboob.capabilities.video import CapVideo
|
||||
|
||||
# hack to workaround bash redirection and encoding problem
|
||||
import sys, codecs, locale
|
||||
|
|
@ -84,7 +84,7 @@ class Downloadboob(object):
|
|||
else:
|
||||
return True
|
||||
|
||||
def download(self, pattern=None, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False, max_results=None, title_exclude=[], id_regexp=None):
|
||||
def download(self, pattern=None, sortby=CapVideo.SEARCH_RELEVANCE, nsfw=False, max_results=None, title_exclude=[], id_regexp=None):
|
||||
print "For backend %s, search for '%s'" % (backend_name, pattern)
|
||||
|
||||
# create directory for links
|
||||
|
|
@ -248,4 +248,4 @@ for section in config.sections():
|
|||
downloadboob = Downloadboob(backend_name, download_directory, section_links_directory)
|
||||
downloadboob.purge()
|
||||
# FIXME sortBy, title.match
|
||||
downloadboob.download(pattern, ICapVideo.SEARCH_DATE, False, max_result, title_exclude, id_regexp)
|
||||
downloadboob.download(pattern, CapVideo.SEARCH_DATE, False, max_result, title_exclude, id_regexp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue