require explicit registration control tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 18 Feb 2009 15:36:12 +0100
branchtls-sprint
changeset 796 62253c7fe5ba
parent 795 63f4f81e19f1
child 797 9a39da0df3a2
require explicit registration control
web/views/basecomponents.py
--- a/web/views/basecomponents.py	Wed Feb 18 15:18:47 2009 +0100
+++ b/web/views/basecomponents.py	Wed Feb 18 15:36:12 2009 +0100
@@ -253,3 +253,8 @@
     def feed_url(self):
         return self.entity(0, 0).rss_feed_url()
 
+
+def registration_callback(vreg):
+    vreg.register_all(globals().values(), __name__, (SeeAlsoVComponent,))
+    if 'see_also' in vreg.schema:
+        vreg.register(SeeAlsoVComponent)