Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-wiki
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
OpenEdx
django-wiki
Commits
1a4ef5a6
Commit
1a4ef5a6
authored
Aug 21, 2012
by
benjaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add links plugin to testproject. Do not fail if an attachment file has disappeared.
parent
2b8c7f46
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
testproject/testproject/settings.py
+3
-3
wiki/core/plugins/loader.py
+1
-1
wiki/plugins/attachments/models.py
+2
-0
No files found.
testproject/testproject/settings.py
View file @
1a4ef5a6
...
...
@@ -108,8 +108,9 @@ INSTALLED_APPS = (
'django_notify'
,
'sorl.thumbnail'
,
'wiki'
,
'wiki.plugins.images'
,
'wiki.plugins.help'
,
'wiki.plugins.links'
,
'wiki.plugins.images'
,
'wiki.plugins.attachments'
,
'wiki.plugins.notifications'
,
'mptt'
,
...
...
@@ -144,4 +145,4 @@ LOGGING = {
}
}
WIKI_ANONYMOUS_WRITE
=
True
\ No newline at end of file
WIKI_ANONYMOUS_WRITE
=
True
wiki/core/plugins/loader.py
View file @
1a4ef5a6
...
...
@@ -35,4 +35,4 @@ def load(modname, verbose=False, failfast=False):
get_module
(
app
,
modname
,
verbose
,
failfast
)
def
load_wiki_plugins
():
load
(
'wiki_plugin'
,
verbose
=
Tru
e
)
load
(
'wiki_plugin'
,
verbose
=
Fals
e
)
wiki/plugins/attachments/models.py
View file @
1a4ef5a6
...
...
@@ -99,6 +99,8 @@ class AttachmentRevision(BaseRevisionMixin, models.Model):
"""Used to retrieve the file size and not cause exceptions."""
try
:
return
self
.
file
.
size
except
OSError
:
return
None
except
ValueError
:
return
None
...
...
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