Changeset 3324
- Timestamp:
- 12 Mar 2008, 10:56:08 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_upload/import_uploads.py
r3320 r3324 27 27 member = mtool.getAuthenticatedMember() 28 28 29 #set_trace()30 29 lt = context.portal_layouts 31 30 #pr = context.portal_registration … … 33 32 ids = request.get('ids',[]) 34 33 35 bypass_enabled = False36 34 messages = [] 37 35 for long_id in ids: 38 36 short_id = long_id.replace('.csv','') 39 37 doc = getattr(context, long_id).getContent() 40 #msg, invalid_keys = doc['checkKeys']() 41 #if msg or invalid_keys: 42 # continue 43 if not bypass_enabled: 38 msg, invalid_keys = doc['checkKeys']() 39 if msg: 40 messages += msg, 41 continue 42 if not context.portal_catalog.getBypassQueue(): 44 43 context.portal_catalog.setBypassQueue(1) 45 44 context.waeup_tool.doCommit() … … 51 50 messages += msg, 52 51 53 if bypass_enabled:52 if context.portal_catalog.getBypassQueue(): 54 53 context.portal_catalog.setBypassQueue(0) 55 54 context.waeup_tool.doCommit() 55 56 56 args = {} 57 57 args['portal_status_message'] = '\r\n'.join(messages)
Note: See TracChangeset for help on using the changeset viewer.