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
f5e4768a
Commit
f5e4768a
authored
Dec 15, 1997
by
Jeffrey Shell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added sequence-index-[is-]even and odd variables for testing in
sequences
parent
d3f55896
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
lib/python/DocumentTemplate/DT_In.py
lib/python/DocumentTemplate/DT_In.py
+10
-2
No files found.
lib/python/DocumentTemplate/DT_In.py
View file @
f5e4768a
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
of the module 'Missing', if present.
of the module 'Missing', if present.
'''
#'
'''
#'
__rcs_id__
=
'$Id: DT_In.py,v 1.1
2 1997/11/19 15:42:46 jim
Exp $'
__rcs_id__
=
'$Id: DT_In.py,v 1.1
3 1997/12/15 17:34:40 jeffrey
Exp $'
############################################################################
############################################################################
# Copyright
# Copyright
...
@@ -284,7 +284,7 @@ __rcs_id__='$Id: DT_In.py,v 1.12 1997/11/19 15:42:46 jim Exp $'
...
@@ -284,7 +284,7 @@ __rcs_id__='$Id: DT_In.py,v 1.12 1997/11/19 15:42:46 jim Exp $'
# (540) 371-6909
# (540) 371-6909
#
#
############################################################################
############################################################################
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
3
$'
[
11
:
-
2
]
from
DT_Util
import
*
from
DT_Util
import
*
from
string
import
find
,
atoi
,
join
from
string
import
find
,
atoi
,
join
...
@@ -456,6 +456,10 @@ class In:
...
@@ -456,6 +456,10 @@ class In:
else: kw['
sequence
-
end
']=0
else: kw['
sequence
-
end
']=0
client=sequence[index]
client=sequence[index]
kw['
sequence
-
index
']=index
kw['
sequence
-
index
']=index
kw['
sequence
-
index
-
even
']=kw['
sequence
-
index
-
is
-
even
']=
\
index % 2
kw['
sequence
-
index
-
odd
']=kw['
sequence
-
index
-
is
-
odd
']=
\
not (index % 2)
if type(client)==TupleType and len(client)==2:
if type(client)==TupleType and len(client)==2:
client=client[1]
client=client[1]
if mapping:
if mapping:
...
@@ -791,6 +795,10 @@ class sequence_variables:
...
@@ -791,6 +795,10 @@ class sequence_variables:
############################################################################
############################################################################
# $Log: DT_In.py,v $
# $Log: DT_In.py,v $
# Revision 1.13 1997/12/15 17:34:40 jeffrey
# added sequence-index-[is-]even and odd variables for testing in
# sequences
#
# Revision 1.12 1997/11/19 15:42:46 jim
# Revision 1.12 1997/11/19 15:42:46 jim
# added _ prefix to push and pop methods to make them private
# added _ prefix to push and pop methods to make them private
#
#
...
...
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