Changeset 10981 for main/waeup.kofa/branches/uli-diazo-themed/src
- Timestamp:
- 24 Jan 2014, 16:21:37 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/layout.py
r10974 r10981 151 151 return self.url(site, name) 152 152 153 def flash(self, message, type=' alert-message warning'):153 def flash(self, message, type='success'): 154 154 """Send a short message to the user. 155 155 """ 156 cssClass = 'alert alert-%s' % type 156 157 source = queryUtility(IMessageSource, name='session') 157 158 if source is None: 158 159 return None 159 source.send(message, type)160 source.send(message, cssClass) 160 161 return True 161 162
Note: See TracChangeset for help on using the changeset viewer.