Changeset 2314 for WAeUP_SRP/base
- Timestamp:
- 5 Oct 2007, 06:02:53 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_default/import.py
r2262 r2314 14 14 current = DateTime.DateTime() 15 15 pr = context.portal_registration 16 17 logger = logging.getLogger('Skins.import') 18 mtool = context.portal_membership 19 member = mtool.getAuthenticatedMember() 16 20 17 21 validate = REQUEST.has_key("import") … … 32 36 if enable: 33 37 context.portal_catalog.setBypassQueue(1) 38 logger.info('%s enabled QueueCatalog Bypass' % (member)) 34 39 psm = "QueueCatalog Bypass enabled!" 35 40 #return REQUEST.RESPONSE.redirect("%s" % context.absolute_url()) 36 41 elif disable: 37 42 context.portal_catalog.setBypassQueue(0) 43 logger.info('%s disabled QueueCatalog Bypass' % (member)) 38 44 psm = "QueueCatalog Bypass disabled!" 39 45 elif psm == 'invalid': … … 52 58 ds.get('import_or_edit') 53 59 ) 60 logger.info('%s started import of file %s with schema import_%s in %s mode' % (member,ds.get('filename'),ds.get('name'),)ds.get('import_or_edit')) 61 54 62 return context.import_form(rendered = res, 55 63 psm = psm,
Note: See TracChangeset for help on using the changeset viewer.