* src/Config/_GrampsConfigKeys.py: online map config value

* data/gramps.schema.in: online map config value
	* src/Config/gen_schema_keys.py: clean up


svn: r6729
This commit is contained in:
Don Allingham 2006-05-20 01:59:47 +00:00
parent ff07f8407f
commit fb6dbd905c
2 changed files with 3 additions and 34 deletions

View File

@ -3,8 +3,9 @@
* src/DataViews/_MapView.py: use config value to determine if online
maps should be used
* src/GrampsCfg.py: online map config value
* src/Config/_GrampsCOnfigKeys.py: online map config value
* daa/gramps.schema.in: online map config value
* src/Config/_GrampsConfigKeys.py: online map config value
* data/gramps.schema.in: online map config value
* src/Config/gen_schema_keys.py: clean up
2006-05-19 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_DbUtils.py (db_copy): Copy custom types.

View File

@ -115,35 +115,3 @@ if __name__ == "__main__":
f.write('}\n')
f.close()
f = open("schema.xml.in","w")
f.write('<gconfschemafile>\n')
f.write(' <schemalist>\n')
for (key, key_type, default, long, short, include) in parser.list:
f.write(' <schema>\n')
f.write(' <key>/schemas%s</key>\n' % key)
f.write(' <applyto>/schemas%s</applyto>\n' % key)
f.write(' <owner>gramps</owner>\n')
f.write(' <type>%s</owner>\n' % type)
f.write(' <default>%s</default>\n' % default)
f.write(' <locale name="C">\n')
f.write(' <short>%s</short>\n' % short)
f.write(' <long>%s</long>\n' % long)
f.write(' </locale>\n')
f.write(' </schema>\n')
f.write(' </schemalist>\n')
f.write('</gconfschemafile>\n')
f.close()
f = open("ConfigInterface.py","w")
for (key, key_type, default, long, short, include) in parser.list:
if not include:
continue
data = key.split('/')
category = data[3]
token = data[4]
tkey = token.upper().replace('-','_')
if key_type == "bool":
f.write("GrampsConfigCheckBox(_('%s'),Config.%s)\n" % (short,tkey))
f.close()