use Value* classes instead of ConfigField
This commit is contained in:
parent
f995d86023
commit
2d2a942494
12 changed files with 59 additions and 72 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue