client-barcode: Rename login_code to auth_blob

This commit is contained in:
Sebastian Pipping 2011-10-05 11:43:01 +02:00
parent 7a1ee41ca2
commit f7963b9acf
1 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@ class Status:
self._reset() self._reset()
def _reset(self): def _reset(self):
self.login_code = None self.auth_blob = None
self.login_name = None self.login_name = None
self.balance = None self.balance = None
self.transfers = None self.transfers = None
@ -97,11 +97,11 @@ class Status:
print() print()
def logged_in(self): def logged_in(self):
return self.login_code is not None return self.auth_blob is not None
def login(self, code): def login(self, auth_blob):
assert(not self.logged_in()) assert(not self.logged_in())
self.login_code = code self.auth_blob = auth_blob
self.login_name = 'Sebastian Pipping' ############ self.login_name = 'Sebastian Pipping' ############
self.balance = decimal.Decimal('0.20') ###################### self.balance = decimal.Decimal('0.20') ######################
self.transfers = list() self.transfers = list()