Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/profile.py
diff options
context:
space:
mode:
authorSascha Silbe <sascha@silbe.org>2009-08-25 19:12:40 (GMT)
committer Sascha Silbe <sascha@silbe.org>2009-08-25 19:12:40 (GMT)
commitc9e63eb8eadb0b133b88e9feb1ca48b75d959a7c (patch)
tree3c62d81817405896977ae5e8ccfc0be5b5da7861 /src/sugar/profile.py
parentecdaf6b795550158273ba3a0d582f7ff2bec3187 (diff)
PEP8 white space and long line fixes
Diffstat (limited to 'src/sugar/profile.py')
-rw-r--r--src/sugar/profile.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sugar/profile.py b/src/sugar/profile.py
index 666c355..e5f5dc7 100644
--- a/src/sugar/profile.py
+++ b/src/sugar/profile.py
@@ -29,8 +29,10 @@ from sugar import env
from sugar import util
from sugar.graphics.xocolor import XoColor
+
_profile = None
+
class Profile(object):
"""Local user's current options/profile information
@@ -46,6 +48,7 @@ class Profile(object):
pubkey -- public ssh key
privkey_hash -- SHA has of the child's public key
"""
+
def __init__(self, path):
self._pubkey = None
self._privkey_hash = None
@@ -194,6 +197,7 @@ class Profile(object):
fd.write(text)
fd.close()
+
def get_profile():
global _profile
@@ -203,14 +207,17 @@ def get_profile():
return _profile
+
def get_nick_name():
client = gconf.client_get_default()
return client.get_string("/desktop/sugar/user/nick")
+
def get_color():
client = gconf.client_get_default()
color = client.get_string("/desktop/sugar/user/color")
return XoColor(color)
+
def get_pubkey():
return get_profile().pubkey