Closed sgrimault closed 5 years ago
J'ai un problème avec l'import du fichier "repository'.
File "/home/theo/workspace/GN2/Nomenclature-api-module/src/pypnnomenclature/routes.py", line 7, in <module>
import repository
ModuleNotFoundError: No module named 'repository'
Tu n'as pas eu ce problème ? J'ai dû changer la ligne import repository
par from . import repository
.
J'ai aussi changé la stratégie de chargement de la relationship taxref
en select
au lieu de join
pour maintenir la compatibilité avec ceux qui n'ont pas la taxonomie dans leur schéma ref_nomenclatures.
taxref = relationship(
'CorTaxrefNomenclature',
lazy='select'
)
J'ai fais une PR sur la branche de ton dépôt. J'imagine que si tu l'accepte, elle va se répercuter ici ?
Ok ça me va aussi de mon coté. Merci :)
Je n'ai pas eu de souci coté import de mon coté (Python 3.6.8)
Nouvelle route
/nomenclatures/taxonomy
qui permet de lister l'intégralité de la nomenclature avec les termes et la taxonomie.Schéma JSON en sortie :