web/views/basecomponents.py
branchtls-sprint
changeset 796 62253c7fe5ba
parent 758 0c0dfd33a76d
child 939 ad72e06320e2
--- 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)