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
db131705
Commit
db131705
authored
May 08, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in handling of sequence-query.
parent
2270bb63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
lib/python/DocumentTemplate/DT_InSV.py
lib/python/DocumentTemplate/DT_InSV.py
+8
-3
No files found.
lib/python/DocumentTemplate/DT_InSV.py
View file @
db131705
...
...
@@ -58,8 +58,8 @@
__doc__
=
'''Sequence variables support
$Id: DT_InSV.py,v 1.
3 1998/04/20 15:16:56
jim Exp $'''
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
$Id: DT_InSV.py,v 1.
4 1998/05/08 14:54:40
jim Exp $'''
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
from
string
import
lower
,
upper
,
rfind
from
math
import
sqrt
...
...
@@ -169,7 +169,7 @@ class sequence_variables:
l
=
self
.
data
[
'sequence-length'
]
=
len
(
self
.
items
)
return
l
def
query
(
self
,
ignored
):
def
query
(
self
,
*
ignored
):
if
self
.
start_name_re
is
None
:
raise
KeyError
,
'sequence-query'
query_string
=
self
.
query_string
while
query_string
and
query_string
[:
1
]
in
'?&'
:
...
...
@@ -367,6 +367,8 @@ class sequence_variables:
prefix
=
prefix
[:
-
4
]
try
:
return
self
.
value
(
data
[
prefix
+
'-index'
],
suffix
)
except
:
pass
if
key
==
'sequence-query'
:
return
self
.
query
()
raise
KeyError
,
key
...
...
@@ -406,6 +408,9 @@ def opt(start,end,size,orphan,sequence):
##############################################################################
#
# $Log: DT_InSV.py,v $
# Revision 1.4 1998/05/08 14:54:40 jim
# Fixed bug in handling of sequence-query.
#
# Revision 1.3 1998/04/20 15:16:56 jim
# Fixed bug in backward support for sequence-index-even etc.
#
...
...
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