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
6f1c4bf0
Commit
6f1c4bf0
authored
Jan 15, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More of the same. :-)
parent
cedde7d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
lib/python/DocumentTemplate/DT_In.py
lib/python/DocumentTemplate/DT_In.py
+12
-7
No files found.
lib/python/DocumentTemplate/DT_In.py
View file @
6f1c4bf0
...
...
@@ -276,7 +276,7 @@
of the module 'Missing', if present.
'''
#'
__rcs_id__
=
'$Id: DT_In.py,v 1.1
6 1998/01/15 20:22:44
jim Exp $'
__rcs_id__
=
'$Id: DT_In.py,v 1.1
7 1998/01/15 20:36:05
jim Exp $'
############################################################################
# Copyright
...
...
@@ -330,7 +330,7 @@ __rcs_id__='$Id: DT_In.py,v 1.16 1998/01/15 20:22:44 jim Exp $'
# (540) 371-6909
#
############################################################################
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
from
DT_Util
import
*
from
string
import
find
,
atoi
,
join
...
...
@@ -356,9 +356,9 @@ class In:
try
:
atoi
(
v
)
except
:
self
.
start_name_re
=
regex
.
compile
(
'&'
+
'&
+
'
+
join
(
map
(
lambda
c
:
"[%s]"
%
c
,
v
),
''
)
+
'=[0-9]+&'
)
'=[0-9]+&
+
'
)
name
,
expr
=
name_param
(
args
,
'in'
,
1
)
self
.
__name__
,
self
.
expr
=
name
,
expr
...
...
@@ -774,9 +774,11 @@ class sequence_variables:
return
l
elif
key
==
'sequence-query'
and
self
.
start_name_re
is
not
None
:
query_string
=
self
.
query_string
while
query_string
[:
1
]
==
'?'
:
query_string
=
query_string
[
1
:]
if
query_string
[:
1
]
!=
'&'
:
query_string
=
'&'
+
query_string
if
query_string
[
-
1
:]
!=
'&'
:
query_string
=
query_string
+
'&'
while
query_string
[:
1
]
in
'?&'
:
query_string
=
query_string
[
1
:]
while
query_string
[
-
1
:]
==
'&'
:
query_string
=
query_string
[:
-
1
]
query_string
=
'&%s&'
%
query_string
re
=
self
.
start_name_re
l
=
re
.
search
(
query_string
)
if
l
>=
0
:
...
...
@@ -844,6 +846,9 @@ class sequence_variables:
############################################################################
# $Log: DT_In.py,v $
# Revision 1.17 1998/01/15 20:36:05 jim
# More of the same. :-)
#
# Revision 1.16 1998/01/15 20:22:44 jim
# Made batch processing more robust. Now don't need to specify
# '?' or & when constructing query strings.
...
...
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