- Timestamp:
- 21 Sep 2012, 08:19:35 (12 years ago)
- Location:
- main/waeup.kofa/branches/uli-zc-async
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-zc-async
- Property svn:mergeinfo changed
/main/waeup.kofa/branches/uli-async-update removed /main/waeup.kofa/branches/uli-autoinclude-less removed /main/waeup.kofa/trunk removed
- Property svn:mergeinfo changed
-
main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/utils/helpers.py
r9209 r9211 520 520 if exclude_methods and isinstance(descr, Method): 521 521 continue 522 if name in result:523 continue524 522 result.append(name) 525 523 return result … … 685 683 writer.writerow(row) 686 684 return tmp_path 685 686 # Save function used for save methods in pages 687 def 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.