--- a/common/view.py Wed Jan 07 17:17:16 2009 +0100
+++ b/common/view.py Wed Jan 07 18:20:35 2009 +0100
@@ -160,6 +160,7 @@
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 @@
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