Development Team/Almanac/sugar.profile: Difference between revisions
m moved Development Team/Almanac/sugar.profile to Walter is a wanker 12/Almanac/sugar.profile: Walter is a wanker |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 16: | Line 16: | ||
client = gconf.client_get_default() | client = gconf.client_get_default() | ||
username = client.get_string("/desktop/ | username = client.get_string("/desktop/sugar/user/nick") | ||
</pre> | </pre> | ||
| Line 27: | Line 27: | ||
prof = profile.get_profile() | prof = profile.get_profile() | ||
# Two ways to print nickname: either through profile object, or through a helper | # Two ways to print nickname: either through profile object, or through a helper function in sugar.profile | ||
print prof.nick_name | print prof.nick_name | ||
print profile.get_nick_name() | print profile.get_nick_name() | ||