From 8981216d64d501530549836c49fc2844466f9de6 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 25 Apr 2011 17:41:28 +0200 Subject: Store known providers and balance in gsettings based on the IMSI of the SIM card --- src/ppm/provider.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/ppm/provider.py') diff --git a/src/ppm/provider.py b/src/ppm/provider.py index 484270b..fbbd911 100644 --- a/src/ppm/provider.py +++ b/src/ppm/provider.py @@ -24,15 +24,20 @@ class ProviderError(Exception): class Provider(object): - """Keeps the information on howto top up the ballance and how to query the - current ballance""" + """ + Keeps the information on howto interact with a certain provider, that + his howto top up the ballance and how to query the current ballance + + It doesn't keep any current balance information or similar since this is + associated with an account (a user can have several SIM cards form the same + provider) + """ def __init__(self, country, name): self.country = country self.name = name self.fetch_balance_cmds = {} self.top_up_cmds = {} - self.balance = None logging.debug("New provider: %s, %s", country, name) def add_fetch_balance_cmd(self, cmd): -- cgit v1.2.3