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
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
6306d980
Commit
6306d980
authored
12 years ago
by
Александр
Browse files
Options
Downloads
Patches
Plain Diff
vsepr: geometries and molecules now are passed from xml as parameters
parent
495814c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/lib/capa/capa/inputtypes.py
+5
-0
5 additions, 0 deletions
common/lib/capa/capa/inputtypes.py
common/lib/capa/capa/templates/vsepr_input.html
+1
-1
1 addition, 1 deletion
common/lib/capa/capa/templates/vsepr_input.html
with
6 additions
and
1 deletion
common/lib/capa/capa/inputtypes.py
+
5
−
0
View file @
6306d980
...
...
@@ -726,6 +726,9 @@ def crystallography(element, value, status, render_template, msg=''):
escapedict
=
{
'"'
:
'
"
'
}
value
=
saxutils
.
escape
(
value
,
escapedict
)
molecules
=
element
.
get
(
'
molecules
'
)
geometries
=
element
.
get
(
'
geometries
'
)
context
=
{
'
id
'
:
eid
,
'
value
'
:
value
,
'
state
'
:
status
,
...
...
@@ -782,6 +785,8 @@ def vsepr_input(element, value, status, render_template, msg=''):
'
width
'
:
width
,
'
height
'
:
height
,
'
display_file
'
:
display_file
,
'
molecules
'
:
molecules
,
'
geometries
'
:
geometries
,
}
html
=
render_template
(
"
vsepr_input.html
"
,
context
)
...
...
This diff is collapsed.
Click to expand it.
common/lib/capa/capa/templates/vsepr_input.html
+
1
−
1
View file @
6306d980
...
...
@@ -2,7 +2,7 @@
<section
id=
"textinput_${id}"
class=
"textinput ${doinline}"
>
<table><tr><td
height=
'600'
>
<div
id=
"vsepr_div"
style=
"position:relative;"
>
<div
id=
"vsepr_div"
style=
"position:relative;"
data-molecules=
"${molecules}"
data-geometries=
"${geometries}"
>
<canvas
id=
"vsepr"
width=
"${width}"
height=
"${height}"
>
</canvas>
</div>
...
...
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