Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
37ae7afb
Commit
37ae7afb
authored
12 years ago
by
ichuang
Browse files
Options
Downloads
Plain Diff
Merge pull request #92 from MITx/dogfood-xmodule
fix dogfood wrt lms / xmodule reorg; fix textinput_dynamath call
parents
bd2a44ad
9d0dfd2f
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
common/lib/capa/inputtypes.py
+1
-1
1 addition, 1 deletion
common/lib/capa/inputtypes.py
lms/lib/dogfood/check.py
+1
-1
1 addition, 1 deletion
lms/lib/dogfood/check.py
lms/lib/dogfood/views.py
+3
-3
3 additions, 3 deletions
lms/lib/dogfood/views.py
with
5 additions
and
5 deletions
common/lib/capa/inputtypes.py
+
1
−
1
View file @
37ae7afb
...
...
@@ -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
'
)
...
...
This diff is collapsed.
Click to expand it.
lms/lib/dogfood/check.py
+
1
−
1
View file @
37ae7afb
...
...
@@ -5,7 +5,7 @@ import string
import
traceback
from
django.conf
import
settings
import
courseware.
capa.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
):
...
...
This diff is collapsed.
Click to expand it.
lms/lib/dogfood/views.py
+
3
−
3
View file @
37ae7afb
...
...
@@ -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
.
module
s
.
get_module_class
(
module
)(
system
,
instance
=
x
module
.
get_module_class
(
module
)(
system
,
xml
,
id
,
state
=
None
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment