Changeset 1024
- Timestamp:
- 12/07/07 15:24:36
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qPloneSkinDump/branches/plone_3.0/skin_template/utils.py
r999 r1024 1 1 import transaction 2 2 import os, sys, re, string 3 from sets import Set 3 4 from StringIO import StringIO 4 5 from time import gmtime, strftime … … 9 10 from Products.CMFCore.DirectoryView import addDirectoryViews 10 11 from Products.%(SKIN_PRODUCT_NAME)s.config import * 12 from fixes import fix 11 13 12 14 ###################################################################### … … 193 195 print >> import_out, SUMMARY_CLEAN 194 196 197 def fixImportingIssues(portal, beforeimporting_objects): 198 ''' Fix defects of importing process: reindexing, other''' 199 afterimporting_objects = portal.objectItems() 200 diff_objects = list(Set(afterimporting_objects)-Set(beforeimporting_objects)) 201 for id, ob in diff_objects: 202 if id.startswith('back_'): 203 continue 204 fix(ob) 205 195 206 ################ MAIN ################ 196 207 def performImportToPortal(portal): … … 199 210 instance_ipath, product_ipath, temp_dir_path, product_file_names = copyToInstanceImport() 200 211 if product_file_names: 212 beforeimporting_objects = portal.objectItems() 201 213 importToPortalRoot(portal, product_file_names, temp_dir_path) 214 fixImportingIssues(portal, beforeimporting_objects) 202 215 cleanInstanceImport(instance_ipath, product_file_names, temp_dir_path) 203 216 else:
