Changeset 3076 for WAeUP_SRP/base/skins/waeup_pins/search_pins.py
- Timestamp:
- 31 Jan 2008, 18:29:58 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_pins/search_pins.py
r2766 r3076 12 12 list Students for ClearanceOfficers 13 13 """ 14 try: 15 from Products.zdb import set_trace 16 except: 17 def set_trace(): 18 pass 14 19 15 20 request = REQUEST … … 111 116 batches = context.objectIds() 112 117 batches.sort() 113 info['batches'] = batches 118 l = [] 119 cols = 6 120 rows,rest = divmod(len(batches),cols) 121 for r in range(rows): 122 von = r*cols 123 l += batches[von:von+cols], 124 if rest: 125 von = r*cols + cols 126 l += batches[von:von+rest], 127 info['batches'] = l 114 128 view = context.pins_view 115 129 if psm == '':
Note: See TracChangeset for help on using the changeset viewer.