Example #1
0
 def __init__(self, software):
     self.kind = get_string(software.SoftwareKind) # enum
     self.producer = get_string(software.SoftwareProducer)
     self.description = get_string(software.Description)
     self.version = get_string(software.Version)
     self.filename = get_string(software.FileName)
     self.file_size = get_uint(software.FileSize)
     self.file_time = get_datetime(software.FileDateTime)
Example #2
0
 def __init__(self, software):
     self.kind = get_string(software.SoftwareKind)  # enum
     self.producer = get_string(software.SoftwareProducer)
     self.description = get_string(software.Description)
     self.version = get_string(software.Version)
     self.filename = get_string(software.FileName)
     self.file_size = get_uint(software.FileSize)
     self.file_time = get_datetime(software.FileDateTime)
Example #3
0
 def __init__(self, system):
     self.active = get_boolean(system.IsActive)
     self.configuration = get_string(system.Digital3DConfiguration)
     self.install_date = get_datetime(system.InstallDate)
     self.screen_color = get_string(system.ScreenColor) # enum
     self.screen_luminance = get_uint(system.ScreenLuminance) # 1 to 29
     self.ghostbusting = get_boolean(system.Ghostbusting)
     self.ghostbusting_configuration = get_string(system.GhostbustingConfiguration)
Example #4
0
 def __init__(self, system):
     self.active = get_boolean(system.IsActive)
     self.configuration = get_string(system.Digital3DConfiguration)
     self.install_date = get_datetime(system.InstallDate)
     self.screen_color = get_string(system.ScreenColor)  # enum
     self.screen_luminance = get_uint(system.ScreenLuminance)  # 1 to 29
     self.ghostbusting = get_boolean(system.Ghostbusting)
     self.ghostbusting_configuration = get_string(
         system.GhostbustingConfiguration)
Example #5
0
    def __init__(self, auditorium):
        self.number = get_uint(auditorium.AuditoriumNumber)
        self.name = get_string(auditorium.AuditoriumName)

        self.supports_35mm = get_boolean(auditorium.Supports35MM)
        self.screen_aspect_ratio = get_string(auditorium.ScreenAspectRatio) # enum
        self.adjustable_screen_mask = get_string(auditorium.AdjustableScreenMask) # enum
        self.audio_format = get_string(auditorium.AudioFormat)
        self.install_date = get_datetime(auditorium.AuditoriumInstallDate)
        self.large_format_type = get_string(auditorium.LargeFormatType)

        self.digital_3d_system = None
        if auditorium.Digital3DSystem:
            self.digital_3d_system = Digital3DSystem(auditorium.Digital3DSystem)

        self.devices = [Device(device) for device in auditorium.DeviceGroupList(u"Device")]
Example #6
0
    def setup_facility(self, flm):
        # Strip the 'urn:x-facilityID' tag from the front of the ID
        self.id = flm.FacilityID.get_text().split(u":", 2)[2]
        self.name = get_string(flm.FacilityName)

        self.alternate_ids = []
        if flm.AlternateFacilityIDList:
            alternate_facilities = flm.AlternateFacilityIDList
            for alternate in alternate_facilities(u"AlternateFacilityID"):
                self.alternate_ids.append(alternate.get_text().split(u":",
                                                                     2)[2])

        self.booking_partner_id = None
        if flm.BookingPartnerFacilityID:
            self.booking_partner_id = flm.BookingPartnerFacilityID.get_text(
            ).split(u":", 2)[2]

        self.timezone = get_string(flm.FacilityTimeZone)
        self.circuit = get_string(flm.Circuit)

        self.addresses = {}
        address_list = flm.AddressList
        if address_list.Physical:
            self.addresses[u'physical'] = Address(address_list.Physical)
        elif address_list.Shipping:
            self.addresses[u'shipping'] = Address(address_list.Shipping)
        elif address_list.Billing:
            self.addresses[u'billing'] = Address(address_list.Billing)

        self.contacts = []
        if flm.ContactList:
            contact_list = flm.ContactList
            self.contacts = [
                Contact(contact) for contact in contact_list(u"Contact")
            ]

        self.auditoriums = {}
        for auditorium in flm(u"Auditorium"):
            # The auditorium numbers and names are unique for a given facility
            new_auditorium = Auditorium(auditorium)
            if new_auditorium.number:
                self.auditoriums[new_auditorium.number] = new_auditorium
            else:
                self.auditoriums[new_auditorium.name] = new_auditorium
Example #7
0
 def __init__(self, address):
     self.addressee = get_string(address.Addressee)
     self.street_address = get_string(address.StreetAddress)
     self.street_address2 = get_string(address.StreetAddress2)
     self.city = get_string(address.City)
     self.province = get_string(address.Province)
     self.postal_code = get_string(address.PostalCode)
     self.country = get_string(address.Country)
