Ignore:
Timestamp:
20 Sep 2012, 08:22:52 (12 years ago)
Author:
uli
Message:

Merge changes from trunk r9171:9207.

Location:
main/waeup.kofa/branches/uli-async-update
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-async-update

  • main/waeup.kofa/branches/uli-async-update/src/waeup/kofa/hostels/interfaces.py

    r9169 r9208  
    1717##
    1818from datetime import datetime
    19 from zope.interface import invariant, Invalid
     19from zope.interface import invariant, Invalid, Attribute
    2020from zope import schema
    2121from waeup.kofa.interfaces import (
     
    5858        )
    5959
     60    def clearAllHostels():
     61        """Clear all hostels.
     62        """
     63
    6064class IHostel(IKofaObject):
    6165    """A base representation of hostels.
     
    6367    """
    6468
     69    bed_statistics = Attribute('Number of booked and total beds')
     70
    6571    def loggerInfo(ob_class, comment):
    6672        """Adds an INFO message to the log file
     73        """
     74
     75    def clearHostel():
     76        """Remove all beds.
    6777        """
    6878
     
    189199    """
    190200
     201    coordinates = Attribute('The coordinates of the bed from bed_id')
     202
    191203    def loggerInfo(ob_class, comment):
    192204        """Adds an INFO message to the log file
    193205        """
    194206
    195     def getBedCoordinates():
    196         """Determine the coordinates from bed_id.
    197         """
    198207    def bookBed(student_id):
    199208        """Book a bed for a student.
Note: See TracChangeset for help on using the changeset viewer.