4687: global name 'warn' is not defined

svn: r21708
This commit is contained in:
Jérôme Rapinat 2013-03-20 13:59:53 +00:00
parent ada6a11ed7
commit f0f3a5b037

View File

@ -34,7 +34,7 @@ import gtk
import pango import pango
import time import time
import os import os
from gen.ggettext import gettext as _ import logging
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -52,6 +52,7 @@ import GrampsDisplay
from glade import Glade from glade import Glade
from gui.pluginmanager import GuiPluginManager from gui.pluginmanager import GuiPluginManager
from gui.widgets.undoablebuffer import UndoableBuffer from gui.widgets.undoablebuffer import UndoableBuffer
from gen.ggettext import gettext as _
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -691,7 +692,7 @@ class GuiGramplet(object):
handle) handle)
return True return True
else: # overzealous l10n while setting the link? else: # overzealous l10n while setting the link?
warn( "Unknown link type " + link_type, RuntimeWarning, 2) logging.warning( "Unknown link type " + link_type, RuntimeWarning, 2)
return False # did not handle event return False # did not handle event
def set_has_data(self, value): def set_has_data(self, value):