- Timestamp:
- 10 Jan 2012, 21:38:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/hostels/browser.py
r7332 r7447 29 29 from waeup.sirp.browser.viewlets import ( 30 30 ManageActionButton, PrimaryNavTab) 31 from waeup.sirp.browser.layout import jsaction, JSAction31 from waeup.sirp.browser.layout import jsaction, action 32 32 from waeup.sirp.interfaces import ISIRPObject 33 33 from waeup.sirp.hostels.vocabularies import NOT_OCCUPIED … … 141 141 return 142 142 143 @ grok.action('Add hostel', validator=NullValidator)143 @action('Add hostel', validator=NullValidator) 144 144 def addSubunit(self, **data): 145 145 self.redirect(self.url(self.context, 'addhostel')) … … 158 158 pnav = 5 159 159 160 @ grok.action('Create hostel')160 @action('Create hostel') 161 161 def addHostel(self, **data): 162 162 hostel = Hostel() … … 230 230 return 231 231 232 @ grok.action('Save')232 @action('Save') 233 233 def save(self, **data): 234 234 msave(self, **data) 235 235 return 236 236 237 @ grok.action('Update all beds')237 @action('Update all beds') 238 238 def updateBeds(self, **data): 239 239 removed, added, modified, modified_beds = self.context.updateBeds() … … 245 245 return 246 246 247 @ grok.action('Switch reservation of selected beds')247 @action('Switch reservation of selected beds') 248 248 def switchReservations(self, **data): 249 249 form = self.request.form … … 273 273 return 274 274 275 @ grok.action('Release selected beds')275 @action('Release selected beds') 276 276 def releaseBeds(self, **data): 277 277 form = self.request.form … … 316 316 self.context.__parent__.hostel_name, co[1], co[2], co[3]) 317 317 318 @ grok.action('Save')318 @action('Save') 319 319 def save(self, **data): 320 320 msave(self, **data)
Note: See TracChangeset for help on using the changeset viewer.