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
44e124c4
Commit
44e124c4
authored
Feb 13, 2012
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed file system hackery
--HG-- branch : pmitros-mod-template
parent
7c5d93a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
courseware/modules/__init__.py
+15
-11
No files found.
courseware/modules/__init__.py
View file @
44e124c4
...
...
@@ -17,17 +17,21 @@ from courseware import content_parser
# and __init__
#
# Stick them in a list
modx_module_list
=
[]
for
f
in
os
.
listdir
(
os
.
path
.
dirname
(
__file__
)):
if
f
!=
'__init__.py'
and
\
f
[
-
3
:]
==
".py"
and
\
"."
not
in
f
[:
-
3
]
\
and
'#'
not
in
f
:
mod_path
=
'courseware.modules.'
+
f
[:
-
3
]
mod
=
__import__
(
mod_path
,
fromlist
=
"courseware.modules"
)
if
'Module'
in
mod
.
__dict__
:
modx_module_list
.
append
(
mod
)
# modx_module_list = []
# for f in os.listdir(os.path.dirname(__file__)):
# if f!='__init__.py' and \
# f[-3:] == ".py" and \
# "." not in f[:-3] \
# and '#' not in f:
# mod_path = 'courseware.modules.'+f[:-3]
# mod = __import__(mod_path, fromlist = "courseware.modules")
# if 'Module' in mod.__dict__:
# modx_module_list.append(mod)
#print modx_module_list
modx_module_list
=
[
capa_module
,
html_module
,
schematic_module
,
seq_module
,
template_module
,
vertical_module
,
video_module
]
#print modx_module_list
# Convert list to a dictionary for lookup by tag
modx_modules
=
{}
...
...
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