[Server-devel] Issue with ds-backup in XS 0.4

Douglas Bagnall douglas at paradise.net.nz
Tue Nov 11 22:29:06 EST 2008


I wrote:

> Somewhere I have an unregister.py script [...]

here.

douglas

------8<--------------
#!/usr/bin/python

CONFIG = '/home/olpc/.sugar/default/config'

from ConfigParser import SafeConfigParser

cp = SafeConfigParser()
cp.read(CONFIG)

cp.remove_section('Server')
cp.remove_section('Jabber')

f = open(CONFIG, 'w')
cp.write(f)
f.close()


More information about the Server-devel mailing list