Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
f7c51870
Commit
f7c51870
authored
12 years ago
by
Rocky Duan
Browse files
Options
Downloads
Patches
Plain Diff
initial setup for the discussion module
parent
7c480dd5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/lib/xmodule/setup.py
+1
-0
1 addition, 0 deletions
common/lib/xmodule/setup.py
common/lib/xmodule/xmodule/discussion_module.py
+15
-0
15 additions, 0 deletions
common/lib/xmodule/xmodule/discussion_module.py
with
16 additions
and
0 deletions
common/lib/xmodule/setup.py
+
1
−
0
View file @
f7c51870
...
...
@@ -34,6 +34,7 @@ setup(
"
video = xmodule.video_module:VideoDescriptor
"
,
"
videodev = xmodule.backcompat_module:TranslateCustomTagDescriptor
"
,
"
videosequence = xmodule.seq_module:SequenceDescriptor
"
,
"
discussion = xmodule.discussion_module:DiscussionDescriptor
"
,
]
}
)
This diff is collapsed.
Click to expand it.
common/lib/xmodule/xmodule/discussion_module.py
0 → 100644
+
15
−
0
View file @
f7c51870
from
xmodule.x_module
import
XModule
from
xmodule.raw_module
import
RawDescriptor
class
DiscussionModule
(
XModule
):
def
get_html
(
self
):
return
"
Discussion: To be implemented
"
def
__init__
(
self
,
system
,
location
,
definition
,
instance_state
=
None
,
shared_state
=
None
,
**
kwargs
):
XModule
.
__init__
(
self
,
system
,
location
,
definition
,
instance_state
,
shared_state
,
**
kwargs
)
print
"
Initialized
"
print
definition
class
DiscussionDescriptor
(
RawDescriptor
):
module_class
=
DiscussionModule
This diff is collapsed.
Click to expand it.
Preview
0%
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