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
c837cf79
Commit
c837cf79
authored
12 years ago
by
Calen Pennington
Browse files
Options
Downloads
Patches
Plain Diff
Remove some unused code from content_parser
parent
dcd74e6d
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/courseware/content_parser.py
+0
-13
0 additions, 13 deletions
lms/djangoapps/courseware/content_parser.py
with
0 additions
and
13 deletions
lms/djangoapps/courseware/content_parser.py
+
0
−
13
View file @
c837cf79
...
...
@@ -19,12 +19,10 @@ from django.conf import settings
from
student.models
import
UserProfile
from
student.models
import
UserTestGroup
from
courseware.models
import
StudentModuleCache
from
mitxmako.shortcuts
import
render_to_string
from
util.cache
import
cache
from
multicourse
import
multicourse_settings
import
xmodule
from
keystore.django
import
keystore
'''
This file will eventually form an abstraction layer between the
course XML file and the rest of the system.
...
...
@@ -35,22 +33,11 @@ course XML file and the rest of the system.
# util.memcache.fasthash (which does not depend on memcache at all)
#
class
ContentException
(
Exception
):
pass
log
=
logging
.
getLogger
(
"
mitx.courseware
"
)
def
format_url_params
(
params
):
return
[
urllib
.
quote
(
string
.
replace
(
'
'
,
'
_
'
))
for
string
in
params
]
def
xpath_remove
(
tree
,
path
):
'''
Remove all items matching path from lxml tree. Works in
place.
'''
items
=
tree
.
xpath
(
path
)
for
item
in
items
:
item
.
getparent
().
remove
(
item
)
return
tree
def
id_tag
(
course
):
'''
Tag all course elements with unique IDs
'''
default_ids
=
xmodule
.
get_default_ids
()
...
...
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