Ignore:
Timestamp:
24 Oct 2012, 06:37:08 (12 years ago)
Author:
Henrik Bettermann
Message:

Students book accommodation without AC. Bed is randomly selected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.futminna/trunk/src/waeup/futminna/students/utils.py

    r9402 r9403  
    1717##
    1818import grok
     19import random
    1920from time import time
    2021from zope.component import createObject
     
    2829
    2930    """
     31
     32    def selectBed(self, available_beds):
     33        """Randomly select a bed from a list of available beds.
     34
     35        """
     36        return random.choice(available_beds)
    3037
    3138    def getReturningData(self, student):
Note: See TracChangeset for help on using the changeset viewer.