Skip to content

Commit

Permalink
web: wibble
Browse files Browse the repository at this point in the history
  • Loading branch information
borisfaure committed Feb 21, 2010
1 parent 976994a commit 9673fdd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions amsn2/ui/front_ends/web/login.py
Expand Up @@ -5,18 +5,18 @@ def __init__(self, amsn_core, main):
self.switch_to_profile(None)

def show(self):
self._main.send("showLogin",[]);
self._main.addListener("setUsername",self.setUsername)
self._main.addListener("setPassword",self.setPassword)
self._main.addListener("signin",self.signin)
self._main.send("showLogin", []);
self._main.addListener("setUsername", self.setUsername)
self._main.addListener("setPassword", self.setPassword)
self._main.addListener("signin", self.signin)

def hide(self):
self._main.send("hideLogin",[]);

def setUsername(self,listU):
def setUsername(self, listU):
self._username = listU.pop()

def setPassword(self,listP):
def setPassword(self, listP):
self._password = listP.pop()

def switch_to_profile(self, profile):
Expand All @@ -25,11 +25,11 @@ def switch_to_profile(self, profile):
self._username = self.current_profile.username
self._password = self.current_profile.password

def signin(self,listE):
def signin(self, listE):
self.current_profile.username = self._username
self.current_profile.email = self._username
self.current_profile.password = self._password
self._amsn_core.signin_to_account(self, self.current_profile)

def on_connecting(self,mess):
self._main.send("onConnecting",[mess])
def on_connecting(self, mess):
self._main.send("onConnecting", [mess])

0 comments on commit 9673fdd

Please sign in to comment.