Commit 62e952f1 authored by Aurelien Campeas's avatar Aurelien Campeas
Browse files

missing tab.png for tabs decoration

parent 376f9a4979e7
......@@ -160,6 +160,7 @@ class View(AppRsetObject):
if rset is None:
raise NotImplementedError, self
wrap = self.templatable and len(rset) > 1 and self.add_div_section
print 'vid=%s | rset=%s (%s)' % (self.classid(), rset.printable_rql(), len(rset))
for i in xrange(len(rset)):
if wrap:
self.w(u'<div class="section">')
......@@ -207,7 +208,11 @@ class View(AppRsetObject):
if __fallback_vid is None:
raise
view = self.vreg.select_view(__fallback_vid, self.req, rset, **kwargs)
return view.dispatch(**kwargs)
try:
return view.dispatch(**kwargs)
except:
print 'vid', __vid
raise
def wview(self, __vid, rset, __fallback_vid=None, **kwargs):
"""shortcut to self.view method automatically passing self.w as argument
......
......@@ -103,7 +103,7 @@ class CubicWebRegistry(VRegistry):
registerer.remove_all_equivalents(objects)
break
else:
self.debug('kicking vobject %s (unsupported interface)', obj)
self.debug('kicking vobject %s (unsupported interface)', obj.__name__)
objects.remove(obj)
# if objects is empty, remove oid from registry
if not objects:
......
......@@ -66,7 +66,7 @@ class registerer(vobject_helper):
raise NotImplementedError(str(self.vobject))
def kick(self, registered, kicked):
self.debug('kicking vobject %s', kicked)
self.debug('kicking vobject %s', kicked.__name__)
registered.remove(kicked)
self.kicked.add(kicked.classid())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment