def _dragDataGet(self, widget, context, data, info, timestamp): "Returns data for the GTK DnD protocol." LOG.debug("GTK DnD dragDataGet with info=%d"%(info,)) model, iRow = self.view.get_selection().get_selected() obj = model[iRow][1] if isinstance(obj, concept.Concept): extdata = externalize(obj) data.set(INFO_PROJECTS_ATTRPATH.name, 0, pickle.dumps(extdata))
def externalize(self): return self.project.concepts.index(self), externalize(self.project)
def externalize(self): return self._id, externalize(self.root)