Make conf private, expose the nick name from env
parent
995c74b116
commit
01c4658ee0
@ -1,8 +1,8 @@
|
||||
from sugar.conf.ActivityRegistry import _ActivityRegistry
|
||||
from sugar.conf.Profile import Profile
|
||||
from conf.ActivityRegistry import _ActivityRegistry
|
||||
from conf.Profile import _Profile
|
||||
|
||||
__registry = _ActivityRegistry()
|
||||
__profile = Profile()
|
||||
__profile = _Profile()
|
||||
|
||||
def get_activity_registry():
|
||||
return __registry
|
@ -0,0 +1,8 @@
|
||||
def get_default_type(activity_type):
|
||||
"""Get the activity default type.
|
||||
|
||||
It's the type of the main network service which tracks presence
|
||||
and provides info about the activity, for example the title."""
|
||||
splitted_id = activity_type.split('.')
|
||||
splitted_id.reverse()
|
||||
return '_' + '_'.join(splitted_id) + '._udp'
|
Loading…
Reference in New Issue