def ficheRangTaxonomie(cd_ref): session = utils.loadSession() connection = utils.engine.connect() listTaxons = vmTaxonsRepository.getTaxonsChildsList(connection, cd_ref) referenciel = vmTaxrefRepository.getInfoFromCd_ref(session, cd_ref) communesSearch = vmCommunesRepository.getAllCommunes(session) taxonomyHierarchy = vmTaxrefRepository.getAllTaxonomy(session, cd_ref) observers = vmObservationsRepository.getObservers(connection, cd_ref) connection.close() session.close() configuration = base_configuration.copy() configuration.update({ 'LIMIT_FICHE_LISTE_HIERARCHY': config.LIMIT_FICHE_LISTE_HIERARCHY, 'MYTYPE': 0, 'PATRIMONIALITE': config.PATRIMONIALITE, 'PROTECTION': config.PROTECTION, }) return render_template( 'templates/ficheRangTaxonomique.html', listTaxons=listTaxons, referenciel=referenciel, communesSearch=communesSearch, taxonomyHierarchy=taxonomyHierarchy, observers=observers, configuration=configuration )
def ficheRangTaxonomie(cd_ref): session = utils.loadSession() connection = utils.engine.connect() listTaxons = vmTaxonsRepository.getTaxonsChildsList(connection, cd_ref) referenciel = vmTaxrefRepository.getInfoFromCd_ref(session, cd_ref) communesSearch = vmCommunesRepository.getAllCommunes(session) taxonomyHierarchy = vmTaxrefRepository.getAllTaxonomy(session, cd_ref) observers = vmObservationsRepository.getObservers(connection, cd_ref) connection.close() session.close() configuration = base_configuration.copy() configuration.update({ 'LIMIT_FICHE_LISTE_HIERARCHY': config.LIMIT_FICHE_LISTE_HIERARCHY, 'MYTYPE': 0, 'PATRIMONIALITE': config.PATRIMONIALITE, 'PROTECTION': config.PROTECTION, }) return render_template('templates/ficheRangTaxonomique.html', listTaxons=listTaxons, referenciel=referenciel, communesSearch=communesSearch, taxonomyHierarchy=taxonomyHierarchy, observers=observers, configuration=configuration)
def ficheRangTaxonomie(cd_ref): session = utils.loadSession() connection = utils.engine.connect() listTaxons = vmTaxonsRepository.getTaxonsChildsList(connection, cd_ref) referenciel = vmTaxrefRepository.getInfoFromCd_ref(session, cd_ref) communesSearch = vmCommunesRepository.getAllCommunes(session) taxonomyHierarchy = vmTaxrefRepository.getAllTaxonomy(session, cd_ref) observers = vmObservationsRepository.getObservers(connection, cd_ref) connection.close() session.close() configuration = {'STRUCTURE' : config.STRUCTURE, 'NOM_APPLICATION' : config.NOM_APPLICATION, 'LIMIT_FICHE_LISTE_HIERARCHY' : config.LIMIT_FICHE_LISTE_HIERARCHY,\ 'URL_APPLICATION': config.URL_APPLICATION, 'MYTYPE' : 0, 'PATRIMONIALITE': config.PATRIMONIALITE, 'PROTECTION': config.PROTECTION, 'AFFICHAGE_FOOTER': config.AFFICHAGE_FOOTER, 'ID_GOOGLE_ANALYTICS': config.ID_GOOGLE_ANALYTICS} return render_template('templates/ficheRangTaxonomique.html', listTaxons = listTaxons, referenciel = referenciel, communesSearch = communesSearch,\ taxonomyHierarchy=taxonomyHierarchy, observers=observers, configuration=configuration)
def ficheEspece(cd_ref): session = utils.loadSession() connection = utils.engine.connect() cd_ref = int(cd_ref) taxon = vmTaxrefRepository.searchEspece(connection, cd_ref) altitudes = vmAltitudesRepository.getAltitudesChilds(connection, cd_ref) months = vmMoisRepository.getMonthlyObservationsChilds(connection, cd_ref) synonyme = vmTaxrefRepository.getSynonymy(connection, cd_ref) communes = vmCommunesRepository.getCommunesObservationsChilds( connection, cd_ref) communesSearch = vmCommunesRepository.getAllCommunes(session) taxonomyHierarchy = vmTaxrefRepository.getAllTaxonomy(session, cd_ref) firstPhoto = vmMedias.getFirstPhoto(connection, cd_ref, config.ATTR_MAIN_PHOTO) photoCarousel = vmMedias.getPhotoCarousel(connection, cd_ref, config.ATTR_OTHER_PHOTO) videoAudio = vmMedias.getVideo_and_audio( connection, cd_ref, config.ATTR_AUDIO, config.ATTR_VIDEO_HEBERGEE, config.ATTR_YOUTUBE, config.ATTR_DAILYMOTION, config.ATTR_VIMEO) articles = vmMedias.getLinks_and_articles(connection, cd_ref, config.ATTR_LIEN, config.ATTR_PDF) taxonDescription = vmCorTaxonAttribut.getAttributesTaxon( connection, cd_ref, config.ATTR_DESC, config.ATTR_COMMENTAIRE, config.ATTR_MILIEU, config.ATTR_CHOROLOGIE) observers = vmObservationsRepository.getObservers(connection, cd_ref) configuration = {'STRUCTURE' : config.STRUCTURE, 'NOM_APPLICATION' : config.NOM_APPLICATION, 'LIMIT_FICHE_LISTE_HIERARCHY' : config.LIMIT_FICHE_LISTE_HIERARCHY, 'PATRIMONIALITE':config.PATRIMONIALITE, \ 'PROTECTION': config.PROTECTION, 'GLOSSAIRE': config.GLOSSAIRE, 'AFFICHAGE_MAILLE' : config.AFFICHAGE_MAILLE, 'ZOOM_LEVEL_POINT': config.ZOOM_LEVEL_POINT, 'LIMIT_CLUSTER_POINT': config.LIMIT_CLUSTER_POINT, 'FICHE_ESPECE': True, \ 'URL_PHOTO': config.URL_MEDIAS, 'MAP': config.MAP, 'URL_APPLICATION': config.URL_APPLICATION, 'AFFICHAGE_FOOTER': config.AFFICHAGE_FOOTER, 'ID_GOOGLE_ANALYTICS': config.ID_GOOGLE_ANALYTICS} connection.close() session.close() return render_template('templates/ficheEspece.html', taxon=taxon, listeTaxonsSearch=[], observations=[],\ cd_ref=cd_ref, altitudes=altitudes, months=months, synonyme=synonyme, communes=communes, communesSearch=communesSearch, taxonomyHierarchy = taxonomyHierarchy,\ firstPhoto= firstPhoto, photoCarousel=photoCarousel, videoAudio=videoAudio, articles=articles, taxonDescription=taxonDescription, observers=observers, \ configuration=configuration)
def ficheEspece(cd_ref): session = utils.loadSession() connection = utils.engine.connect() cd_ref = int(cd_ref) taxon = vmTaxrefRepository.searchEspece(connection, cd_ref) altitudes = vmAltitudesRepository.getAltitudesChilds(connection, cd_ref) months = vmMoisRepository.getMonthlyObservationsChilds(connection, cd_ref) synonyme = vmTaxrefRepository.getSynonymy(connection, cd_ref) communes = vmCommunesRepository.getCommunesObservationsChilds( connection, cd_ref ) communesSearch = vmCommunesRepository.getAllCommunes(session) taxonomyHierarchy = vmTaxrefRepository.getAllTaxonomy(session, cd_ref) firstPhoto = vmMedias.getFirstPhoto( connection, cd_ref, config.ATTR_MAIN_PHOTO ) photoCarousel = vmMedias.getPhotoCarousel( connection, cd_ref, config.ATTR_OTHER_PHOTO ) videoAudio = vmMedias.getVideo_and_audio( connection, cd_ref, config.ATTR_AUDIO, config.ATTR_VIDEO_HEBERGEE, config.ATTR_YOUTUBE, config.ATTR_DAILYMOTION, config.ATTR_VIMEO ) articles = vmMedias.getLinks_and_articles( connection, cd_ref, config.ATTR_LIEN, config.ATTR_PDF ) taxonDescription = vmCorTaxonAttribut.getAttributesTaxon( connection, cd_ref, config.ATTR_DESC, config.ATTR_COMMENTAIRE, config.ATTR_MILIEU, config.ATTR_CHOROLOGIE ) observers = vmObservationsRepository.getObservers(connection, cd_ref) configuration = base_configuration.copy() configuration.update({ 'LIMIT_FICHE_LISTE_HIERARCHY': config.LIMIT_FICHE_LISTE_HIERARCHY, 'PATRIMONIALITE': config.PATRIMONIALITE, 'PROTECTION': config.PROTECTION, 'GLOSSAIRE': config.GLOSSAIRE, 'AFFICHAGE_MAILLE': config.AFFICHAGE_MAILLE, 'ZOOM_LEVEL_POINT': config.ZOOM_LEVEL_POINT, 'LIMIT_CLUSTER_POINT': config.LIMIT_CLUSTER_POINT, 'FICHE_ESPECE': True, 'MAP': config.MAP }) connection.close() session.close() return render_template( 'templates/ficheEspece.html', taxon=taxon, listeTaxonsSearch=[], observations=[], cd_ref=cd_ref, altitudes=altitudes, months=months, synonyme=synonyme, communes=communes, communesSearch=communesSearch, taxonomyHierarchy=taxonomyHierarchy, firstPhoto=firstPhoto, photoCarousel=photoCarousel, videoAudio=videoAudio, articles=articles, taxonDescription=taxonDescription, observers=observers, configuration=configuration )
def ficheEspece(cd_ref): session = utils.loadSession() connection = utils.engine.connect() cd_ref = int(cd_ref) taxon = vmTaxrefRepository.searchEspece(connection, cd_ref) statsorgataxon = vmStatsOrgaTaxonRepository.getStatsOrgaTaxonChilds(connection, cd_ref) months = vmMoisRepository.getMonthlyObservationsChilds(connection, cd_ref) synonyme = vmTaxrefRepository.getSynonymy(connection, cd_ref) communes = vmCommunesRepository.getCommunesObservationsChilds( connection, cd_ref ) communesSearch = vmCommunesRepository.getAllCommunes(session) epciSearch = vmEpciRepository.getAllEpci(session) departementSearch = vmDepartementRepository.getAllDepartement(session) taxonomyHierarchy = vmTaxrefRepository.getAllTaxonomy(session, cd_ref) firstPhoto = vmMedias.getFirstPhoto( connection, cd_ref, config.ATTR_MAIN_PHOTO ) photoCarousel = vmMedias.getPhotoCarousel( connection, cd_ref, config.ATTR_OTHER_PHOTO ) videoAudio = vmMedias.getVideo_and_audio( connection, cd_ref, config.ATTR_AUDIO, config.ATTR_VIDEO_HEBERGEE, config.ATTR_YOUTUBE, config.ATTR_DAILYMOTION, config.ATTR_VIMEO ) articles = vmMedias.getLinks_and_articles( connection, cd_ref, config.ATTR_LIEN, config.ATTR_PDF ) taxonDescription = vmCorTaxonAttribut.getAttributesTaxon( connection, cd_ref, config.ATTR_DESC, config.ATTR_COMMENTAIRE, config.ATTR_MILIEU, config.ATTR_CHOROLOGIE ) orgas = vmObservationsRepository.getOrgasObservations(connection, cd_ref) observers = vmObservationsRepository.getObservers(connection, cd_ref) observationsMaille = vmObservationsMaillesRepository.getObservationsMaillesChilds(connection, cd_ref) configuration = base_configuration.copy() configuration.update({ 'LIMIT_FICHE_LISTE_HIERARCHY': config.LIMIT_FICHE_LISTE_HIERARCHY, 'AFFICHAGE_ORGAS_OBS_FICHEESP': config.AFFICHAGE_ORGAS_OBS_FICHEESP, 'AFFICHE_PATRIMONIALITE' : config.AFFICHE_PATRIMONIALITE, 'PATRIMONIALITE': config.PATRIMONIALITE, 'PROTECTION': config.PROTECTION, 'GLOSSAIRE': config.GLOSSAIRE, 'AFFICHAGE_MAILLE': config.AFFICHAGE_MAILLE, 'AFFICHAGE_SWITCHER': config.AFFICHAGE_SWITCHER, 'AFFICHAGE_ATLAS_MAILLE_COMMUNALE': config.AFFICHAGE_ATLAS_MAILLE_COMMUNALE, 'AFFICHAGE_ATLAS_MAILLE_CARREE': config.AFFICHAGE_ATLAS_MAILLE_CARREE, 'AFFICHAGE_ATLAS_POINT': config.AFFICHAGE_ATLAS_POINT, 'ZOOM_LEVEL_POINT': config.ZOOM_LEVEL_POINT, 'LIMIT_CLUSTER_POINT': config.LIMIT_CLUSTER_POINT, 'FICHE_ESPECE': True, 'MAP': config.MAP }) connection.close() session.close() return render_template( 'templates/ficheEspece.html', taxon=taxon, listeTaxonsSearch=[], observations=[], cd_ref=cd_ref, statsorgataxon=statsorgataxon, months=months, synonyme=synonyme, communes=communes, communesSearch=communesSearch, epciSearch=epciSearch, departementSearch=departementSearch, observationsMaille=observationsMaille, taxonomyHierarchy=taxonomyHierarchy, firstPhoto=firstPhoto, photoCarousel=photoCarousel, videoAudio=videoAudio, articles=articles, taxonDescription=taxonDescription, orgas=orgas, observers=observers, configuration=configuration )