Example #8
0
 def __init__(self, address):
     self.addressee = get_string(address.Addressee)
     self.street_address = get_string(address.StreetAddress)
     self.street_address2 = get_string(address.StreetAddress2)
     self.city = get_string(address.City)
     self.province = get_string(address.Province)
     self.postal_code = get_string(address.PostalCode)
     self.country = get_string(address.Country)
Example #9
0
    def __init__(self, device):
        self.type = get_string(device.DeviceTypeID)
        self.id = get_string(device.DeviceIdentifier)
        self.serial = get_string(device.DeviceSerial)

        self.manufacturer_id = None
        if device.ManufacturerID:
            self.manufacturer_id = device.ManufacturerID.get_text().split(
                u":", 2)[2]
        self.manufacturer_name = get_string(device.ManufacturerName)

        self.model_number = get_string(device.ModelNumber)
        self.install_date = get_datetime(device.InstallDate)
        self.resolution = get_string(device.Resolution)
        self.active = get_boolean(device.IsActive)

        self.integrator = get_string(device.Integrator)
        self.vpf_finance_entity = get_string(device.VPFFinanceEntity)
        self.vpf_start_date = None
        if device.VPFStartDate:
            self.vpf_start_date = get_date(device.VPFStartDate)

        self.ip_addresses = []
        if device.IPAddressList:
            self.ip_addresses = [
                IPAddress(ip_address)
                for ip_address in device.IPAddressList(u"IPAddress")
            ]

        self.software = []
        if device.SoftwareList:
            self.software = [
                Software(program)
                for program in device.SoftwareList(u"Software")
            ]

        self.certificates = []
        if device.KeyInfoList:
            self.certificates = [
                Certificate(certificate)
                for certificate in device.KeyInfoList(u"X509Data")
            ]

        self.watermarking = []
        if device.WatermarkingList:
            self.watermarking = [
                Watermarking(watermark)
                for watermark in device.WatermarkingList(u"Watermarking")
            ]

        self.kdm_deliveries = deliveries(device.KDMDeliveryMethodList)
        self.dcp_deliveries = deliveries(device.DCPDeliveryMethodList)
Example #10
0
    def __init__(self, cert):
        self.subject_name = get_string(cert.X509SubjectName)

        fields = {}
        if self.subject_name is not None:
            for attribute in self.subject_name.split(u','):
                # kv_pair is, for example, "OU=DLP-Cinema.TexasInstruments"
                # We split it on the first equals (incase the val contains an equals)
                # If there are 2 items, we store the pair in the fields dict
                kv_pair = attribute.strip().split(u'=', 1)
                if len(kv_pair) == 2:
                    fields[kv_pair[0].lower()] = kv_pair[1]

        # dict.get returns None if key not in dict
        self.root_name = fields.get(u'o')
        self.organization_name = fields.get(u'ou')
        self.entity_name = fields.get(u'cn')
        self.thumbprint = fields.get(u'dnqualifier') or fields.get(u'dnq')

        self.certificate = get_string(cert.X509Certificate)
Example #11
0
    def __init__(self, cert):
        self.subject_name = get_string(cert.X509SubjectName)

        fields = {}
        if self.subject_name is not None:
            for attribute in self.subject_name.split(u','):
                # kv_pair is, for example, "OU=DLP-Cinema.TexasInstruments"
                # We split it on the first equals (incase the val contains an equals)
                # If there are 2 items, we store the pair in the fields dict
                kv_pair = attribute.strip().split(u'=', 1)
                if len(kv_pair) == 2:
                    fields[kv_pair[0].lower()] = kv_pair[1]

        # dict.get returns None if key not in dict
        self.root_name = fields.get(u'o')
        self.organization_name = fields.get(u'ou')
        self.entity_name = fields.get(u'cn')
        self.thumbprint = fields.get(u'dnqualifier') or fields.get(u'dnq')

        self.certificate = get_string(cert.X509Certificate)
Example #12
0
    def __init__(self, auditorium):
        self.number = get_uint(auditorium.AuditoriumNumber)
        self.name = get_string(auditorium.AuditoriumName)

        self.supports_35mm = get_boolean(auditorium.Supports35MM)
        self.screen_aspect_ratio = get_string(
            auditorium.ScreenAspectRatio)  # enum
        self.adjustable_screen_mask = get_string(
            auditorium.AdjustableScreenMask)  # enum
        self.audio_format = get_string(auditorium.AudioFormat)
        self.install_date = get_datetime(auditorium.AuditoriumInstallDate)
        self.large_format_type = get_string(auditorium.LargeFormatType)

        self.digital_3d_system = None
        if auditorium.Digital3DSystem:
            self.digital_3d_system = Digital3DSystem(
                auditorium.Digital3DSystem)

        self.devices = [
            Device(device) for device in auditorium.DeviceGroupList(u"Device")
        ]
Example #13
0
 def __init__(self, contact):
     self.name = get_string(contact.Name)
     self.country = get_string(contact.CountryCode)
     self.phone1 = get_string(contact.Phone1)
     self.phone2 = get_string(contact.Phone2)
     self.email = get_string(contact.Email)
     self.type = get_string(contact.Type)
