Changeset 13194 for main/waeup.uniben/trunk/src/waeup
- Timestamp:
- 9 Aug 2015, 22:48:32 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/scripts.py
r13193 r13194 50 50 it for a new connection to the ZODB. 51 51 """ 52 # https://github.com/zopefoundation/ZODB/blob/master/src/ZODB/cross-database-references.txt 52 # https://github.com/zopefoundation/ZODB/\ 53 # blob/master/src/ZODB/cross-database-references.txt 53 54 databases = {} 54 55 root_dir = INSTANCE_HOME … … 88 89 studs = uni['students'] 89 90 90 parts = partition(studs)91 parts = partition(studs) 91 92 print(parts) 92 93 … … 162 163 num = len(container) 163 164 print("Container elements: %s" % num) 164 return [(idx, start, min(start + part_size - 1, num - 1)) 165 for idx, start in enumerate(range(0, num, part_size))] 165 return [ 166 (idx, start, min(start + part_size - 1, num - 1)) 167 for idx, start in enumerate(range(0, num, part_size))]
Note: See TracChangeset for help on using the changeset viewer.