Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 def getCustomAttributesManager():
     """Returns custom attributes manager, specific for the location"""
     return  Location.getDefaultLocation().factory.getCustomAttributesManager()
Ejemplo n.º 4
0
 def getDALManager():
     """Returns data access layer manager, specific for the location"""
     return  Location.getDefaultLocation().factory.getDALManager()
Ejemplo n.º 5
0
 def getEquipmentManager():
     """Returns equipment manager, specific for the location"""
     return Location.getDefaultLocation().factory.getEquipmentManager()
Ejemplo n.º 6
0
 def newCrbsUser():
     """Instantiates new user object, specific for the location"""
     return Location.getDefaultLocation().factory.newCrbsUser()
Ejemplo n.º 7
0
 def newRoomBlocking():
     """Instantiates new blocking object, specific for the location"""
     return Location.getDefaultLocation().factory.newRoomBlocking()
Ejemplo n.º 8
0
 def newReservation():
     """Instantiates new reservation object, specific for the location"""
     return Location.getDefaultLocation().factory.newReservation()
Ejemplo n.º 9
0
 def getCustomAttributesManager():
     """Returns custom attributes manager, specific for the location"""
     return  Location.getDefaultLocation().factory.getCustomAttributesManager()
Ejemplo n.º 10
0
 def getDALManager():
     """Returns data access layer manager, specific for the location"""
     return  Location.getDefaultLocation().factory.getDALManager()
Ejemplo n.º 11
0
 def getEquipmentManager():
     """Returns equipment manager, specific for the location"""
     return Location.getDefaultLocation().factory.getEquipmentManager()
Ejemplo n.º 12
0
 def newCrbsUser():
     """Instantiates new user object, specific for the location"""
     return Location.getDefaultLocation().factory.newCrbsUser()
Ejemplo n.º 13
0
 def newRoomBlocking():
     """Instantiates new blocking object, specific for the location"""
     return Location.getDefaultLocation().factory.newRoomBlocking()
Ejemplo n.º 14
0
 def newReservation():
     """Instantiates new reservation object, specific for the location"""
     return Location.getDefaultLocation().factory.newReservation()