Changeset 3293 for WAeUP_SRP/base/skins
- Timestamp:
- 9 Mar 2008, 13:24:49 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_upload/uploads_index.py
r3292 r3293 42 42 short_id = long_id.replace('.csv','') 43 43 doc = getattr(context, long_id).getContent() 44 logger.info('%s edited object %s' % (member,long_id)) 44 import_layout = request.form.get(short_id)['import_layout'] 45 logger.info('%s set import layout of object %s to %s' % (member,long_id,import_layout)) 45 46 doc.edit(mapping = request.form[short_id]) 46 47 msg, invalid_keys = doc['checkKeys']() … … 95 96 96 97 validate = "upload" in request.keys() 97 mode = " edit"98 mode = "create" 98 99 res,psm,ds = context.portal_layouts.renderLayout(layout_id = 'upload', 99 100 schema_id = 'upload', … … 134 135 d['url'] = upload.absolute_url() 135 136 upload.getContent().edit(mapping=d) 136 logger.info('%s uploaded file %s ' % (member,filename))137 logger.info('%s uploaded file %s in layout mode %s' % (member,filename,d['import_layout'])) 137 138 138 139 request.RESPONSE.redirect(context.absolute_url())
Note: See TracChangeset for help on using the changeset viewer.