rename ICap to Cap (closes #1424)
This commit is contained in:
parent
51958135cb
commit
e025fb0b20
244 changed files with 679 additions and 679 deletions
|
|
@ -23,7 +23,7 @@ import codecs
|
|||
from PyQt4.QtCore import SIGNAL, Qt, QStringList
|
||||
from PyQt4.QtGui import QApplication, QCompleter
|
||||
|
||||
from weboob.capabilities.recipe import ICapRecipe
|
||||
from weboob.capabilities.recipe import CapRecipe
|
||||
from weboob.tools.application.qt import QtMainWindow, QtDo
|
||||
from weboob.tools.application.qt.backendcfg import BackendCfg
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ class MainWindow(QtMainWindow):
|
|||
self.backendsConfig()
|
||||
|
||||
def backendsConfig(self):
|
||||
bckndcfg = BackendCfg(self.weboob, (ICapRecipe, ), self)
|
||||
bckndcfg = BackendCfg(self.weboob, (CapRecipe, ), self)
|
||||
if bckndcfg.run():
|
||||
self.loadBackendsList()
|
||||
|
||||
|
|
@ -184,7 +184,7 @@ class MainWindow(QtMainWindow):
|
|||
backend_name = str(self.ui.backendEdit.itemData(self.ui.backendEdit.currentIndex()).toString())
|
||||
|
||||
self.process = QtDo(self.weboob, self.addRecipe)
|
||||
self.process.do(self.app._do_complete, self.getCount(), ('title'), 'iter_recipes', pattern, backends=backend_name, caps=ICapRecipe)
|
||||
self.process.do(self.app._do_complete, self.getCount(), ('title'), 'iter_recipes', pattern, backends=backend_name, caps=CapRecipe)
|
||||
self.ui.stopButton.show()
|
||||
|
||||
def addRecipe(self, backend, recipe):
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
from weboob.capabilities.recipe import ICapRecipe
|
||||
from weboob.capabilities.recipe import CapRecipe
|
||||
from weboob.tools.application.qt import QtApplication
|
||||
|
||||
from .main_window import MainWindow
|
||||
|
|
@ -30,14 +30,14 @@ class QCookboob(QtApplication):
|
|||
COPYRIGHT = 'Copyright(C) 2013 Julien Veyssier'
|
||||
DESCRIPTION = "Qt application allowing to search recipes."
|
||||
SHORT_DESCRIPTION = "search recipes"
|
||||
CAPS = ICapRecipe
|
||||
CAPS = CapRecipe
|
||||
CONFIG = {'settings': {'backend': '',
|
||||
'maxresultsnumber': '10'
|
||||
}
|
||||
}
|
||||
|
||||
def main(self, argv):
|
||||
self.load_backends([ICapRecipe])
|
||||
self.load_backends([CapRecipe])
|
||||
self.load_config()
|
||||
|
||||
self.main_window = MainWindow(self.config, self.weboob, self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue