diff --git a/courseware/capa_problem.py b/courseware/capa_problem.py index 97c09fa2b5..f635470bbb 100644 --- a/courseware/capa_problem.py +++ b/courseware/capa_problem.py @@ -13,7 +13,7 @@ def strip_dict(d): (type(d[k]) == float or type(d[k]) == int) ]) return d -class LoncapaProblem(): +class LoncapaProblem(object): def get_state(self): ''' Stored per-user session data neeeded to: 1) Recreate the problem diff --git a/courseware/x_module.py b/courseware/x_module.py index 9773bf74af..c9ece2816f 100644 --- a/courseware/x_module.py +++ b/courseware/x_module.py @@ -1,4 +1,4 @@ -class XModule: +class XModule(object): ''' Implements a generic learning module. Initialized on access with __init__, first time with state=None, and then with state diff --git a/simplewiki/templates/simplewiki_base.html b/simplewiki/templates/simplewiki_base.html deleted file mode 100644 index 7df17b695e..0000000000 --- a/simplewiki/templates/simplewiki_base.html +++ /dev/null @@ -1,238 +0,0 @@ -{% load i18n simplewiki_utils %} - - -
-
-
- {% if wiki_article %}
-
-
-
- {% endif %}
-
-
-
{% trans "This article has been locked" %}
- {% endif %} -- {% trans "Last modified" %}: {{ wiki_article.modified_on|date }}, {{ wiki_article.modified_on|time }} -
- {% endif %} --The page you requested could not be found. -Click here to create it. -
-{% else %} --Or maybe rather: Congratulations! It seems that there's no root -article, which is probably because you just installed simple-wiki -and your installation is working. Now you can create the root article. -Click here to create it. -
-{% endif %} -{% else %} - -{% if wiki_err_noparent %} --You cannot create this page, because its parent -does not exist. Click here -to create it. -
-{% else %} - -{% if wiki_err_keyword %} --The page you're trying to create {{wiki_url}} starts with _, which is reserved for internal use. -
-{% else %} - -{% if wiki_err_locked %} --The article you are trying to modify is locked. -
-{% else %} - -{% if wiki_err_noread %} --You do not have access to read this article. -
-{% else %} - -{% if wiki_err_nowrite %} --You do not have access to edit this article. -
-{% else %} - -{% if wiki_err_noanon %} --Anonymous attachments are not allowed. Try logging in. -
-{% else %} - -{% if wiki_err_create %} --You do not have access to create this article. -
-{% else %} - -{% if wiki_err_encode %} --The url you requested could not be handled by the wiki. -Probably you used a bad character in the URL. -Only use digits, English letters, underscore and dash. For instance -/wiki/An_Article-1 -
- - -{% else %} --An error has occured. -
- - -{% endif %} -{% endif %} -{% endif %} -{% endif %} -{% endif %} -{% endif %} -{% endif %} -{% endif %} -{% endif %} - -