def newRoom( locationName="" ): """Instantiates new room object, specific for the location""" location = Location.parse(locationName) if not location: location = Location.getDefaultLocation() room = location.factory.newRoom() room.locationName = location.friendlyName return room
def getCustomAttributesManager(): """Returns custom attributes manager, specific for the location""" return Location.getDefaultLocation().factory.getCustomAttributesManager()
def getDALManager(): """Returns data access layer manager, specific for the location""" return Location.getDefaultLocation().factory.getDALManager()
def getEquipmentManager(): """Returns equipment manager, specific for the location""" return Location.getDefaultLocation().factory.getEquipmentManager()
def newCrbsUser(): """Instantiates new user object, specific for the location""" return Location.getDefaultLocation().factory.newCrbsUser()
def newRoomBlocking(): """Instantiates new blocking object, specific for the location""" return Location.getDefaultLocation().factory.newRoomBlocking()
def newReservation(): """Instantiates new reservation object, specific for the location""" return Location.getDefaultLocation().factory.newReservation()