[Bugs] #1976 UNSP: School server registration works differently on XO
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Sun May 2 06:50:32 EDT 2010
#1976: School server registration works differently on XO
------------------------------------------+---------------------------------
Reporter: sascha_silbe | Owner: tomeu
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: 0.90
Component: sugar | Version: Git as of bugdate
Severity: Minor | Keywords:
Distribution: | Status_field: New
------------------------------------------+---------------------------------
The school server URL is hardcoded if running on an XO, but derived from
the jabber server setting on other hardware. From
src/jarabe/desktop/schoolserver.py:
{{{
REGISTER_URL = 'http://schoolserver:8080/'
[...]
def register_laptop(url=REGISTER_URL):
profile = get_profile()
client = gconf.client_get_default()
if have_ofw_tree():
sn = read_ofw('mfg-data/SN')
uuid_ = read_ofw('mfg-data/U#')
sn = sn or 'SHF00000000'
uuid_ = uuid_ or '00000000-0000-0000-0000-000000000000'
else:
sn = generate_serial_number()
uuid_ = str(uuid.uuid1())
setting_name = '/desktop/sugar/collaboration/jabber_server'
jabber_server = client.get_string(setting_name)
store_identifiers(sn, uuid_, jabber_server)
url = 'http://' + jabber_server + ':8080/'
}}}
We shouldn't make assumptions on the '''use case''' based on the
'''hardware'''.
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/1976>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list