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
def6ee93
Commit
def6ee93
authored
Mar 15, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
b65a3cae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
3 deletions
+40
-3
lib/python/Shared/DC/ZRDB/Aqueduct.py
lib/python/Shared/DC/ZRDB/Aqueduct.py
+40
-3
No files found.
lib/python/Shared/DC/ZRDB/Aqueduct.py
View file @
def6ee93
...
...
@@ -84,8 +84,8 @@
##############################################################################
__doc__
=
'''Shared classes and functions
$Id: Aqueduct.py,v 1.3
8 1999/11/03 16:22:22
brian Exp $'''
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
$Id: Aqueduct.py,v 1.3
9 2000/03/15 21:13:40
brian Exp $'''
__version__
=
'$Revision: 1.3
9
$'
[
11
:
-
2
]
import
Globals
,
os
from
Globals
import
HTMLFile
,
Persistent
...
...
@@ -103,6 +103,43 @@ dtml_dir=Globals.package_home(globals())
InvalidParameter
=
'Invalid Parameter'
class
ArgWrapper
:
"""Wrap a dictionary in a way acceptable to validating
document templates."""
__roles__
=
None
def
__init__
(
self
):
self
.
__data__
=
{}
def
__setitem__
(
self
,
key
,
value
):
self
.
__data__
[
key
]
=
value
def
__getitem__
(
self
,
key
,
default
=
strip
):
result
=
self
.
__dict__
[
'__data__'
].
get
(
key
,
default
)
if
result
is
not
strip
:
return
result
raise
KeyError
,
key
__getattr__
=
get
=
__getitem__
def
has_key
(
self
,
key
):
return
self
.
__data__
.
has_key
(
key
)
def
keys
(
self
):
return
self
.
__data__
.
keys
()
def
items
(
self
):
return
self
.
__data__
.
items
()
def
values
(
self
):
return
self
.
__data__
.
values
()
class
BaseQuery
(
Persistent
,
SimpleItem
.
Item
,
Acquisition
.
Implicit
,
RoleManager
):
...
...
@@ -121,7 +158,7 @@ class BaseQuery(Persistent, SimpleItem.Item,
def
_argdata
(
self
,
REQUEST
):
r
=
{}
r
=
ArgWrapper
()
try
:
args
=
self
.
_arg
except
:
...
...
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