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
a55efba4
Commit
a55efba4
authored
Sep 25, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed argument handling bugs
parent
b6ccf6af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
lib/python/Shared/DC/ZRDB/Aqueduct.py
lib/python/Shared/DC/ZRDB/Aqueduct.py
+10
-4
No files found.
lib/python/Shared/DC/ZRDB/Aqueduct.py
View file @
a55efba4
...
...
@@ -10,8 +10,8 @@
##############################################################################
__doc__
=
'''Shared Aqueduct classes and functions
$Id: Aqueduct.py,v 1.1
0 1997/09/25 21:45:08
jim Exp $'''
__version__
=
'$Revision: 1.1
0
$'
[
11
:
-
2
]
$Id: Aqueduct.py,v 1.1
1 1997/09/25 22:33:01
jim Exp $'''
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
import
DocumentTemplate
,
DateTime
,
regex
,
regsub
,
string
,
urllib
,
rotor
...
...
@@ -65,7 +65,8 @@ class BaseQuery:
'The value entered for <em>%s</em> was invalid'
%
arg
)
if
v
is
REQUEST
:
v
=
args
[
a
]
try
:
v
=
args
[
a
][
'default'
]
except
:
v
=
None
if
v
is
None
:
if
hasattr
(
self
,
arg
):
v
=
getattr
(
self
,
arg
)
else
:
...
...
@@ -99,6 +100,8 @@ class BaseQuery:
def
default_input_form
(
id
,
arguments
,
action
=
'query'
):
if
arguments
:
items
=
arguments
.
items
()
items
.
sort
()
return
(
"%s
\
n
%s%s"
%
(
'<html><head><title>%s Input Data</title></head><body>
\
n
'
...
...
@@ -122,7 +125,7 @@ def default_input_form(id,arguments,action='query'):
),
a
[
1
].
has_key
(
'default'
)
and
a
[
1
][
'default'
]
or
''
))
,
arguments
.
items
()
,
items
),
'
\
n
'
),
'
\
n
<tr><td></td><td>
\
n
'
...
...
@@ -362,6 +365,9 @@ def delimited_output(results,REQUEST,RESPONSE):
##############################################################################
#
# $Log: Aqueduct.py,v $
# Revision 1.11 1997/09/25 22:33:01 jim
# fixed argument handling bugs
#
# Revision 1.10 1997/09/25 21:45:08 jim
# Fixed argument parse bug
#
...
...
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