comparison browser_side/base_widget.py @ 334:9c6be29c714a

browser side: removed logging imports: it's not working correctly with pyjamas
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2014 16:49:20 +0100
parents 0b7934e75e76
children 2067d6241927
comparison
equal deleted inserted replaced
333:c01397d18026 334:9c6be29c714a
38 from pyjamas import DOM 38 from pyjamas import DOM
39 from pyjamas import Window 39 from pyjamas import Window
40 from __pyjamas__ import doc 40 from __pyjamas__ import doc
41 41
42 import dialog 42 import dialog
43 import logging
44 from tools import LiberviaDragWidget 43 from tools import LiberviaDragWidget
45 44
46 45
47 class DropCell(DropWidget): 46 class DropCell(DropWidget):
48 """Cell in the middle grid which replace itself with the dropped widget on DnD""" 47 """Cell in the middle grid which replace itself with the dropped widget on DnD"""
213 if class_ is None: 212 if class_ is None:
214 return current # this is the default behavior 213 return current # this is the default behavior
215 while current is not None and not isinstance(current, class_): 214 while current is not None and not isinstance(current, class_):
216 current = Widget.getParent(current) 215 current = Widget.getParent(current)
217 if current is None and verbose: 216 if current is None and verbose:
218 logging.error("Can't find parent %s for %s" % (class_, self)) 217 print "Can't find parent %s for %s" % (class_, self)
219 return current 218 return current
220 219
221 def onClick(self, sender): 220 def onClick(self, sender):
222 self.host.setSelected(self) 221 self.host.setSelected(self)
223 222