- Timestamp:
- 4 Jan 2016, 10:33:46 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/hostels/browser.py
r13533 r13565 175 175 catalog = getUtility(ICatalog, name='beds_catalog') 176 176 beds = catalog.searchResults(bed_type=(None,None)) 177 if len(beds) :177 if len(beds) and not self.request.principal.id == 'admin': 178 178 self.flash(_('You can\'t change the booking session ' 179 179 'before clearing all hostels.'), 180 180 type='warning') 181 181 return 182 self.applyData(self.context, **data) 183 self.flash(_('Settings have been saved.')) 182 msave(self, **data) 184 183 return 185 184
Note: See TracChangeset for help on using the changeset viewer.