Ignore:
Timestamp:
11 Dec 2011, 14:12:12 (13 years ago)
Author:
Henrik Bettermann
Message:

See last revisions. Do the same for hostels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser.py

    r7321 r7332  
    2424    NullValidator)
    2525from waeup.sirp.browser.breadcrumbs import Breadcrumb
    26 from waeup.sirp.browser.resources import datepicker, datatable, tabs
     26from waeup.sirp.browser.resources import datepicker, datatable, tabs, warning
    2727from waeup.sirp.browser.layout import default_primary_nav_template
    2828from waeup.sirp.browser.pages import delSubobjects
    2929from waeup.sirp.browser.viewlets import (
    3030    ManageActionButton, PrimaryNavTab)
     31from waeup.sirp.browser.layout import jsaction, JSAction
    3132from waeup.sirp.interfaces import ISIRPObject
    3233from waeup.sirp.hostels.vocabularies import NOT_OCCUPIED
     
    120121    label = 'Manage accommodation section'
    121122
     123    def update(self):
     124        warning.need()
     125        return super(HostelsContainerManagePage, self).update()
     126
    122127    # It's quite dangerous to remove entire hostels with its content (beds).
    123128    # Thus, this remove method should be combined with an archiving function.
    124     @grok.action('Remove selected')
     129    @jsaction('Remove selected')
    125130    def delHostels(self, **data):
    126131        form = self.request.form
Note: See TracChangeset for help on using the changeset viewer.