Ejemplo n.º 1
0
 def model_props(self):
     props = FramUtil.get_model_props(BioSpecimenItems)
     props.append('bio_specimen_id')
     props.append('barcodes_str')
     props.append('tags_str')
     props.append('biosample_str')
     return props
Ejemplo n.º 2
0
 def cert_rolenames(self):
     """
     :return: role names for FramListModel
     """
     rolenames = FramUtil.get_model_props(TripCertificates)
     # Add additional roles (e.g. Vessel Name, to be acquired via FK)
     return rolenames
Ejemplo n.º 3
0
 def model_props(self):
     props = FramUtil.get_model_props(HookCounts)
     # props.append('bio_specimen_id')
     # props.append('barcodes_str')
     # props.append('tags_str')
     # props.append('biosample_str')
     return props
Ejemplo n.º 4
0
 def model_props(self):
     props = FramUtil.get_model_props(SpeciesCompositionBaskets)
     props.append(
         'extrapolated_number')  # Add model-only (not persisted) temp field
     # Allow primary key for species basket or for catch basket to be stored in same field
     props.append(
         'basket_primary_key')  # Add model-only (not persisted) temp field
     return props
Ejemplo n.º 5
0
 def ticket_rolenames(self):
     """
     :return: role names for FramListModel
     """
     rolenames = FramUtil.get_model_props(FishTickets)
     # Add additional roles (e.g. Vessel Name, to be acquired via FK)
     # rolenames.append('vessel_name')
     return rolenames
 def model_props(self):
     props = FramUtil.get_model_props(SpeciesCompositionItems)
     props.append('common_name')
     props.append('weighed_and_tallied_count')
     props.append('avg_weight')
     props.append('bio_count')
     props.append(
         'total_fish_counted')  # FIELD-2040, unextrapolated fish count
     return props
Ejemplo n.º 7
0
 def trip_rolenames(self):
     """
     :return: role names for FramListModel
     """
     rolenames = FramUtil.get_model_props(Trips)
     # Add additional roles (e.g. Vessel Name, to be acquired via FK)
     rolenames.append('user_name')
     rolenames.append('vessel_name')
     rolenames.append('vessel_id')
     return rolenames
Ejemplo n.º 8
0
 def haul_set_rolenames(self):
     """
     :return:
     """
     rolenames = FramUtil.get_model_props(FishingActivities)
     # Add additional roles not specified in DB (e.g. Vessel Name, to be acquired via FK)
     rolenames.append('trip_id')
     rolenames.append('target_strategy_code')
     rolenames.append('location_start_end')
     rolenames.append('errors')
     return rolenames
Ejemplo n.º 9
0
 def model_rolenames(self):
     """
     :return: role names for FramListModel
     """
     rolenames = FramUtil.get_model_props(TripIssues)
     # Add additional roles (e.g. trip check id, to be acquired via FK)
     rolenames.append(
         'check_message'
     )  # TripChecks.check_message on FK TripIssues.trip_check
     rolenames.append(
         'check_type')  # TripChecks.check_type on FK TripIssues.trip_check
     return rolenames
    def model_rolenames(self):
        """
        :return: role names for FramListModel
        """
        rolenames = FramUtil.get_model_props(Catches)
        # Add additional roles (e.g. Vessel Name, to be acquired via FK)
        rolenames.append('catch_category_code')  # look up by FK
        rolenames.append('catch_category_name')  # look up by FK
        rolenames.append('sample_method')  # look up by FK

        rolenames.append('catch_or_sample_weight')
        rolenames.append('catch_or_sample_count')

        return rolenames
Ejemplo n.º 11
0
 def model_props(self):
     props = FramUtil.get_model_props(Species)
     return props
    def model_props(self):
        props = FramUtil.get_model_props(CatchAdditionalBaskets)

        return props
 def model_props(self):
     props = FramUtil.get_model_props(BioSpecimens)
     props.append('species_name')  # Get from FK
     return props
 def model_props(self):
     props = FramUtil.get_model_props(CatchCategories)
     return props
Ejemplo n.º 15
0
 def model_props(self):
     props = FramUtil.get_model_props(Dissections)
     props.append('bio_specimen_item_id')  # store ID
     return props