Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add url fetcher from parameter when creating an export #69

Merged
merged 3 commits into from
Mar 20, 2018
Merged

Conversation

jdelasoie
Copy link
Member

Lire le test, on peut voir que toute l'url est "unquotée". Cela fonctionne aussi, c'est juste qu'il y aura deux formats d'url sauvé dans la BD, un unquoté et un quoté, selon l'origine de la création de l'export.

Tenez-moi au courant si ce n'est pas acceptable.

@@ -241,7 +241,8 @@ def import_marc21xml(url, can_display_pending_publications):
result = []

o = urlparse(url)
if o.netloc not in settings.ALLOWED_HOSTS:
if not '*' in settings.ALLOWED_HOSTS and \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oublié de revenir en arrière ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je suis obligé de forcer ce test, car pour selenium je ne connais pas l'ip en avance qu'il lance, ce qui m'oblige à overrider ce settings (à voir https://github.com/epfl-idevelop/infoscience-exports/blob/bf739b95900c7e389aa6845e3a6a00835c16e4c8/infoscience_exports/exports/test/test_selenium.py#L14 )

@jdelasoie jdelasoie merged commit d6c52cf into master Mar 20, 2018
@jdelasoie jdelasoie deleted the url-setter branch March 20, 2018 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants