From f7963b9acfb2b2352cd86a4d548cd2f3f9a2acbb Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 5 Oct 2011 11:43:01 +0200 Subject: [PATCH] client-barcode: Rename login_code to auth_blob --- client-barcode/freitagskasse.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client-barcode/freitagskasse.py b/client-barcode/freitagskasse.py index d1ec0e0..d52c382 100644 --- a/client-barcode/freitagskasse.py +++ b/client-barcode/freitagskasse.py @@ -62,7 +62,7 @@ class Status: self._reset() def _reset(self): - self.login_code = None + self.auth_blob = None self.login_name = None self.balance = None self.transfers = None @@ -97,11 +97,11 @@ class Status: print() 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()) - self.login_code = code + self.auth_blob = auth_blob self.login_name = 'Sebastian Pipping' ############ self.balance = decimal.Decimal('0.20') ###################### self.transfers = list()