Ignore:
Timestamp:
31 Jan 2008, 18:29:58 (17 years ago)
Author:
joachim
Message:

add archive and archive_delete, show all batches in pins_view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_pins/search_pins.py

    r2766 r3076  
    1212list Students for ClearanceOfficers
    1313"""
     14try:
     15    from Products.zdb import set_trace
     16except:
     17    def set_trace():
     18        pass
    1419
    1520request = REQUEST
     
    111116    batches = context.objectIds()
    112117    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
    114128    view = context.pins_view
    115129if psm == '':
Note: See TracChangeset for help on using the changeset viewer.