Changeset 7332 for main/waeup.sirp


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

See last revisions. Do the same for hostels.

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  
    3737    SIRPPage, SIRPEditFormPage, SIRPAddFormPage, SIRPDisplayFormPage)
    3838from waeup.sirp.browser.breadcrumbs import Breadcrumb
    39 from waeup.sirp.browser.layout import NullValidator
     39from waeup.sirp.browser.layout import NullValidator, jsaction, JSAction
    4040from waeup.sirp.browser.pages import add_local_role, del_local_roles
    4141from waeup.sirp.browser.resources import datepicker, tabs, datatable, warning
    4242from waeup.sirp.browser.viewlets import ManageActionButton, PrimaryNavTab
    43 from waeup.sirp.browser.layout import jsaction, JSAction
    4443from waeup.sirp.interfaces import (
    4544    ISIRPObject, ILocalRolesAssignable, IExtFileStore,
  • 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.