Changeset 6993


Ignore:
Timestamp:
3 Nov 2011, 21:19:00 (13 years ago)
Author:
Henrik Bettermann
Message:

Extend ISessionConfiguration and fix utils.py.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
3 edited

Legend:

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

    r6990 r6993  
    302302        )
    303303
     304    booking_fee = schema.Int(
     305        title = u'Booking Fee',
     306        default = 0,
     307        )
     308
     309    maint_fee = schema.Int(
     310        title = u'Maintenance Fee',
     311        default = 0,
     312        )
     313
    304314    def getSessionString():
    305315        """Returns the session string from the vocabulary.
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r6992 r6993  
    10601060    grok.require('waeup.handleStudent')
    10611061    grok.template('enterpin')
    1062     ac_prefix = 'CLR'
     1062    ac_prefix = 'HOS'
    10631063    label = 'Add bed ticket'
    10641064    title = 'Add bed ticket'
    10651065    pnav = 4
    10661066    buttonname = 'Create bed ticket'
     1067    notice = ''
    10671068
    10681069    # To be sepezified in customization packages
     
    11001101                return
    11011102        bedticket = createObject(u'waeup.BedTicket')
    1102         #self.applyData(bedticket, **data)
    11031103        bedticket.booking_code = pin
    11041104        bedticket.bed = u'Test Bed'
  • main/waeup.sirp/trunk/src/waeup/sirp/students/utils.py

    r6992 r6993  
    5353    bookin_fee = maint_fee = 0
    5454    error = u''
    55     booking_session = getSite()['configuration'].accommodation_session
    56     allowed_states = getSite()['configuration'].accommodation_states
     55    site_confoguration = getSite()['configuration']
     56    booking_session = site_confoguration.accommodation_session
     57    allowed_states = site_confoguration.accommodation_states
    5758    session = str(booking_session)
    5859    try:
Note: See TracChangeset for help on using the changeset viewer.