add attributes to backend (maintainer, email address and version)
This commit is contained in:
parent
b920e20570
commit
825aa80df6
3 changed files with 8 additions and 1 deletions
|
|
@ -20,6 +20,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class Backend:
|
class Backend:
|
||||||
|
MAINTAINER = '<unspecifier>'
|
||||||
|
EMAIL = '<unspecified>'
|
||||||
|
VERSION = '<unspecified>'
|
||||||
|
|
||||||
def __init__(self, weboob):
|
def __init__(self, weboob):
|
||||||
self.weboob = weboob
|
self.weboob = weboob
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,10 @@ from weboob.capabilities.messages import ICapMessages, ICapMessagesReply, Messag
|
||||||
from feeds import ArticlesList
|
from feeds import ArticlesList
|
||||||
|
|
||||||
class DLFPBackend(Backend, ICapMessages, ICapMessagesReply):
|
class DLFPBackend(Backend, ICapMessages, ICapMessagesReply):
|
||||||
|
MAINTAINER = 'Romain Bignon'
|
||||||
|
EMAIL = 'romain@peerfuse.org'
|
||||||
|
VERSION = '1.0'
|
||||||
|
|
||||||
def __init__(self, weboob):
|
def __init__(self, weboob):
|
||||||
Backend.__init__(self, weboob)
|
Backend.__init__(self, weboob)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@ class IndexPage(DLFPPage):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class LoginPage(DLFPPage):
|
class LoginPage(DLFPPage):
|
||||||
|
|
||||||
def loaded(self):
|
def loaded(self):
|
||||||
if self.has_error():
|
if self.has_error():
|
||||||
raise BrowserIncorrectPassword()
|
raise BrowserIncorrectPassword()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue