Use staticdirect instead of /mgoblin_static/
templates should never use ``/mgoblin_static/`` but use
``request.staticdirect()`` instead, which uses the proper paths
from the config.
This is relevant when running mediagoblin not on / but on a subpath
like /mediagoblin/.
I have fixed the current templates (git branch will be pushed
tomorrow).
The interesting question is, if the test suite should test for
this?
If so, here's an idea on how to do it:
1. in ``test_mgoblin_app.ini`` set ``direct_remote_path`` to
something else than /mgoblib\_static/
2. While testing: add a special "middleware" to the main App, that
greps the rendered html for mgoblin\_static and errors out.
That way all tested paths will at least also get tested for wrong
references. At least, that's my idea on this.
Change History
(10)
Owner: |
set to Elvenlord Elrond
|
Owner: |
changed from Elvenlord Elrond to Christopher Webber
|
Status: |
New → Feedback
|
Status: |
Feedback → Closed
|
Milestone: |
→ 0.1.0
|
Owner: |
set to Christopher Webber
|
Status: |
Closed → In Progress
|
Milestone: |
→ 0.2.0
|
Owner: |
set to Elvenlord Elrond
|
Milestone: |
→ 0.2.0
|
Owner: |
changed from Elvenlord Elrond to Christopher Webber
|
Status: |
In Progress → Feedback
|
Milestone: |
→ 0.2.0
|
Owner: |
changed from Christopher Webber to Elvenlord Elrond
|
Status: |
Feedback → Closed
|