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
cee6532e
Commit
cee6532e
authored
Dec 16, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new copyright and detabification
parent
39adaf2e
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
2911 additions
and
1704 deletions
+2911
-1704
lib/python/Products/ZGadflyDA/DA.py
lib/python/Products/ZGadflyDA/DA.py
+115
-45
lib/python/Products/ZGadflyDA/DABase.py
lib/python/Products/ZGadflyDA/DABase.py
+185
-146
lib/python/Products/ZGadflyDA/__init__.py
lib/python/Products/ZGadflyDA/__init__.py
+107
-20
lib/python/Products/ZGadflyDA/db.py
lib/python/Products/ZGadflyDA/db.py
+172
-102
lib/python/Products/ZSQLMethods/SQL.py
lib/python/Products/ZSQLMethods/SQL.py
+118
-32
lib/python/Products/ZSQLMethods/__init__.py
lib/python/Products/ZSQLMethods/__init__.py
+97
-11
lib/python/Shared/DC/ZRDB/Aqueduct.py
lib/python/Shared/DC/ZRDB/Aqueduct.py
+305
-219
lib/python/Shared/DC/ZRDB/Connection.py
lib/python/Shared/DC/ZRDB/Connection.py
+173
-139
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+335
-249
lib/python/Shared/DC/ZRDB/RDB.py
lib/python/Shared/DC/ZRDB/RDB.py
+220
-134
lib/python/Shared/DC/ZRDB/Results.py
lib/python/Shared/DC/ZRDB/Results.py
+137
-41
lib/python/Shared/DC/ZRDB/Search.py
lib/python/Shared/DC/ZRDB/Search.py
+215
-199
lib/python/Shared/DC/ZRDB/__init__.py
lib/python/Shared/DC/ZRDB/__init__.py
+96
-0
lib/python/Shared/DC/ZRDB/dbi_db.py
lib/python/Shared/DC/ZRDB/dbi_db.py
+191
-115
lib/python/Shared/DC/ZRDB/sqlgroup.py
lib/python/Shared/DC/ZRDB/sqlgroup.py
+129
-50
lib/python/Shared/DC/ZRDB/sqltest.py
lib/python/Shared/DC/ZRDB/sqltest.py
+164
-96
lib/python/Shared/DC/ZRDB/sqlvar.py
lib/python/Shared/DC/ZRDB/sqlvar.py
+152
-106
No files found.
lib/python/Products/ZGadflyDA/DA.py
View file @
cee6532e
database_type
=
'Gadfly'
##############################################################################
###########################################################################
#
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
# Copyright (c) Digital Creations. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
#
# Copyright
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
# rights reserved.
#
#
###########################################################################
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
##############################################################################
database_type
=
'Gadfly'
__doc__
=
'''%s Database Connection
__doc__
=
'''%s Database Connection
$Id: DA.py,v 1.
4 1998/12/15 21:09:55
jim Exp $'''
%
database_type
$Id: DA.py,v 1.
5 1998/12/16 15:28:47
jim Exp $'''
%
database_type
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
from
db
import
DB
,
manage_DataSources
from
db
import
DB
,
manage_DataSources
import
sys
,
DABase
,
Globals
import
sys
,
DABase
,
Globals
...
@@ -60,20 +147,3 @@ class Connection(DABase.Connection):
...
@@ -60,20 +147,3 @@ class Connection(DABase.Connection):
if
c
.
has_key
(
s
)
and
c
[
s
]
==
self
.
_p_oid
:
del
c
[
s
]
if
c
.
has_key
(
s
)
and
c
[
s
]
==
self
.
_p_oid
:
del
c
[
s
]
return
Connection
.
inheritedAttribute
(
'manage_close_connection'
)(
return
Connection
.
inheritedAttribute
(
'manage_close_connection'
)(
self
,
REQUEST
)
self
,
REQUEST
)
##############################################################################
#
# $Log: DA.py,v $
# Revision 1.4 1998/12/15 21:09:55 jim
# first Zope
#
# Revision 1.3 1998/12/02 12:11:48 jim
# new names, esp for Aqueduct
#
# Revision 1.2 1998/06/10 22:28:37 jim
# Added docstring to connection object so objects are publishable.
#
# Revision 1.1 1998/04/15 15:10:37 jim
# initial
#
lib/python/Products/ZGadflyDA/DABase.py
View file @
cee6532e
###########################################################################
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
# Copyright (c) Digital Creations. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
#
# Copyright
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
# 6. Modified redistributions of any form whatsoever must retain
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
# the following acknowledgment:
# rights reserved.
#
#
###########################################################################
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
##############################################################################
__doc__
=
'''Database Connection
__doc__
=
'''Database Connection
$Id: DABase.py,v 1.
4 1998/12/02 12:11:48
jim Exp $'''
$Id: DABase.py,v 1.
5 1998/12/16 15:28:47
jim Exp $'''
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
from
db
import
manage_DataSources
from
db
import
manage_DataSources
import
Shared.DC.ZRDB.Connection
,
sys
import
Shared.DC.ZRDB.Connection
,
sys
...
@@ -184,51 +271,3 @@ field_icons={
...
@@ -184,51 +271,3 @@ field_icons={
'VARBINARY'
:
'bin'
,
'VARBINARY'
:
'bin'
,
'VARCHAR'
:
'text'
,
'VARCHAR'
:
'text'
,
}
}
##############################################################################
#
# $Log: DABase.py,v $
# Revision 1.4 1998/12/02 12:11:48 jim
# new names, esp for Aqueduct
#
# Revision 1.3 1998/06/04 15:49:46 jim
# Commented design tab.
#
# Revision 1.2 1998/04/20 18:33:46 jim
# *** empty log message ***
#
# Revision 1.1 1998/04/15 15:10:38 jim
# initial
#
# Revision 1.8 1998/01/29 16:26:44 brian
# Added eval support
#
# Revision 1.7 1998/01/16 18:35:34 jim
# Updated with new da protocols.
#
# Revision 1.5 1998/01/07 16:28:27 jim
# Brought up to date with latest Principia models, and got rid of DA objects and search interface.
#
# Revision 1.4 1997/12/02 19:35:34 jim
# changed to get rid of DA folders.
#
# Revision 1.5 1997/11/26 20:04:22 jim
# New Architecture, note that backward compatibility tools are needed
#
# Revision 1.4 1997/09/22 18:46:12 jim
# Got rid of ManageHTML
#
# Revision 1.3 1997/08/06 18:20:50 jim
# Renamed description->title and name->id and other changes
#
# Revision 1.2 1997/07/28 21:32:24 jim
# Added add method.
#
# Revision 1.1 1997/07/25 16:52:44 jim
# initial
#
# Revision 1.1 1997/07/25 15:49:40 jim
# initial
#
#
lib/python/Products/ZGadflyDA/__init__.py
View file @
cee6532e
##############################################################################
##############################################################################
#
#
# Copyright
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
# Copyright (c) Digital Creations. All rights reserved.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
#
# rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
#
##############################################################################
##############################################################################
__doc__
=
'''Generic Database Adapter Package Registration
__doc__
=
'''Generic Database Adapter Package Registration
$Id: __init__.py,v 1.
6 1998/12/16 15:04:00
jim Exp $'''
$Id: __init__.py,v 1.
7 1998/12/16 15:28:47
jim Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
import
Globals
,
ImageFile
,
os
import
Globals
,
ImageFile
,
os
...
...
lib/python/Products/ZGadflyDA/db.py
View file @
cee6532e
##############################################################################
'''$Id: db.py,v 1.3 1998/12/02 12:11:48 jim Exp $'''
#
# Copyright
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
# Copyright (c) Digital Creations. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
# rights reserved.
#
#
__version__
=
'$Revision: 1.3 $'
[
11
:
-
2
]
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
##############################################################################
'''$Id: db.py,v 1.4 1998/12/16 15:28:47 jim Exp $'''
__version__
=
'$Revision: 1.4 $'
[
11
:
-
2
]
import
string
,
sys
,
os
import
string
,
sys
,
os
from
string
import
strip
,
split
,
find
,
join
from
string
import
strip
,
split
,
find
,
join
...
@@ -165,23 +255,3 @@ def must_be_text(v, f=find, j=join, s=split):
...
@@ -165,23 +255,3 @@ def must_be_text(v, f=find, j=join, s=split):
return
v
return
v
Defs
=
{
maybe_int
:
'i'
,
maybe_float
:
'n'
,
maybe_string
:
's'
,
must_be_text
:
't'
}
Defs
=
{
maybe_int
:
'i'
,
maybe_float
:
'n'
,
maybe_string
:
's'
,
must_be_text
:
't'
}
##########################################################################
#
# $Log: db.py,v $
# Revision 1.3 1998/12/02 12:11:48 jim
# new names, esp for Aqueduct
#
# Revision 1.2 1998/05/21 15:33:56 jim
# Added logic to set up gadfly area on first use.
#
# Revision 1.1 1998/04/15 15:10:41 jim
# initial
#
# Revision 1.3 1997/08/06 18:21:27 jim
# Renamed description->title and name->id and other changes
#
# Revision 1.2 1997/08/06 14:29:35 jim
# Changed to use abstract dbi base.
#
lib/python/Products/ZSQLMethods/SQL.py
View file @
cee6532e
#!/bin/env python
##############################################################################
##############################################################################
#
#
# Copyright
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
# Copyright (c) Digital Creations. All rights reserved.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
#
# rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
#
##############################################################################
##############################################################################
__doc__
=
'''SQL Methods
__doc__
=
'''SQL Methods
$Id: SQL.py,v 1.
7 1998/12/15 21:10:31
jim Exp $'''
$Id: SQL.py,v 1.
8 1998/12/16 15:29:22
jim Exp $'''
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
import
Shared.DC.ZRDB.DA
import
Shared.DC.ZRDB.DA
from
Globals
import
HTMLFile
from
Globals
import
HTMLFile
...
...
lib/python/Products/ZSQLMethods/__init__.py
View file @
cee6532e
#!/bin/env python
##############################################################################
##############################################################################
#
#
# Copyright
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
# Copyright (c) Digital Creations. All rights reserved.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
#
# rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
#
##############################################################################
##############################################################################
__doc__
=
'''SQL Method Product
__doc__
=
'''SQL Method Product
$Id: __init__.py,v 1.
8 1998/12/16 15:04:4
2 jim Exp $'''
$Id: __init__.py,v 1.
9 1998/12/16 15:29:2
2 jim Exp $'''
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
from
ImageFile
import
ImageFile
from
ImageFile
import
ImageFile
import
Shared.DC.ZRDB.Search
,
SQL
import
Shared.DC.ZRDB.Search
,
SQL
...
...
lib/python/Shared/DC/ZRDB/Aqueduct.py
View file @
cee6532e
#!/bin/env python
##############################################################################
##############################################################################
#
#
# Copyright
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
# Copyright (c) Digital Creations. All rights reserved.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
#
# rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
#
##############################################################################
##############################################################################
__doc__
=
'''Shared classes and functions
__doc__
=
'''Shared classes and functions
$Id: Aqueduct.py,v 1.2
6 1998/12/02 12:11:49
jim Exp $'''
$Id: Aqueduct.py,v 1.2
7 1998/12/16 15:25:48
jim Exp $'''
__version__
=
'$Revision: 1.2
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
7
$'
[
11
:
-
2
]
import
Globals
,
os
import
Globals
,
os
from
Globals
import
HTMLFile
,
Persistent
from
Globals
import
HTMLFile
,
Persistent
...
...
lib/python/Shared/DC/ZRDB/Connection.py
View file @
cee6532e
##############################################################################
##############################################################################
#
#
# Copyright
# Zope Public License (ZPL) Version 0.9.5
#
# ---------------------------------------
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
#
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
# Copyright (c) Digital Creations. All rights reserved.
# rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
#
##############################################################################
##############################################################################
__doc__
=
'''Generic Database Connection Support
__doc__
=
'''Generic Database Connection Support
$Id: Connection.py,v 1.1
5 1998/11/23 16:12:0
8 jim Exp $'''
$Id: Connection.py,v 1.1
6 1998/12/16 15:25:4
8 jim Exp $'''
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
import
Globals
,
OFS
.
SimpleItem
,
AccessControl
.
Role
,
Acquisition
,
sys
import
Globals
,
OFS
.
SimpleItem
,
AccessControl
.
Role
,
Acquisition
,
sys
from
DateTime
import
DateTime
from
DateTime
import
DateTime
...
@@ -137,56 +224,3 @@ class Connection(
...
@@ -137,56 +224,3 @@ class Connection(
def
sql_quote__
(
self
,
v
):
def
sql_quote__
(
self
,
v
):
if
find
(
v
,
"
\
'
"
)
>=
0
:
v
=
join
(
split
(
v
,
"
\
'
"
),
"''"
)
if
find
(
v
,
"
\
'
"
)
>=
0
:
v
=
join
(
split
(
v
,
"
\
'
"
),
"''"
)
return
"'%s'"
%
v
return
"'%s'"
%
v
##############################################################################
#
# $Log: Connection.py,v $
# Revision 1.15 1998/11/23 16:12:08 jim
# rid of Persistence module reference
#
# Revision 1.14 1998/05/11 15:00:24 jim
# Updated permissions.
#
# Revision 1.13 1998/05/08 15:00:08 jim
# Changed permission settings to be in line with new machinery.
#
# Revision 1.12 1998/04/29 18:31:45 jeffrey
# *** empty log message ***
#
# Revision 1.11 1998/04/29 18:18:09 jeffrey
# fixed formatting error
#
# Revision 1.10 1998/04/27 18:56:29 jim
# Now export an sql_quote function that is used by sqlvar and sqltest
# to quote strings.
#
# Revision 1.9 1998/04/27 16:10:32 jim
# *** empty log message ***
#
# Revision 1.8 1998/04/24 15:04:33 jim
# *** empty log message ***
#
# Revision 1.7 1998/04/15 13:19:02 jim
# Do better job of raising errors.
#
# Revision 1.6 1998/01/21 22:59:00 jim
# Updated for latest security model.
#
# Revision 1.5 1998/01/16 19:12:54 jim
# Changed so failure to connect to the database does not prevent
# activation.
#
# Revision 1.4 1998/01/07 16:27:15 jim
# Brought up to date with latest Principia models.
#
# Revision 1.3 1997/12/18 13:35:09 jim
# Added ImageFile usage.
#
# Revision 1.2 1997/12/05 21:33:12 jim
# major overhall to add record addressing, brains, and support for new interface
#
# Revision 1.1 1997/12/02 17:22:02 jim
# initial
#
#
lib/python/Shared/DC/ZRDB/DA.py
View file @
cee6532e
#!/bin/env python
##############################################################################
##############################################################################
#
#
# Copyright
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
# Copyright (c) Digital Creations. All rights reserved.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
#
# rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
#
##############################################################################
##############################################################################
__doc__
=
'''Generic Database adapter
__doc__
=
'''Generic Database adapter
$Id: DA.py,v 1.
59 1998/12/16 15:09:35
jim Exp $'''
$Id: DA.py,v 1.
60 1998/12/16 15:25:48
jim Exp $'''
__version__
=
'$Revision: 1.
59
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
60
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Aqueduct
,
RDB
import
OFS.SimpleItem
,
Aqueduct
,
RDB
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
DateTime
,
Acquisition
,
os
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
DateTime
,
Acquisition
,
os
...
...
lib/python/Shared/DC/ZRDB/RDB.py
View file @
cee6532e
#!/bin/env python
##############################################################################
##############################################################################
#
#
# Copyright
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
# Copyright (c) Digital Creations. All rights reserved.
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
#
# rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
#
##############################################################################
##############################################################################
__doc__
=
'''Class for reading RDB files
__doc__
=
'''Class for reading RDB files
$Id: RDB.py,v 1.2
1 1998/12/16 15:10:22
jim Exp $'''
$Id: RDB.py,v 1.2
2 1998/12/16 15:25:48
jim Exp $'''
__version__
=
'$Revision: 1.2
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
2
$'
[
11
:
-
2
]
import
regex
,
regsub
import
regex
,
regsub
from
string
import
split
,
strip
,
lower
,
upper
,
atof
,
atoi
,
atol
,
find
,
join
from
string
import
split
,
strip
,
lower
,
upper
,
atof
,
atoi
,
atol
,
find
,
join
...
...
lib/python/Shared/DC/ZRDB/Results.py
View file @
cee6532e
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
# Copyright (c) Digital Creations. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
##############################################################################
import
ExtensionClass
import
ExtensionClass
import
string
import
string
from
string
import
strip
,
lower
,
upper
,
join
from
string
import
strip
,
lower
,
upper
,
join
...
...
lib/python/Shared/DC/ZRDB/Search.py
View file @
cee6532e
#!/bin/env python
##############################################################################
##########################################################################
#
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
# Copyright (c) Digital Creations. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
#
# Copyright
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
# Intact (re-)distributions of any official Zope release do not
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
# require an external acknowledgement.
# rights reserved.
#
#
##########################################################################
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
##############################################################################
__doc__
=
'''Search Interface Wizard
__doc__
=
'''Search Interface Wizard
$Id: Search.py,v 1.
6 1998/12/02 12:11:49
jim Exp $'''
$Id: Search.py,v 1.
7 1998/12/16 15:25:48
jim Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
from
Globals
import
HTMLFile
from
Aqueduct
import
custom_default_report
,
nicify
,
Args
from
Aqueduct
import
custom_default_report
,
nicify
,
Args
...
@@ -174,73 +260,3 @@ def default_input_form(arguments,action='query',
...
@@ -174,73 +260,3 @@ def default_input_form(arguments,action='query',
'<!--#var standard_html_footer-->
\
n
'
'<!--#var standard_html_footer-->
\
n
'
%
(
tabs
,
action
)
%
(
tabs
,
action
)
)
)
##############################################################################
#
# $Log: Search.py,v $
# Revision 1.6 1998/12/02 12:11:49 jim
# new names, esp for Aqueduct
#
# Revision 1.5 1998/04/15 14:22:28 jim
# Fixed up input form generation to use input arguments in order.
# Also excluse decorations when 1 query used.
#
# Revision 1.4 1998/01/12 19:20:11 jim
# *** empty log message ***
#
# Revision 1.3 1998/01/09 13:58:15 jim
# added option for tabular vs record reports
#
# Revision 1.2 1998/01/07 16:32:48 jim
# Brought up to date with latest Principia models.
#
# Revision 1.1 1997/12/17 21:01:20 jim
# *** empty log message ***
#
# Revision 1.14 1997/10/28 22:21:44 brian
# Fixed bug in report
#
# Revision 1.13 1997/09/26 22:18:52 jim
# more
#
# Revision 1.12 1997/09/25 21:14:11 jim
# Change to use new searchable interface.
#
# Revision 1.11 1997/09/22 19:11:05 jim
# updated role support
#
# Revision 1.10 1997/09/22 18:47:32 jim
# Got rid of ManageHTML
# Fixed bug in query that caused extra database updates.
#
# Revision 1.9 1997/08/16 00:58:20 jim
# Added machinery to add automatic execution in input helper.
#
# Revision 1.8 1997/08/15 22:30:51 jim
# Added machinery to get argument values from instance attributes.
# And added machinery to readopt web ancenstors rather than
# normal acquisition ancestors.
#
# Revision 1.7 1997/08/08 22:56:55 jim
# Redid bodify to hopefully get around win32 limitations.
#
# Revision 1.6 1997/08/08 18:30:01 jim
# Rerouted "return".
#
# Revision 1.5 1997/08/08 16:58:12 jim
# Added access control support
#
# Revision 1.4 1997/08/06 21:27:20 jim
# *** empty log message ***
#
# Revision 1.3 1997/08/06 18:25:14 jim
# Renamed description->title and name->id and other changes
#
# Revision 1.2 1997/08/06 14:03:40 jim
# *** empty log message ***
#
# Revision 1.1 1997/07/25 18:13:06 jim
# initial
#
#
lib/python/Shared/DC/ZRDB/__init__.py
View file @
cee6532e
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
# Copyright (c) Digital Creations. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
##############################################################################
lib/python/Shared/DC/ZRDB/dbi_db.py
View file @
cee6532e
#!/usr/local/bin/python
##############################################################################
# $What$
#
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
# Copyright (c) Digital Creations. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
##############################################################################
__doc__
=
'''short description
__doc__
=
'''short description
$Id: dbi_db.py,v 1.
5 1998/03/04 19:13:10
jim Exp $'''
$Id: dbi_db.py,v 1.
6 1998/12/16 15:25:48
jim Exp $'''
# Copyright
# Copyright
#
#
# Copyright 1997 Digital Creations, Inc, 910 Princess Anne
# Copyright 1997 Digital Creations, Inc, 910 Princess Anne
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
# Street, Suite 300, Fredericksburg, Virginia 22401 U.S.A. All
# rights reserved.
# rights reserved.
#
#
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
import
string
,
sys
import
string
,
sys
from
string
import
strip
,
split
,
find
,
join
from
string
import
strip
,
split
,
find
,
join
...
@@ -138,20 +231,3 @@ class DB:
...
@@ -138,20 +231,3 @@ class DB:
result
,
result
,
)
)
)
)
def
main
():
import
timing
db
=
DB
(
'zedweb/web404t@prod3'
)
timing
.
start
()
# print db.query("select * from alt_items where d046d='001346305'")
print
db
.
query
(
"select * from CONTRACT_DETAILS"
" where D046D='011302768' AND"
" (K001='DDS' or K001='DDK' or K001='FTR' or K001='DDM' or K001='DDT')"
)
timing
.
finish
()
print
timing
.
milli
()
/
1000.0
if
__name__
==
"__main__"
:
main
()
lib/python/Shared/DC/ZRDB/sqlgroup.py
View file @
cee6532e
##############################################################################
#
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
# Copyright (c) Digital Creations. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
##############################################################################
'''Inserting optional tests with 'sqlgroup'
'''Inserting optional tests with 'sqlgroup'
...
@@ -57,8 +153,8 @@
...
@@ -57,8 +153,8 @@
# rights reserved.
# rights reserved.
#
#
############################################################################
############################################################################
__rcs_id__
=
'$Id: sqlgroup.py,v 1.
4 1998/09/04 20:45:02
jim Exp $'
__rcs_id__
=
'$Id: sqlgroup.py,v 1.
5 1998/12/16 15:25:49
jim Exp $'
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
parse_params
from
DocumentTemplate.DT_Util
import
parse_params
str
=
__builtins__
[
'str'
]
str
=
__builtins__
[
'str'
]
...
@@ -103,20 +199,3 @@ class SQLGroup:
...
@@ -103,20 +199,3 @@ class SQLGroup:
return
''
return
''
__call__
=
render
__call__
=
render
##########################################################################
#
# $Log: sqlgroup.py,v $
# Revision 1.4 1998/09/04 20:45:02 jim
# fixed namespace screw up due to from DT_Util import *
#
# Revision 1.3 1998/04/02 21:33:38 jim
# Added where attribute.
#
# Revision 1.2 1998/03/18 23:25:55 jim
# Added 'required' attribute (and fixed doc).
#
# Revision 1.1 1998/03/17 19:31:22 jim
# added new sql tags
#
#
lib/python/Shared/DC/ZRDB/sqltest.py
View file @
cee6532e
#!/usr/local/bin/python
##############################################################################
# $What$
#
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
# Copyright (c) Digital Creations. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
##############################################################################
'''Inserting optional tests with 'sqlgroup'
'''Inserting optional tests with 'sqlgroup'
It is sometimes useful to make inputs to an SQL statement
It is sometimes useful to make inputs to an SQL statement
...
@@ -46,7 +139,7 @@
...
@@ -46,7 +139,7 @@
'and' or 'or' tag, otherwise, no text is inserted.
'and' or 'or' tag, otherwise, no text is inserted.
'''
'''
__rcs_id__
=
'$Id: sqltest.py,v 1.
7 1998/09/10 18:38:19 brian
Exp $'
__rcs_id__
=
'$Id: sqltest.py,v 1.
8 1998/12/16 15:25:49 jim
Exp $'
############################################################################
############################################################################
# Copyright
# Copyright
...
@@ -56,7 +149,7 @@ __rcs_id__='$Id: sqltest.py,v 1.7 1998/09/10 18:38:19 brian Exp $'
...
@@ -56,7 +149,7 @@ __rcs_id__='$Id: sqltest.py,v 1.7 1998/09/10 18:38:19 brian Exp $'
# rights reserved.
# rights reserved.
#
#
############################################################################
############################################################################
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
import
sys
import
sys
from
DocumentTemplate.DT_Util
import
ParseError
,
parse_params
,
name_param
from
DocumentTemplate.DT_Util
import
ParseError
,
parse_params
,
name_param
...
@@ -139,28 +232,3 @@ class SQLTest:
...
@@ -139,28 +232,3 @@ class SQLTest:
__call__
=
render
__call__
=
render
valid_type
=
{
'int'
:
1
,
'float'
:
1
,
'string'
:
1
,
'nb'
:
1
}.
has_key
valid_type
=
{
'int'
:
1
,
'float'
:
1
,
'string'
:
1
,
'nb'
:
1
}.
has_key
############################################################################
# $Log: sqltest.py,v $
# Revision 1.7 1998/09/10 18:38:19 brian
# Fixed missing sys import in sqltest
#
# Revision 1.6 1998/09/04 20:45:02 jim
# fixed namespace screw up due to from DT_Util import *
#
# Revision 1.5 1998/04/27 18:58:39 jim
# Now use exported sql_quote__ function to quote strings.
#
# Revision 1.4 1998/04/27 18:57:23 jim
# Now use exported sql quote function to quote strings.
#
# Revision 1.3 1998/04/15 14:56:13 jim
# Fixed problem in handling optional tests.
#
# Revision 1.2 1998/03/18 13:44:51 jim
# Fixed bug in rendering SQL in tests.
#
# Revision 1.1 1998/03/17 19:31:22 jim
# added new sql tags
#
#
lib/python/Shared/DC/ZRDB/sqlvar.py
View file @
cee6532e
#!/usr/local/bin/python
##############################################################################
# $What$
#
# Zope Public License (ZPL) Version 0.9.5
# ---------------------------------------
#
# Copyright (c) Digital Creations. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions in source code must retain the above copyright
# notice, this list of conditions, and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions, and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. Any use, including use of the Zope software to operate a website,
# must either comply with the terms described below under
# "Attribution" or alternatively secure a separate license from
# Digital Creations. Digital Creations will not unreasonably
# deny such a separate license in the event that the request
# explains in detail a valid reason for withholding attribution.
#
# 4. All advertising materials and documentation mentioning
# features derived from or use of this software must display
# the following acknowledgement:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# In the event that the product being advertised includes an
# intact Zope distribution (with copyright and license included)
# then this clause is waived.
#
# 5. Names associated with Zope or Digital Creations must not be used to
# endorse or promote products derived from this software without
# prior written permission from Digital Creations.
#
# 6. Modified redistributions of any form whatsoever must retain
# the following acknowledgment:
#
# "This product includes software developed by Digital Creations
# for use in the Z Object Publishing Environment
# (http://www.zope.org/)."
#
# Intact (re-)distributions of any official Zope release do not
# require an external acknowledgement.
#
# 7. Modifications are encouraged but must be packaged separately as
# patches to official Zope releases. Distributions that do not
# clearly separate the patches from the original work must be clearly
# labeled as unofficial distributions. Modifications which do not
# carry the name Zope may be packaged in any form, as long as they
# conform to all of the clauses above.
#
#
# Disclaimer
#
# THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Attribution
#
# Individuals or organizations using this software as a web site must
# provide attribution by placing the accompanying "button" and a link
# to the accompanying "credits page" on the website's main entry
# point. In cases where this placement of attribution is not
# feasible, a separate arrangment must be concluded with Digital
# Creations. Those using the software for purposes other than web
# sites must provide a corresponding attribution in locations that
# include a copyright using a manner best suited to the application
# environment. Where attribution is not possible, or is considered
# to be onerous for some other reason, a request should be made to
# Digital Creations to waive this requirement in writing. As stated
# above, for valid requests, Digital Creations will not unreasonably
# deny such requests.
#
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations. Specific
# attributions are listed in the accompanying credits file.
#
##############################################################################
'''Inserting values with the 'sqlvar' tag
'''Inserting values with the 'sqlvar' tag
The 'sqlvar' tag is used to type-safely insert values into SQL
The 'sqlvar' tag is used to type-safely insert values into SQL
...
@@ -38,7 +131,7 @@
...
@@ -38,7 +131,7 @@
however, if x is ommitted or an empty string, then the value
however, if x is ommitted or an empty string, then the value
inserted is 'null'.
inserted is 'null'.
'''
'''
__rcs_id__
=
'$Id: sqlvar.py,v 1.
4 1998/09/04 20:45:03
jim Exp $'
__rcs_id__
=
'$Id: sqlvar.py,v 1.
5 1998/12/16 15:25:49
jim Exp $'
############################################################################
############################################################################
# Copyright
# Copyright
...
@@ -48,7 +141,7 @@ __rcs_id__='$Id: sqlvar.py,v 1.4 1998/09/04 20:45:03 jim Exp $'
...
@@ -48,7 +141,7 @@ __rcs_id__='$Id: sqlvar.py,v 1.4 1998/09/04 20:45:03 jim Exp $'
# rights reserved.
# rights reserved.
#
#
############################################################################
############################################################################
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
ParseError
,
parse_params
,
name_param
from
DocumentTemplate.DT_Util
import
ParseError
,
parse_params
,
name_param
from
string
import
find
,
split
,
join
,
atoi
,
atof
from
string
import
find
,
split
,
join
,
atoi
,
atof
...
@@ -119,50 +212,3 @@ class SQLVar:
...
@@ -119,50 +212,3 @@ class SQLVar:
__call__
=
render
__call__
=
render
valid_type
=
{
'int'
:
1
,
'float'
:
1
,
'string'
:
1
,
'nb'
:
1
}.
has_key
valid_type
=
{
'int'
:
1
,
'float'
:
1
,
'string'
:
1
,
'nb'
:
1
}.
has_key
############################################################################
# $Log: sqlvar.py,v $
# Revision 1.4 1998/09/04 20:45:03 jim
# fixed namespace screw up due to from DT_Util import *
#
# Revision 1.3 1998/07/29 15:09:14 jim
# Added expr to sqlvar
#
# Revision 1.2 1998/04/27 18:58:14 jim
# Now use exported sql_quote__ function to quote strings.
#
# Revision 1.1 1998/03/17 19:31:22 jim
# added new sql tags
#
# Revision 1.9 1998/01/12 16:47:34 jim
# Changed a number of custom formats to modifiers, since they can
# be applies cumulatively.
# Updated documentation.
#
# Revision 1.8 1998/01/08 20:57:34 jim
# *** empty log message ***
#
# Revision 1.7 1998/01/05 21:23:01 jim
# Added support for fmt="" to allow vars with side effects.
#
# Revision 1.6 1997/12/12 16:19:06 jim
# Added additional special formats, structured-text and sql-quote.
# Also changed the way formats are handled. This has (and will)
# reveal now hidden fmt=invalid-thing errors.
#
# Revision 1.5 1997/10/27 17:39:27 jim
# removed a comment burp.
#
# Revision 1.4 1997/10/23 14:27:47 jim
# Added truncation support via size and etc attributes.
#
# Revision 1.3 1997/10/23 13:30:16 jim
# Added comma-numeric format.
#
# Revision 1.2 1997/09/22 14:42:51 jim
# added expr
#
# Revision 1.1 1997/08/27 18:55:44 jim
# initial
#
#
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