use Value* classes instead of ConfigField

This commit is contained in:
Romain Bignon 2010-10-26 20:58:45 +02:00
commit 2d2a942494
12 changed files with 59 additions and 72 deletions

View file

@ -22,6 +22,7 @@ from logging import warning
from weboob.capabilities.messages import ICapMessages, Message, Thread
from weboob.tools.backend import BaseBackend
from weboob.tools.value import Value, ValuesDict
from .browser import FourChan
@ -36,8 +37,7 @@ class FourChanBackend(BaseBackend, ICapMessages):
VERSION = '0.3'
LICENSE = 'GPLv3'
DESCRIPTION = "4chan website"
CONFIG = {'boards': BaseBackend.ConfigField(description='Boards'),
}
CONFIG = ValuesDict(Value('boards', label='Boards to fetch'))
STORAGE = {'boards': {}}
BROWSER = FourChan