Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
ee258f7a
Commit
ee258f7a
authored
May 14, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix place where simplewiki was importing the wrong settings
parent
0856f551
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
djangoapps/simplewiki/views_attachments.py
+13
-6
No files found.
djangoapps/simplewiki/views_attachments.py
View file @
ee258f7a
...
...
@@ -3,14 +3,21 @@ import os
from
django.contrib.auth.decorators
import
login_required
from
django.core.servers.basehttp
import
FileWrapper
from
django.db.models.fields.files
import
FieldFile
from
django.http
import
HttpResponse
,
HttpResponse
Redirect
,
HttpResponse
Forbidden
,
Http404
from
django.http
import
HttpResponse
,
HttpResponseForbidden
,
Http404
from
django.template
import
loader
,
Context
from
settings
import
*
# TODO: Clean up
from
models
import
Article
,
ArticleAttachment
,
get_attachment_filepath
from
views
import
not_found
,
check_permissions
,
get_url_path
,
fetch_from_url
from
simplewiki.settings
import
WIKI_ALLOW_ANON_ATTACHMENTS
from
models
import
ArticleAttachment
,
get_attachment_filepath
from
views
import
check_permissions
,
fetch_from_url
from
wiki_settings
import
(
WIKI_ALLOW_ANON_ATTACHMENTS
,
WIKI_ALLOW_ATTACHMENTS
,
WIKI_ATTACHMENTS_MAX
,
WIKI_ATTACHMENTS_ROOT
,
WIKI_ATTACHMENTS_ALLOWED_EXTENSIONS
,
WIKI_REQUIRE_LOGIN_VIEW
,
WIKI_REQUIRE_LOGIN_EDIT
,
)
def
add_attachment
(
request
,
wiki_url
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment