Ignore:
Timestamp:
15 Jul 2015, 11:26:22 (9 years ago)
Author:
Henrik Bettermann
Message:

More docs.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/hostels
Files:
4 edited

Legend:

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

    r13166 r13170  
    141141            for id in child_id:
    142142                deleted.append(id)
    143             self.context.writeLogMessage(self, 'deleted: % s' % ', '.join(deleted))
     143            self.context.writeLogMessage(
     144                self, 'deleted: % s' % ', '.join(deleted))
    144145        delSubobjects(self, redirect='@@manage', tab='2')
    145146        return
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/hostel.py

    r13168 r13170  
    118118                        if uid in self:
    119119                            bed = self[uid]
    120                             # Renumber remaining beds
     120                            # Renumber remaining bed
    121121                            bed.bed_number = len(self) + 1 - remaining
    122122                            remaining -= 1
     
    157157
    158158    # The following property attributes are only needed
    159     # for the exporter to ease evaluation with  Excel.
     159    # for the exporter to ease evaluation with Excel.
    160160
    161161    @property
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/interfaces.py

    r13167 r13170  
    215215    """
    216216
    217     coordinates = Attribute('The coordinates of the bed from bed_id')
     217    coordinates = Attribute('Coordinates tuple derived from bed_id')
     218    hall = Attribute('Hall id, for exporter only')
     219    block = Attribute('Block letter, for exporter only')
     220    room = Attribute('Room number, for exporter only')
     221    bed = Attribute('Bed letter, for exporter only')
     222    special_handling = Attribute('Special handling code, for exporter only')
     223    sex = Attribute('Sex, for exporter only')
     224    bt = Attribute('Last part of bed type, for exporter only')
    218225
    219226    def bookBed(student_id):
     
    267274            allocated_bed = [bed.bed_id for bed in beds][0]
    268275            raise Invalid(_(
    269                 "This student resides in bed ${a}.", mapping = {'a':allocated_bed}))
     276                "This student resides in bed ${a}.",
     277                mapping = {'a':allocated_bed}))
    270278
    271279    def writeLogMessage(view, message):
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py

    r13165 r13170  
    7777                IBed, Bed)
    7878            )
     79        bed = Bed()
     80        bed.bed_id = u'a_b_c_d'
     81        bed.bed_type = u'a_b_c'
    7982        self.assertTrue(
    8083            verifyObject(
    81                 IBed, Bed())
     84                IBed, bed)
    8285            )
    8386        return
Note: See TracChangeset for help on using the changeset viewer.