Fix import

This commit is contained in:
Jean-Marie Traissard 2006-11-18 19:35:25 +00:00
parent 5b96b90a2d
commit 5b49eaae1c
1 changed files with 2 additions and 4 deletions

View File

@ -38,6 +38,7 @@ from cStringIO import StringIO
import urllib2 import urllib2
import operator import operator
from common import gajim
#from common import i18n #from common import i18n
@ -728,7 +729,7 @@ class HtmlHandler(xml.sax.handler.ContentHandler):
#self._insert_text(u"\u2550"*40) #self._insert_text(u"\u2550"*40)
self._jump_line() self._jump_line()
except Exception, e: except Exception, e:
log.debug(str("Error in hr"+e)) gajim.log.debug(str("Error in hr"+e))
elif name in LIST_ELEMS: elif name in LIST_ELEMS:
self.list_counters.pop() self.list_counters.pop()
elif name == 'li': elif name == 'li':
@ -773,11 +774,8 @@ class HtmlTextView(gtk.TextView):
self.connect("enter-notify-event", self.__motion_notify_event) self.connect("enter-notify-event", self.__motion_notify_event)
self.get_buffer().create_tag('eol', scale = pango.SCALE_XX_SMALL) self.get_buffer().create_tag('eol', scale = pango.SCALE_XX_SMALL)
self.tooltip = tooltips.BaseTooltip() self.tooltip = tooltips.BaseTooltip()
# needed to avoid bootstrapping problems
from common import gajim
self.config = gajim.config self.config = gajim.config
self.interface = gajim.interface self.interface = gajim.interface
self.log = gajim.log
# end big hack # end big hack
build_patterns(self,gajim.config,gajim.interface) build_patterns(self,gajim.config,gajim.interface)