[Nuxeo-tickets] [Nuxeo Repository] #1835: folder_contents / content_lib_display_contents is limited to 100 objects

Nuxeo Repository trac at nuxeo.com
Tue Apr 24 14:23:05 CEST 2007


#1835: folder_contents / content_lib_display_contents is limited to 100 objects
------------------------------------------------+---------------------------
 Reporter:  jonathan.winterflood at capgemini.com  |       Owner:  trac     
     Type:  defect                              |      Status:  new      
 Priority:  P2                                  |   Milestone:  CPS 3.4.5
Component:  CPSDefault                          |     Version:  TRUNK    
 Severity:  normal                              |    Keywords:           
------------------------------------------------+---------------------------
 When viewing a folder in a CPSDefault site with folder_contents, only the
 first 100 documents are visible.
 The objects are broken up into pages 1-30; 31-60; 61-90 and 91-100
 whenever the object count is > 100

 The limitation is created by the getBatchList script, whose max_items
 parameter defaults to 100
 The macro content_lib_display_contents/display_contents who calls
 getBatchList does not provide for passing the max_items parameter.

 replacing the following lines:
 {{{
  #!python
  zoom zoom|python:0;
  batches_all python:here.getBatchList(items, columns, items_per_page,
 zoom);
 }}}
 by these:
 {{{
 #!python
  zoom zoom|python:0;
  max_items max_items|python:100;
  batches_all python:here.getBatchList(items, columns, items_per_page,
 zoom, max_items);
 }}}
 allows using the max_items variable

 then, setting max_items to None (eg in folder_contents) allows us to
 display the full contents

-- 
Ticket URL: <https://svn.nuxeo.org/trac/pub/ticket/1835>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository



This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.