diff options
author | saksham1115 <saksham115@gmail.com> | 2016-06-08 18:58:14 +0000 |
---|---|---|
committer | saksham1115 <saksham115@gmail.com> | 2016-07-19 17:29:08 +0000 |
commit | 447d1c2533b2dfffadd0a8febcaf3909c93c4f56 (patch) | |
tree | 8768c104e007d4654f6ea37ce37ca7f6055dc6c5 /mediagoblin/edit | |
parent | 991a0c911e25a48caf9d4e264bd61d921b6b6814 (diff) | |
download | mediagoblin-447d1c2533b2dfffadd0a8febcaf3909c93c4f56.tar.lz mediagoblin-447d1c2533b2dfffadd0a8febcaf3909c93c4f56.tar.xz mediagoblin-447d1c2533b2dfffadd0a8febcaf3909c93c4f56.zip |
Made decorators views for Customize Interface
Diffstat (limited to 'mediagoblin/edit')
-rw-r--r-- | mediagoblin/edit/views.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index 0c66451f..b3f4318b 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -17,6 +17,7 @@ import six from datetime import datetime +import os from itsdangerous import BadSignature from pyld import jsonld @@ -34,7 +35,7 @@ from mediagoblin.edit.lib import may_edit_media from mediagoblin.decorators import (require_active_login, active_user_from_url, get_media_entry_by_id, user_may_alter_collection, get_user_collection, user_has_privilege, - user_not_banned) + user_not_banned, path_subtitle) from mediagoblin.tools.crypto import get_timed_signer_url from mediagoblin.tools.metadata import (compact_and_validate, DEFAULT_CHECKER, DEFAULT_SCHEMA) @@ -581,9 +582,11 @@ def edit_metadata(request, media): @require_active_login -def custom_subtitles(request,path): +@path_subtitle +def custom_subtitles(request,path=None): + path = path.encode('ascii','ignore')[1:-1] return render_to_response( request, - "mediagoblin/templates/user_pages/custom_subtitles.html", + "mediagoblin/user_pages/custom_subtitles.html", {"path": path} )
\ No newline at end of file |