oops, these were committed unintentionnally
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 07 Jan 2009 18:27:52 +0100
changeset 355 89ad20af9e4c
parent 354 2dd04e5bd38a
child 356 27eec9130898
oops, these were committed unintentionnally
common/view.py
cwvreg.py
vregistry.py
--- a/common/view.py	Wed Jan 07 18:20:35 2009 +0100
+++ b/common/view.py	Wed Jan 07 18:27:52 2009 +0100
@@ -160,7 +160,6 @@
         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">')
@@ -208,11 +207,7 @@
             if __fallback_vid is None:
                 raise
             view = self.vreg.select_view(__fallback_vid, self.req, rset, **kwargs)
-        try:
-            return view.dispatch(**kwargs)
-        except:
-            print 'vid', __vid
-            raise
+        return view.dispatch(**kwargs)
     
     def wview(self, __vid, rset, __fallback_vid=None, **kwargs):
         """shortcut to self.view method automatically passing self.w as argument
--- a/cwvreg.py	Wed Jan 07 18:20:35 2009 +0100
+++ b/cwvreg.py	Wed Jan 07 18:27:52 2009 +0100
@@ -103,7 +103,7 @@
                                             registerer.remove_all_equivalents(objects)
                                         break
                                 else:
-                                    self.debug('kicking vobject %s (unsupported interface)', obj.__name__)
+                                    self.debug('kicking vobject %s (unsupported interface)', obj)
                                     objects.remove(obj)
                     # if objects is empty, remove oid from registry
                     if not objects:
--- a/vregistry.py	Wed Jan 07 18:20:35 2009 +0100
+++ b/vregistry.py	Wed Jan 07 18:27:52 2009 +0100
@@ -66,7 +66,7 @@
         raise NotImplementedError(str(self.vobject))
         
     def kick(self, registered, kicked):
-        self.debug('kicking vobject %s', kicked.__name__)
+        self.debug('kicking vobject %s', kicked)
         registered.remove(kicked)
         self.kicked.add(kicked.classid())