web/views/primary.py
branchstable
changeset 6283 c827fa795a6b
parent 6255 e2d51d6ba654
child 6288 17cd9ae3d2d5
--- a/web/views/primary.py	Fri Sep 17 16:54:56 2010 +0200
+++ b/web/views/primary.py	Fri Sep 17 16:54:57 2010 +0200
@@ -290,12 +290,15 @@
 
 
 class RelatedView(EntityView):
+    """Display a rset, usually containing entities linked to another entity
+    being displayed.
+
+    It will try to display nicely according to the number of items in the result
+    set.
+    """
     __regid__ = 'autolimited'
 
     def call(self, **kwargs):
-        # nb: rset is retreived using entity.related with limit + 1 if any.
-        # Because of that, we know that rset.printable_rql() will return rql
-        # with no limit set anyway (since it's handled manually)
         if 'dispctrl' in self.cw_extra_kwargs:
             limit = self.cw_extra_kwargs['dispctrl'].get('limit')
             subvid = self.cw_extra_kwargs['dispctrl'].get('subvid', 'incontext')