web/views/primary.py
branchstable
changeset 2190 d9f5fd1879fc
parent 2189 08c66a83c3ca
parent 2177 3454adb6164a
child 2217 3a8cee8f8778
--- a/web/views/primary.py	Mon Jun 29 16:09:08 2009 +0200
+++ b/web/views/primary.py	Mon Jun 29 16:09:35 2009 +0200
@@ -57,7 +57,9 @@
         self.content_navigation_components('navcontenttop')
         try:
             self.render_entity_attributes(entity)
-        except TypeError: # XXX bw compat
+        except TypeError, e: # XXX bw compat
+            if 'render_entity' not in e.args[0]:
+                raise
             warn('siderelations argument of render_entity_attributes is '
                  'deprecated (%s)' % self.__class__)
             self.render_entity_attributes(entity, [])
@@ -65,7 +67,9 @@
         if self.main_related_section:
             try:
                 self.render_entity_relations(entity)
-            except TypeError: # XXX bw compat
+            except TypeError, e: # XXX bw compat
+                if 'render_entity' not in e.args[0]:
+                    raise
                 warn('siderelations argument of render_entity_relations is '
                      'deprecated')
                 self.render_entity_relations(entity, [])