Skip to content

Commit

Permalink
Strip text from efl entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris billiob Faure committed Apr 21, 2009
1 parent 6289b0d commit f171143
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion amsn2/core/amsn.py
Expand Up @@ -125,7 +125,7 @@ def addProfile(self, account):
return self._profile_manager.addProfile(account)

def signinToAccount(self, login_window, profile):
print "Signing in to account %s" % (profile.email)
print "Signing in to account '%s'" % (profile.email)
profile.login = login_window
profile.client = protocol.Client(self, profile)
self._profile = profile
Expand Down
6 changes: 4 additions & 2 deletions amsn2/gui/front_ends/efl/login.py
Expand Up @@ -83,9 +83,11 @@ def switch_to_profile(self, profile):


def signin(self):
self.current_profile.username = elementary.Entry.markup_to_utf8(self.username.entry_get())
self.current_profile.username = \
elementary.Entry.markup_to_utf8(self.username.entry_get()).strip()
self.current_profile.email = self.current_profile.username
self.current_profile.password = elementary.Entry.markup_to_utf8(self.password.entry_get())
self.current_profile.password = \
elementary.Entry.markup_to_utf8(self.password.entry_get()).strip()
self._amsn_core.signinToAccount(self, self.current_profile)

def onConnecting(self, progress, message):
Expand Down

0 comments on commit f171143

Please sign in to comment.