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
15b889f6
Commit
15b889f6
authored
Jan 24, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge from 2.3
parent
10ca0374
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
lib/python/DocumentTemplate/DT_In.py
lib/python/DocumentTemplate/DT_In.py
+6
-5
No files found.
lib/python/DocumentTemplate/DT_In.py
View file @
15b889f6
...
...
@@ -382,8 +382,8 @@
'''
#'
__rcs_id__
=
'$Id: DT_In.py,v 1.4
3 2001/01/08 22:46:57
brian Exp $'
__version__
=
'$Revision: 1.4
3
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: DT_In.py,v 1.4
4 2001/01/24 16:26:01
brian Exp $'
__version__
=
'$Revision: 1.4
4
$'
[
11
:
-
2
]
from
DT_Util
import
ParseError
,
parse_params
,
name_param
,
str
from
DT_Util
import
render_blocks
,
InstanceDict
,
ValidationError
,
VSEval
,
expr_globals
...
...
@@ -561,6 +561,10 @@ class InClass:
# there are more items, without actually
# computing a length:
sequence
[
end
]
except
IndexError
:
if
self
.
elses
:
result
=
render
(
self
.
elses
,
md
)
else
:
result
=
''
else
:
pstart
,
pend
,
psize
=
opt
(
end
+
1
-
overlap
,
0
,
sz
,
orphan
,
sequence
)
kw
[
'next-sequence'
]
=
1
...
...
@@ -568,9 +572,6 @@ class InClass:
kw
[
'next-sequence-end-index'
]
=
pend
-
1
kw
[
'next-sequence-size'
]
=
pend
+
1
-
pstart
result
=
render
(
section
,
md
)
except
:
if
self
.
elses
:
result
=
render
(
self
.
elses
,
md
)
else
:
result
=
''
else
:
result
=
[]
append
=
result
.
append
...
...
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