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