Changeset 6644 for main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Timestamp:
- 28 Aug 2011, 20:05:42 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6622 r6644 762 762 self.flash('Form has been saved.') 763 763 ob_class = self.__implemented__.__name__.replace('waeup.sirp.','') 764 self.context.loggerInfo(ob_class, 'saved: % s' % fields_string) 764 if fields_string: 765 self.context.loggerInfo(ob_class, 'saved: % s' % fields_string) 765 766 return 766 767 -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py
r6471 r6644 8 8 from waeup.sirp.interfaces import IObjectHistory, IWAeUPWorkflowInfo 9 9 from waeup.sirp.workflow import WAeUPWorkflow, WAeUPWorkflowInfo 10 from waeup.sirp.utils.helpers import get_current_principal 10 11 11 12 INITIALIZED = 'initialized' … … 124 125 history = IObjectHistory(obj) 125 126 history.addMessage(msg) 127 # In some tests we don't have a an applicants root or a user 128 try: 129 user = get_current_principal() 130 applicants_root = grok.getSite()['applicants'] 131 applicants_root.logger.info('%s - %s - %s' % (user.id,obj.access_code,msg)) 132 except (TypeError, AttributeError): 133 pass 126 134 return
Note: See TracChangeset for help on using the changeset viewer.