Compare commits

...

1 Commits

Author SHA1 Message Date
romjerome
1f614bd76f
Add files via upload 2021-04-04 09:10:22 +02:00

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" %