Changeset 7332 for main/waeup.sirp
- Timestamp:
- 11 Dec 2011, 14:12:12 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r7330 r7332 37 37 SIRPPage, SIRPEditFormPage, SIRPAddFormPage, SIRPDisplayFormPage) 38 38 from waeup.sirp.browser.breadcrumbs import Breadcrumb 39 from waeup.sirp.browser.layout import NullValidator 39 from waeup.sirp.browser.layout import NullValidator, jsaction, JSAction 40 40 from waeup.sirp.browser.pages import add_local_role, del_local_roles 41 41 from waeup.sirp.browser.resources import datepicker, tabs, datatable, warning 42 42 from waeup.sirp.browser.viewlets import ManageActionButton, PrimaryNavTab 43 from waeup.sirp.browser.layout import jsaction, JSAction44 43 from waeup.sirp.interfaces import ( 45 44 ISIRPObject, ILocalRolesAssignable, IExtFileStore, -
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.