[Bugs] #1124 HIGH: Allow SoaS backup and restore from an XS server
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Wed Nov 4 21:09:19 EST 2009
#1124: Allow SoaS backup and restore from an XS server
-----------------------------+----------------------------------------------
Reporter: hamiltonchua | Owner: martin.langhoff
Type: enhancement | Status: assigned
Priority: High | Milestone: 0.86
Component: journal | Version: Unspecified
Severity: Major | Keywords: r? GPA
Distribution: Unspecified | Status_field: Needinfo
-----------------------------+----------------------------------------------
Comment(by hamiltonchua):
Martin,
About My Computer says :
Build : SoaS release 1 (Strawberry)
Sugar : 0.84.2
Both commands do not return anything on my setup. I have patched my build
to register with SoaS from #916. Note that the final patch does not store
that info in gconf, it now stores it in /home/liveuser/.sugar/,
specifically ...
/home/liveuser/.sugar/identifiers/backup_url
/home/liveuser/.sugar/identifiers/sn
/home/liveuser/.sugar/identifiers/uuid
I use the following def to extract the data ...
{{{
def get_identifier_info(info):
identifier_dir = os.path.expanduser('~') +
'/.sugar/default/identifiers/'
fh = open(os.path.join(identifier_dir, info),'r')
data = fh.read().rstrip('\0\n')
fh.close()
return data
}}}
I use it like this
{{{
backup_url = get_identifier_info('backup_url')
uid = get_identifier_info('uid')
sn = get_identifier_info('sn')
}}}
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/1124#comment:20>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list