use lower_case_with_underscores instead of mixedCase for methods (PEP 8)

This commit is contained in:
Christophe Benz 2010-03-11 15:13:17 +01:00 committed by Christophe Benz
commit d699e307dd
21 changed files with 177 additions and 185 deletions

View file

@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from weboob.tools.browser import BrowserIncorrectPassword, BasePage
class DLFPPage(BasePage):
def isLogged(self):
def is_logged(self):
forms = self.document.getElementsByTagName('form')
for form in forms:
if form.getAttribute('id') == 'formulaire':
@ -35,10 +35,10 @@ class IndexPage(DLFPPage):
class LoginPage(DLFPPage):
def loaded(self):
if self.hasError():
if self.has_error():
raise BrowserIncorrectPassword()
def hasError(self):
def has_error(self):
plist = self.document.getElementsByTagName('p')
for p in plist:
p = p.childNodes[0]