Ignore:
Timestamp:
21 Sep 2012, 08:19:35 (12 years ago)
Author:
uli
Message:

Rollback r9209. Looks like multiple merges from trunk confuse svn when merging back into trunk.

Location:
main/waeup.kofa/branches/uli-zc-async
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-zc-async

  • main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/utils/helpers.py

    r9209 r9211  
    520520            if exclude_methods and isinstance(descr, Method):
    521521                continue
    522             if name in result:
    523                 continue
    524522            result.append(name)
    525523    return result
     
    685683        writer.writerow(row)
    686684    return tmp_path
     685
     686# Save function used for save methods in pages
     687def msave(view, **data):
     688    changed_fields = view.applyData(view.context, **data)
     689    # Turn list of lists into single list
     690    if changed_fields:
     691        changed_fields = reduce(lambda x,y: x+y, changed_fields.values())
     692    fields_string = ' + '.join(changed_fields)
     693    view.flash(_('Form has been saved.'))
     694    ob_class = view.__implemented__.__name__.replace('waeup.kofa.','')
     695    if fields_string:
     696        grok.getSite().logger.info('%s - saved: %s' % (ob_class, fields_string))
     697    return
Note: See TracChangeset for help on using the changeset viewer.