Example #14
0
 def __init__(self, contact):
     self.name = get_string(contact.Name)
     self.country = get_string(contact.CountryCode)
     self.phone1 = get_string(contact.Phone1)
     self.phone2 = get_string(contact.Phone2)
     self.email = get_string(contact.Email)
     self.type = get_string(contact.Type)
Example #15
0
    def setup_facility(self, flm):
        # Strip the 'urn:x-facilityID' tag from the front of the ID
        self.id = flm.FacilityID.get_text().split(u":", 2)[2]
        self.name = get_string(flm.FacilityName)

        self.alternate_ids = []
        if flm.AlternateFacilityIDList:
            alternate_facilities = flm.AlternateFacilityIDList
            for alternate in alternate_facilities(u"AlternateFacilityID"):
                self.alternate_ids.append(alternate.get_text().split(u":", 2)[2])

        self.booking_partner_id = None
        if flm.BookingPartnerFacilityID:
            self.booking_partner_id = flm.BookingPartnerFacilityID.get_text().split(u":", 2)[2]

        self.timezone = get_string(flm.FacilityTimeZone)
        self.circuit = get_string(flm.Circuit)

        self.addresses = {}
        address_list = flm.AddressList
        if address_list.Physical:
            self.addresses[u'physical'] = Address(address_list.Physical)
        elif address_list.Shipping:
            self.addresses[u'shipping'] = Address(address_list.Shipping)
        elif address_list.Billing:
            self.addresses[u'billing'] = Address(address_list.Billing)

        self.contacts = []
        if flm.ContactList:
            contact_list = flm.ContactList
            self.contacts = [Contact(contact) for contact in contact_list(u"Contact")]

        self.auditoriums = {}
        for auditorium in flm(u"Auditorium"):
            # The auditorium numbers and names are unique for a given facility
            new_auditorium = Auditorium(auditorium)
            if new_auditorium.number:
                self.auditoriums[new_auditorium.number] = new_auditorium
            else:
                self.auditoriums[new_auditorium.name] = new_auditorium
Example #16
0
    def __init__(self, device):
        self.type = get_string(device.DeviceTypeID)
        self.id = get_string(device.DeviceIdentifier)
        self.serial = get_string(device.DeviceSerial)

        self.manufacturer_id = None
        if device.ManufacturerID:
            self.manufacturer_id = device.ManufacturerID.get_text().split(u":", 2)[2]
        self.manufacturer_name = get_string(device.ManufacturerName)

        self.model_number = get_string(device.ModelNumber)
        self.install_date = get_datetime(device.InstallDate)
        self.resolution = get_string(device.Resolution)
        self.active = get_boolean(device.IsActive)

        self.integrator = get_string(device.Integrator)
        self.vpf_finance_entity = get_string(device.VPFFinanceEntity)
        self.vpf_start_date = None
        if device.VPFStartDate:
            self.vpf_start_date = get_date(device.VPFStartDate)

        self.ip_addresses = []
        if device.IPAddressList:
            self.ip_addresses = [IPAddress(ip_address) for ip_address in device.IPAddressList(u"IPAddress")]

        self.software = []
        if device.SoftwareList:
            self.software = [Software(program) for program in device.SoftwareList(u"Software")]

        self.certificates = []
        if device.KeyInfoList:
            self.certificates = [Certificate(certificate) for certificate in device.KeyInfoList(u"X509Data")]

        self.watermarking = []
        if device.WatermarkingList:
            self.watermarking = [Watermarking(watermark) for watermark in device.WatermarkingList(u"Watermarking")]

        self.kdm_deliveries = deliveries(device.KDMDeliveryMethodList)
        self.dcp_deliveries = deliveries(device.DCPDeliveryMethodList)
Example #17
0
 def __init__(self, cert):
     self.name = get_string(cert.X509SubjectName)
     self.certificate = get_string(cert.X509Certificate)
Example #18
0
 def __init__(self, watermarking):
     self.manufacturer = get_string(watermarking.WatermarkManufacturer)
     self.kind = get_string(watermarking.WatermarkKind) # enum
     self.model = get_string(watermarking.WatermarkModel)
     self.version = get_string(watermarking.WatermarkVersion)
Example #19
0
 def __init__(self, ip_address):
     self.address = get_string(ip_address.Address)
     self.host = get_string(ip_address.Host)
Example #20
0
 def __init__(self, watermarking):
     self.manufacturer = get_string(watermarking.WatermarkManufacturer)
     self.kind = get_string(watermarking.WatermarkKind)  # enum
     self.model = get_string(watermarking.WatermarkModel)
     self.version = get_string(watermarking.WatermarkVersion)
Example #21
0
 def __init__(self, ip_address):
     self.address = get_string(ip_address.Address)
     self.host = get_string(ip_address.Host)