Changeset 7332 for main/waeup.sirp/trunk/src/waeup/sirp/hostels
- Timestamp:
- 11 Dec 2011, 14:12:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser.py
r7321 r7332 24 24 NullValidator) 25 25 from waeup.sirp.browser.breadcrumbs import Breadcrumb 26 from waeup.sirp.browser.resources import datepicker, datatable, tabs 26 from waeup.sirp.browser.resources import datepicker, datatable, tabs, warning 27 27 from waeup.sirp.browser.layout import default_primary_nav_template 28 28 from waeup.sirp.browser.pages import delSubobjects 29 29 from waeup.sirp.browser.viewlets import ( 30 30 ManageActionButton, PrimaryNavTab) 31 from waeup.sirp.browser.layout import jsaction, JSAction 31 32 from waeup.sirp.interfaces import ISIRPObject 32 33 from waeup.sirp.hostels.vocabularies import NOT_OCCUPIED … … 120 121 label = 'Manage accommodation section' 121 122 123 def update(self): 124 warning.need() 125 return super(HostelsContainerManagePage, self).update() 126 122 127 # It's quite dangerous to remove entire hostels with its content (beds). 123 128 # Thus, this remove method should be combined with an archiving function. 124 @ grok.action('Remove selected')129 @jsaction('Remove selected') 125 130 def delHostels(self, **data): 126 131 form = self.request.form
Note: See TracChangeset for help on using the changeset viewer.