spyne models

class OpenTravelBaseModel(ComplexModel): __namespace__ = 'http://www.opentravel.org/OTA/2003/05' class LengthOfStay(OpenTravelBaseModel): MinMaxMessageType = String Time = Integer class StatusApplicationControl(OpenTravelBaseModel): End = Date Start = Date InvTypeCode = String RatePlanCode = String class RestrictionStatus(ComplexModel): __type_name__ = 'RestrictionStatus' Status = XmlAttribute(Unicode, use='optional') Restriction = XmlAttribute(Unicode(values=['Arrival', 'Master', 'Departure', 'NonGuarantee', 'TravelAgent']), use='optional') SellThroughOpenIndicator = XmlAttribute(Boolean, use='optional') class LengthsOfStay(OpenTravelBaseModel): LengthOfStay = LengthOfStay class AvailStatusMessage(OpenTravelBaseModel): LengthsOfStay = LengthsOfStay RestrictionStatus = RestrictionStatus BookingLimit = Integer StatusApplicationControl = StatusApplicationControl class AvailStatusMessages(OpenTravelBaseModel): AvailStatusMessage = complex.Array(AvailStatusMessage, wrapped=False) HotelCode = String

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.