diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-04-17 14:20:39 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-04-17 14:20:39 (GMT) |
commit | 7564597666a078d00ec7072d2abe2440e224e9c0 (patch) | |
tree | 5e2ccae70f58ce49892ab6f2f865ad3712a9d27b /instance.py | |
parent | ccca798196b9eef3e08c93826f4d4f8f4f85327e (diff) |
Replate tabs by spaces
Diffstat (limited to 'instance.py')
-rw-r--r-- | instance.py | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/instance.py b/instance.py index 1ab5407..d0178df 100644 --- a/instance.py +++ b/instance.py @@ -9,41 +9,41 @@ from color import Color import record class Instance: - key = profile.get_pubkey() - if hasattr(util, '_sha_data'): - # sugar-0.82 and previous - keyHash = util._sha_data(key) - else: - keyHash = util.sha_data(key) + key = profile.get_pubkey() + if hasattr(util, '_sha_data'): + # sugar-0.82 and previous + keyHash = util._sha_data(key) + else: + keyHash = util.sha_data(key) - keyHashPrintable = util.printable_hash(keyHash) - nickName = profile.get_nick_name() + keyHashPrintable = util.printable_hash(keyHash) + nickName = profile.get_nick_name() - colorFill = Color() - colorFill.init_hex( profile.get_color().get_fill_color() ) - colorStroke = Color() - colorStroke.init_hex( profile.get_color().get_stroke_color() ) + colorFill = Color() + colorFill.init_hex( profile.get_color().get_fill_color() ) + colorStroke = Color() + colorStroke.init_hex( profile.get_color().get_stroke_color() ) - instanceId = None - instancePath = None - dataPath = None + instanceId = None + instancePath = None + dataPath = None - def __init__(self, ca): - self.__class__.instanceId = ca._activity_id + def __init__(self, ca): + self.__class__.instanceId = ca._activity_id - self.__class__.instancePath = os.path.join(ca.get_activity_root(), "instance") - recreateTmp() + self.__class__.instancePath = os.path.join(ca.get_activity_root(), "instance") + recreateTmp() - self.__class__.dataPath = os.path.join(ca.get_activity_root(), "data") - recreateData() + self.__class__.dataPath = os.path.join(ca.get_activity_root(), "data") + recreateData() def recreateTmp(): - if (not os.path.exists(Instance.instancePath)): - os.makedirs(Instance.instancePath) + if (not os.path.exists(Instance.instancePath)): + os.makedirs(Instance.instancePath) def recreateData(): - if (not os.path.exists(Instance.dataPath)): - os.makedirs(Instance.dataPath) + if (not os.path.exists(Instance.dataPath)): + os.makedirs(Instance.dataPath) |