-
Notifications
You must be signed in to change notification settings - Fork 46
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
Move the apihelp to the static folder and move the static folder to t… #5098
Conversation
185d8ef
to
e31bd8b
Compare
07f543c
to
465bb55
Compare
@@ -54,7 +54,7 @@ def static_url(path, **kwargs): | |||
request.static_url = static_url | |||
|
|||
self.assertEqual(get_url2("test", "static://pr:st/icon.png", request, set()), "http://server.org/pr:st/icon.png") | |||
self.assertEqual(get_url2("test", "static:///icon.png", request, set()), "http://server.org/my_project_geoportal:static/icon.png") | |||
self.assertEqual(get_url2("test", "static:///icon.png", request, set()), "http://server.org//etc/geomapfish/static/icon.png") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.assertEqual(get_url2("test", "static:///icon.png", request, set()), "http://server.org//etc/geomapfish/static/icon.png") | |
self.assertEqual(get_url2("test", "static:///icon.png", request, set()), "http://server.org/etc/geomapfish/static/icon.png") |
double slash in the url ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just an artifact of the tests...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be like that or also changing the get static URL method ...
@@ -239,7 +239,7 @@ def static_url(url, **kwargs): | |||
"time": "10:36:28", | |||
"datetime": "2003-09-25T10:36:28", | |||
"url1": "http://example.com/hi?a=b#c", | |||
"url2": "http://dummy.org/tests_geoportal:static/path/icon.png", | |||
"url2": "http://dummy.org//etc/geomapfish/static/path/icon.png", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"url2": "http://dummy.org//etc/geomapfish/static/path/icon.png", | |
"url2": "http://dummy.org/etc/geomapfish/static/path/icon.png", |
…he config