better capabilities management (class interfaces instead of constants)

This commit is contained in:
Romain Bignon 2010-02-23 20:38:24 +01:00
commit f06ef5da34
7 changed files with 41 additions and 34 deletions

View file

@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
"""
from weboob.backend import Backend
from weboob.capabilities import CAP_MAILS
from weboob.capabilities.messages import IMessages, IMessagesReply
class AuMBackend(Backend):
CAPS = CAP_MAILS
class AuMBackend(Backend, IMessages, IMessagesReply):
pass

View file

@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
"""
from weboob.backend import Backend
from weboob.capabilities import CAP_MAILS
from weboob.capabilities.messages import IMessages, IMessagesReply
class DLFPBackend(Backend):
CAPS = CAP_MAILS
class DLFPBackend(Backend, IMessages, IMessagesReply):
pass