* src/DisplayTrace.py: identify more linux versions
svn: r1803
This commit is contained in:
parent
3011d67204
commit
e4a1d75f14
@ -45,10 +45,14 @@ import const
|
||||
from intl import gettext as _
|
||||
|
||||
_release_files = [
|
||||
"/etc/redhat-release",
|
||||
"/etc/mandrake-release",
|
||||
"/etc/redhat-release",
|
||||
"/etc/turbolinux-release",
|
||||
"/etc/debian-version",
|
||||
"/etc/environment.corel",
|
||||
"/etc/debian-release",
|
||||
"/etc/SuSE-release",
|
||||
"/etc/slackware-release",
|
||||
"/etc/gentoo-release",
|
||||
]
|
||||
|
||||
@ -73,6 +77,7 @@ class DisplayTrace:
|
||||
msg.write("LANG : %s\n" % os.environ['LANG'])
|
||||
msg.write("Python : %s.%s.%s %s\n" % (ver[0],ver[1],ver[2],ver[3]))
|
||||
msg.write("GTK : %s.%s.%s\n" % gtk.gtk_version)
|
||||
msg.write('PyGTK : %d.%d.%d\n' % gtk.pygtk_version)
|
||||
for n in _release_files:
|
||||
if os.path.isfile(n):
|
||||
try:
|
||||
|
@ -811,9 +811,9 @@ class Gramps:
|
||||
|
||||
def tool_callback(self,val):
|
||||
if val:
|
||||
import_tool_callback()
|
||||
self.import_tool_callback()
|
||||
|
||||
def import_tool_callback(self,val):
|
||||
def import_tool_callback(self):
|
||||
Utils.modified()
|
||||
self.clear_person_tabs()
|
||||
self.full_update()
|
||||
|
@ -75,20 +75,23 @@ class ReorderIds:
|
||||
# hasn't already been chosen. If it has, put this
|
||||
# in the duplicate id list
|
||||
|
||||
index = match.groups()[0]
|
||||
newid = prefix % int(index)
|
||||
if newid == id:
|
||||
continue
|
||||
elif data_map.has_key(newid):
|
||||
try:
|
||||
index = match.groups()[0]
|
||||
newid = prefix % int(index)
|
||||
if newid == id:
|
||||
continue
|
||||
elif data_map.has_key(newid):
|
||||
dups.append(id)
|
||||
else:
|
||||
newids.append(id)
|
||||
data = data_map[id]
|
||||
data.setId(newid)
|
||||
data_map[newid] = data
|
||||
del data_map[id]
|
||||
if update:
|
||||
update(newid,id)
|
||||
except:
|
||||
dups.append(id)
|
||||
else:
|
||||
newids.append(id)
|
||||
data = data_map[id]
|
||||
data.setId(newid)
|
||||
data_map[newid] = data
|
||||
del data_map[id]
|
||||
if update:
|
||||
update(newid,id)
|
||||
else:
|
||||
dups.append(id)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user