Changeset 1895 for WAeUP_SRP/trunk
- Timestamp:
- 14 Jun 2007, 04:13:33 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r1890 r1895 139 139 pxtool = getToolByName(self, 'portal_proxies') 140 140 pxtool_infos = pxtool.getRevisionsUsed() 141 141 142 142 nb_revs = 0 143 143 docids_d = {} # all docids … … 146 146 ids_unused_revs = [] # ids for unused revs 147 147 total = 0 148 for id in repository.objectIds(): 148 idlist = repository.objectIds() 149 for id in idlist: 149 150 docid, rev = repository._splitId(id) 150 151 if docid is None: … … 165 166 total += max 166 167 logger.info('removed %d total %d unused docids ' % (max,total)) 167 anz = len(ids_unused_revs) 168 anz = len(ids_unused_revs) 168 169 if anz > 0: 169 170 repository.manage_delObjects(ids_unused_revs) … … 171 172 total += anz 172 173 logger.info('finished removing %d unused docids ' % (total)) 173 174 174 175 175 176 ###)
Note: See TracChangeset for help on using the changeset viewer.