Add files via upload

This commit is contained in:
romjerome 2021-04-04 09:10:22 +02:00 committed by GitHub
parent 0442c34258
commit 1f614bd76f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,9 @@ from ..glade import Glade
from gramps.gen.simple import SimpleAccess from gramps.gen.simple import SimpleAccess
from gramps.gen.const import URL_MANUAL_SECT2 from gramps.gen.const import URL_MANUAL_SECT2
import logging
_LOG = logging.getLogger("editlink")
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# Constants # Constants
@ -154,6 +157,12 @@ class EditLink(ManagedWindow):
def _on_new_callback(self, obj): def _on_new_callback(self, obj):
object_class = obj.__class__.__name__ object_class = obj.__class__.__name__
# workaround for bug12260
try:
test = obj.handle
except AttributeError:
_LOG.warn(str(object_class))
return
self.selected.set_text(self.display_link( self.selected.set_text(self.display_link(
object_class, "handle", obj.handle)) object_class, "handle", obj.handle))
self.url_link.set_text("gramps://%s/%s/%s" % self.url_link.set_text("gramps://%s/%s/%s" %