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
c837cf79
Commit
c837cf79
authored
Jun 29, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some unused code from content_parser
parent
dcd74e6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
lms/djangoapps/courseware/content_parser.py
+0
-13
No files found.
lms/djangoapps/courseware/content_parser.py
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
()
...
...
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