Пример #1
0
    def q5c_species(self):
        v = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts' \
                     '/SpeciesList/text()'][0]
        other = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts/SpeciesList'\
                         '/Q5c_SpeciesOther/text()']

        return ItemListFiltered(v.split(' ') + other)
Пример #2
0
    def q5c_habitats(self):
        v = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts' \
                     '/Habitats/text()']
        other = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts/Habitats' \
                         '/Q5c_HabitatsOther/text()']

        return ItemListFiltered(v + other)
Пример #3
0
    def q5c_pressures(self):
        v = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts' \
                     '/Pressures/text()'][0]
        other = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts' \
                         '/Pressures/Q5c_PressureOther/text()']

        return ItemListFiltered(v.split(' ') + other)
Пример #4
0
    def q5c_physical(self):
        v = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts' \
                     '/PhysicalChemicalFeatures/text()'][0]
        other = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts' \
                         '/PhysicalChemicalFeatures' \
                         '/Q5c_PhysicalChemicalOther/text()']

        return ItemListFiltered(v.split(' ') + other)
Пример #5
0
    def q2a_public_dates(self):
        nodes = self.r['Q2a_PublicConsultationDates']
        v = []

        for node in nodes:
            start = node.xpath('StartDate/text()')[0]
            end = node.xpath('EndDate/text()')[0]

            v.append('{} / {}'.format(start, end))

        return ItemListFiltered(v)
Пример #6
0
    def _rows_from_children_nodes(self, nodes):
        res = []

        for node in nodes.getchildren():
            name = node.tag
            value = node.xpath('AddressedByProgramme/text()')[0]
            other = node.xpath('DescriptionOther/text()')

            if other:
                v = [value] + other
                res.append((name, ItemListFiltered(v)))
                continue

            res.append((name, value))

        return res
Пример #7
0
    def q9b_other(self):
        v = self.subr['.//Other/MeasurementParameter/text()'][0]

        return ItemListFiltered(v.split(' '))
Пример #8
0
    def q9b_pres_output(self):
        v = self.subr['.//Pressure_output/MeasurementParameter/text()'][0]

        return ItemListFiltered(v.split(' '))
Пример #9
0
    def q9b_activity(self):
        v = self.subr['.//Activity/MeasurementParameter/text()'][0]

        return ItemListFiltered(v.split(' '))
Пример #10
0
    def q7c_measures(self):
        v = self.mpr['.//Q7c_RelevantMeasure/text()']

        return ItemListFiltered(v)
Пример #11
0
    def q9b_hab_impact(self):
        v = self.subr['.//Habitat_impacts/MeasurementParameter/text()'][0]

        return ItemListFiltered(v.split(' '))
Пример #12
0
    def q9e_quality(self):
        v = self.subr['.//Q9e_QualityAssurance/text()'][0]
        other = self.subr['.//Q9e_QualityAssurance/Q9e_Other/text()']

        return ItemListFiltered(v.split(' ') + other)
Пример #13
0
    def q4b_responsible_org(self):
        v = self.r['Q4b_ResponsibleOrganisations' \
                      '/Q4b_ResponsibleOrganisation/text()']

        return ItemListFiltered(v)
Пример #14
0
    def q9b_spec_popsize(self):
        v = self.subr['.//Species_population_size/MeasurementParameter' \
                      '/text()'][0]

        return ItemListFiltered(v.split(' '))
Пример #15
0
    def q2b_public_description(self):
        v = self.r['Q2b_PublicConsultationDescription/text()']

        return ItemListFiltered(v)
Пример #16
0
    def q5a_gesindicator(self):
        v = self.mpr['.//Q5b_RelevantGESIndicators/text()'][0]
        other = self.mpr['.//Q5b_RelevantGESIndicators' \
                         '/Q5b_DescriptionOther/text()']

        return ItemListFiltered(v.split(' ') + other)
Пример #17
0
    def q9b_spec_distr(self):
        v = self.subr['.//Species_distribution/MeasurementParameter/text()'][0]

        return ItemListFiltered(v.split(' '))
Пример #18
0
    def q5a_gescrit(self):
        v = self.mpr['.//Q5a_RelevantGESCriteria/text()'][0]
        other = self.mpr['.//Q5a_RelevantGESCriteria' \
                         '/Q5a_DescriptionOther/text()']

        return ItemListFiltered(v.split(' ') + other)
Пример #19
0
    def q9a_element(self):
        v = self.subr['.//Q9a_ElementMonitored/text()']

        return ItemListFiltered(v)
Пример #20
0
    def q7a_activities(self):
        v = self.mpr['.//Q7a_RelevantActivities/text()'][0]
        other = self.mpr['.//Q7a_UsesActivitiesOther/text()']

        return ItemListFiltered(v.split(' ') + other)
Пример #21
0
    def mru_mp(self):
        v = self.mpr['.//MonitoringProgramme//MarineUnitID/text()']

        return ItemListFiltered(v)
Пример #22
0
    def q5e_natural(self):
        v = self.mpr['MonitoringProgramme/Q5e_NaturalVariablity/text()'][0]
        other = self.mpr['.//Q5e_NaturalVariablity/Q5e_Other/text()']

        return ItemListFiltered(v.split(' ') + other)
Пример #23
0
    def q9h_temporal(self):
        v = self.subr['.//Q9h_TemporalResolutionSampling/text()'][0]
        other = self.subr['.//Q9h_TemporalResolutionSampling/Q9h_Other/text()']

        return ItemListFiltered(v.split(', ') + other)
Пример #24
0
    def q9b_hab_distr(self):
        v = self.subr['.//Habitat_distribution/MeasurementParameter/text()'][0]

        return ItemListFiltered(v.split(' '))
Пример #25
0
    def q10a_aggregation(self):
        v = self.subr['.//Q10a_AggregationData/text()'][0]
        other = self.subr['.//Q10a_AggregationData/Q10a_Other/text()']

        return ItemListFiltered(v.split(' ') + other)
Пример #26
0
    def q9b_hab_cond_bio(self):
        v = self.subr['.//Habitat_condition_biological' \
                      '/MeasurementParameter/text()'][0]

        return ItemListFiltered(v.split(' '))
Пример #27
0
    def q9b_spec_popchar(self):
        v = self.subr['.//Species_population_characteristics' \
                      '/MeasurementParameter/text()'][0]

        return ItemListFiltered(v.split(' '))
Пример #28
0
    def q8a_links(self):
        v = self.mpr['.//Q8a_LinksExistingMonitoringProgrammes/text()'][0]
        other = self.mpr['.//Q8a_Other/text()']

        return ItemListFiltered(v.split(' ') + other)
Пример #29
0
    def q9b_spec_impact(self):
        v = self.subr['.//Species_impacts/MeasurementParameter/text()'][0]

        return ItemListFiltered(v.split(' '))
Пример #30
0
    def mru(self):
        v = self.mpr['ReferenceExistingProgramme//MarineUnitID/text()']

        return ItemListFiltered(v)