Ignore:
Timestamp:
9 Mar 2008, 13:24:49 (17 years ago)
Author:
Henrik Bettermann
Message:

improve logging

render form in create mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_upload/uploads_index.py

    r3292 r3293  
    4242        short_id = long_id.replace('.csv','')
    4343        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))
    4546        doc.edit(mapping = request.form[short_id])
    4647        msg, invalid_keys = doc['checkKeys']()
     
    9596
    9697validate = "upload" in request.keys()
    97 mode = "edit"
     98mode = "create"
    9899res,psm,ds = context.portal_layouts.renderLayout(layout_id = 'upload',
    99100                             schema_id = 'upload',
     
    134135d['url'] = upload.absolute_url()
    135136upload.getContent().edit(mapping=d)
    136 logger.info('%s uploaded file %s' % (member,filename))
     137logger.info('%s uploaded file %s in layout mode %s' % (member,filename,d['import_layout']))
    137138
    138139request.RESPONSE.redirect(context.absolute_url())
Note: See TracChangeset for help on using the changeset viewer.