Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
f8fffc40
Commit
f8fffc40
authored
Sep 05, 2000
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the dtml-var null argument fix. Thanks to Brian Lenihan.
parent
56ea1fc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/python/DocumentTemplate/DT_Var.py
lib/python/DocumentTemplate/DT_Var.py
+4
-4
No files found.
lib/python/DocumentTemplate/DT_Var.py
View file @
f8fffc40
...
...
@@ -217,8 +217,8 @@ Evaluating expressions without rendering results
'''
# '
__rcs_id__
=
'$Id: DT_Var.py,v 1.3
6 2000/08/31 23:57:0
2 amos Exp $'
__version__
=
'$Revision: 1.3
6
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: DT_Var.py,v 1.3
7 2000/09/05 22:03:1
2 amos Exp $'
__version__
=
'$Revision: 1.3
7
$'
[
11
:
-
2
]
from
DT_Util
import
parse_params
,
name_param
,
html_quote
,
str
import
regex
,
string
,
sys
,
regex
...
...
@@ -280,8 +280,8 @@ class Var:
__traceback_info__
=
name
,
val
,
args
if
val
is
None
or
(
not
val
and
val
!=
0
)
and
have_arg
(
'null'
)
:
#
Treat None as special case wrt null
if
have_arg
(
'null'
)
and
not
val
and
val
!=
0
:
#
check for null (false but not zero, including None, [], '')
return
args
[
'null'
]
...
...
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