changeset 1277:dfc81cee7965

logging Ignore-this: 94972a363ff58716f078098516ad3b
author Drew Perttula <drewp@bigasterisk.com>
date Sun, 14 Jun 2015 15:44:53 +0000
parents e4aafd2242aa
children 79c9474fa940
files light9/editchoicegtk.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/light9/editchoicegtk.py	Sun Jun 14 15:44:03 2015 +0000
+++ b/light9/editchoicegtk.py	Sun Jun 14 15:44:53 2015 +0000
@@ -1,6 +1,8 @@
+import logging
 from gi.repository import Gtk
 from gi.repository import Gdk
 from rdflib import URIRef
+log = logging.getLogger('editchoicegtk')
 
 class Local(object):
     """placeholder for the local uri that EditChoice does not
@@ -50,7 +52,9 @@
             dtype = selection_data.get_data_type()
             if dtype.name() not in ['text/uri-list', 'TEXT']:
                 raise ValueError("unknown DnD selection type %r" % dtype)
-            self.resourceObservable(URIRef(selection_data.get_data().strip()))
+            data = selection_data.get_data().strip()
+            log.debug('drag_data_received data=%r', data)
+            self.resourceObservable(URIRef(data))
         
         self.currentLink.drag_dest_set(
             flags=Gtk.DestDefaults.ALL,