Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/cgi-bin/activities.py
diff options
context:
space:
mode:
authorTony Anderson <tony@traveler.(none)>2011-01-15 13:27:08 (GMT)
committer Tony Anderson <tony@traveler.(none)>2011-01-15 13:27:08 (GMT)
commit5a5439f1a3edcecce5ddebca16bb0b4db1a7cd4e (patch)
treedb4c9f8e28b1da95daae31a4c077ebb604ebdf54 /cgi-bin/activities.py
parent0adb823c97e6627c46a1acdc3eca1555f5f5f124 (diff)
version 11.3
Diffstat (limited to 'cgi-bin/activities.py')
-rwxr-xr-xcgi-bin/activities.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/cgi-bin/activities.py b/cgi-bin/activities.py
index 35b9d05..959eb3a 100755
--- a/cgi-bin/activities.py
+++ b/cgi-bin/activities.py
@@ -31,6 +31,20 @@ def sftp(script, folder = None):
subprocess.call(cmd, shell=True)
return 0
+def getNick()
+ nickname = 'Funknown'
+ pth = path('/home') / 'olpc' / '.sugar' / 'default' / 'config'
+ if pth.exists():
+ fin = open(pth,'r')
+ txt = fin.read()
+ fin.close
+ lines = txt.split('\n')
+ for line in lines:
+ if line.find('nickname') > -1:
+ pos = line.find('=')
+ self.nickname = line[pos+1:].strip()
+ return nickname
+
def getInstalled(subject):
pth = path('content') / subject
temp = pth.dirs()