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
9d0dfd2f
Commit
9d0dfd2f
authored
Jun 07, 2012
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dogfood wrt lms / xmodule reorg; fix textinput_dynamath call
parent
bd2a44ad
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
common/lib/capa/inputtypes.py
+1
-1
lms/lib/dogfood/check.py
+1
-1
lms/lib/dogfood/views.py
+3
-3
No files found.
common/lib/capa/inputtypes.py
View file @
9d0dfd2f
...
...
@@ -206,7 +206,7 @@ def textline(element, value, state, render_template, msg=""):
Simple text line input, with optional size specification.
'''
if
element
.
get
(
'math'
)
or
element
.
get
(
'dojs'
):
# 'dojs' flag is temporary, for backwards compatibility with 8.02x
return
SimpleInput
.
xml_tags
[
'textline_dynamath'
](
element
,
value
,
state
,
msg
)
return
SimpleInput
.
xml_tags
[
'textline_dynamath'
](
element
,
value
,
state
,
render_template
,
msg
)
eid
=
element
.
get
(
'id'
)
count
=
int
(
eid
.
split
(
'_'
)[
-
2
])
-
1
# HACK
size
=
element
.
get
(
'size'
)
...
...
lms/lib/dogfood/check.py
View file @
9d0dfd2f
...
...
@@ -5,7 +5,7 @@ import string
import
traceback
from
django.conf
import
settings
import
c
ourseware.c
apa.capa_problem
as
lcp
import
capa.capa_problem
as
lcp
from
dogfood.views
import
update_problem
def
GenID
(
length
=
8
,
chars
=
string
.
letters
+
string
.
digits
):
...
...
lms/lib/dogfood/views.py
View file @
9d0dfd2f
...
...
@@ -21,7 +21,6 @@ from django.http import HttpResponse
from
django.shortcuts
import
redirect
from
mitxmako.shortcuts
import
render_to_response
,
render_to_string
import
courseware.capa.calc
import
track.views
from
lxml
import
etree
...
...
@@ -34,7 +33,8 @@ from util.cache import cache
from
util.views
import
accepts
import
courseware.content_parser
as
content_parser
import
courseware.modules
#import courseware.modules
import
xmodule
log
=
logging
.
getLogger
(
"mitx.courseware"
)
...
...
@@ -184,7 +184,7 @@ def quickedit(request, id=None, qetemplate='quickedit.html',coursename=None):
filestore
=
OSFS
(
settings
.
DATA_DIR
+
xp
),
#role = 'staff' if request.user.is_staff else 'student', # TODO: generalize this
)
instance
=
courseware
.
modules
.
get_module_class
(
module
)(
system
,
instance
=
xmodule
.
get_module_class
(
module
)(
system
,
xml
,
id
,
state
=
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