Check for None as value for update function
svn: r1109
This commit is contained in:
parent
ff83ad8d29
commit
7248038876
@ -366,12 +366,13 @@ class GrampsParser:
|
||||
self.object.setMimeType(u2l(attrs['mime']))
|
||||
self.object.setDescription(u2l(attrs['description']))
|
||||
src = u2l(attrs["src"])
|
||||
if src[0] != '/':
|
||||
self.object.setPath("%s/%s" % (self.base,src))
|
||||
self.object.setLocal(1)
|
||||
else:
|
||||
self.object.setPath(src)
|
||||
self.object.setLocal(0)
|
||||
if src:
|
||||
if src[0] != '/':
|
||||
self.object.setPath("%s/%s" % (self.base,src))
|
||||
self.object.setLocal(1)
|
||||
else:
|
||||
self.object.setPath(src)
|
||||
self.object.setLocal(0)
|
||||
|
||||
def stop_object(self,tag):
|
||||
self.object = None
|
||||
|
@ -100,9 +100,8 @@ def importData(database, filename, callback):
|
||||
traceback.print_exc()
|
||||
return 0
|
||||
except:
|
||||
GnomeErrorDialog(_("Error reading %s") % filename)
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
import DisplayTrace
|
||||
DisplayTrace.DisplayTrace()
|
||||
return 0
|
||||
|
||||
xml_file.close()
|
||||
@ -192,9 +191,8 @@ def loadRevision(database, file, filename, revision, callback=None):
|
||||
traceback.print_exc()
|
||||
return 0
|
||||
except:
|
||||
GnomeErrorDialog(_("Error reading %s") % filename)
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
import DisplayTrace
|
||||
DisplayTrace.DisplayTrace()
|
||||
return 0
|
||||
|
||||
file.close()
|
||||
|
@ -83,7 +83,8 @@ class SourceSelector:
|
||||
del self.orig[:]
|
||||
for s in self.list:
|
||||
self.orig.append(s)
|
||||
self.update(self.parent)
|
||||
if self.update:
|
||||
self.update(self.parent)
|
||||
Utils.destroy_passed_object(self.sourcesel)
|
||||
|
||||
def on_edit_src_clicked(self,obj):
|
||||
|
Loading…
Reference in New Issue
Block a user