Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
0decd359
Commit
0decd359
authored
Mar 21, 2014
by
Alan Boudreault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for int(None) in __nonzero__
parent
3f1fae5f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
+1
-2
mentoring/light_children.py
+1
-1
mentoring/public/css/questionnaire.css
+0
-1
No files found.
mentoring/light_children.py
View file @
0decd359
...
@@ -260,7 +260,7 @@ class Integer(LightChildField):
...
@@ -260,7 +260,7 @@ class Integer(LightChildField):
def
__nonzero__
(
self
):
def
__nonzero__
(
self
):
try
:
try
:
int
(
self
.
value
)
int
(
self
.
value
)
except
ValueError
:
# not an integer
except
TypeError
,
ValueError
:
# not an integer
return
False
return
False
return
self
.
value
is
not
None
return
self
.
value
is
not
None
...
...
mentoring/public/css/questionnaire.css
View file @
0decd359
...
@@ -82,7 +82,6 @@
...
@@ -82,7 +82,6 @@
.mentoring
.mrq-attempts
{
.mentoring
.mrq-attempts
{
display
:
inline-block
;
display
:
inline-block
;
vertical-align
:
baseline
;
vertical-align
:
baseline
;
margin
:
8px
0
0
10px
;
color
:
#777
;
color
:
#777
;
font-style
:
italic
;
font-style
:
italic
;
webkit-font-smoothing
:
antialiased
;
webkit-font-smoothing
:
antialiased
;
...
...
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