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
80d8f770
Commit
80d8f770
authored
Dec 15, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first Zope
parent
1c13fc2d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
28 additions
and
91 deletions
+28
-91
lib/python/Products/ZGadflyDA/DA.py
lib/python/Products/ZGadflyDA/DA.py
+6
-3
lib/python/Products/ZSQLMethods/SQL.py
lib/python/Products/ZSQLMethods/SQL.py
+3
-3
lib/python/Products/ZSQLMethods/__init__.py
lib/python/Products/ZSQLMethods/__init__.py
+6
-3
lib/python/Products/ZSQLMethods/add.dtml
lib/python/Products/ZSQLMethods/add.dtml
+3
-3
lib/python/Products/ZSQLMethods/edit.dtml
lib/python/Products/ZSQLMethods/edit.dtml
+2
-2
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+3
-6
lib/python/Shared/DC/ZRDB/RDB.py
lib/python/Shared/DC/ZRDB/RDB.py
+2
-68
lib/python/Shared/DC/ZRDB/searchAdd.dtml
lib/python/Shared/DC/ZRDB/searchAdd.dtml
+3
-3
No files found.
lib/python/Products/ZGadflyDA/DA.py
View file @
80d8f770
...
@@ -10,8 +10,8 @@ database_type='Gadfly'
...
@@ -10,8 +10,8 @@ database_type='Gadfly'
###########################################################################
###########################################################################
__doc__
=
'''%s Database Connection
__doc__
=
'''%s Database Connection
$Id: DA.py,v 1.
3 1998/12/02 12:11:48
jim Exp $'''
%
database_type
$Id: DA.py,v 1.
4 1998/12/15 21:09:55
jim Exp $'''
%
database_type
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
from
db
import
DB
,
manage_DataSources
from
db
import
DB
,
manage_DataSources
import
sys
,
DABase
,
Globals
import
sys
,
DABase
,
Globals
...
@@ -36,7 +36,7 @@ class Connection(DABase.Connection):
...
@@ -36,7 +36,7 @@ class Connection(DABase.Connection):
database_type
=
database_type
database_type
=
database_type
id
=
'%s_database_connection'
%
database_type
id
=
'%s_database_connection'
%
database_type
meta_type
=
title
=
'Zope %s Database Connection'
%
database_type
meta_type
=
title
=
'Zope %s Database Connection'
%
database_type
icon
=
'misc_/Z%s/conn'
%
database_type
icon
=
'misc_/Z%s
DA
/conn'
%
database_type
def
factory
(
self
):
return
DB
def
factory
(
self
):
return
DB
...
@@ -65,6 +65,9 @@ class Connection(DABase.Connection):
...
@@ -65,6 +65,9 @@ class Connection(DABase.Connection):
##############################################################################
##############################################################################
#
#
# $Log: DA.py,v $
# $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
# Revision 1.3 1998/12/02 12:11:48 jim
# new names, esp for Aqueduct
# new names, esp for Aqueduct
#
#
...
...
lib/python/Products/ZSQLMethods/SQL.py
View file @
80d8f770
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
__doc__
=
'''SQL Methods
__doc__
=
'''SQL Methods
$Id: SQL.py,v 1.
6 1998/12/02 12:11:49
jim Exp $'''
$Id: SQL.py,v 1.
7 1998/12/15 21:10:31
jim Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
import
Shared.DC.ZRDB.DA
import
Shared.DC.ZRDB.DA
from
Globals
import
HTMLFile
from
Globals
import
HTMLFile
...
@@ -101,7 +101,7 @@ class SQL(Shared.DC.ZRDB.DA.DA):
...
@@ -101,7 +101,7 @@ class SQL(Shared.DC.ZRDB.DA.DA):
employees/employee_id/1234/service_record
employees/employee_id/1234/service_record
"""
"""
meta_type
=
'Z SQL
Database
Method'
meta_type
=
'Z SQL Method'
icon
=
'misc_/ZSQLMethods/icon'
icon
=
'misc_/ZSQLMethods/icon'
manage_main
=
HTMLFile
(
'edit'
,
globals
())
manage_main
=
HTMLFile
(
'edit'
,
globals
())
...
...
lib/python/Products/ZSQLMethods/__init__.py
View file @
80d8f770
...
@@ -11,15 +11,15 @@
...
@@ -11,15 +11,15 @@
__doc__
=
'''SQL Method Product
__doc__
=
'''SQL Method Product
$Id: __init__.py,v 1.
5 1998/12/02 12:11:49
jim Exp $'''
$Id: __init__.py,v 1.
6 1998/12/15 21:10:31
jim Exp $'''
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
from
ImageFile
import
ImageFile
from
ImageFile
import
ImageFile
import
Shared.DC.ZRDB.Search
,
SQL
import
Shared.DC.ZRDB.Search
,
SQL
classes
=
(
'SQL.SQL'
,)
classes
=
(
'SQL.SQL'
,)
meta_types
=
(
meta_types
=
(
{
'name'
:
'Zope SQL Database Method'
,
{
'name'
:
SQL
.
SQL
.
meta_type
,
'action'
:
'manage_addZSQLMethodForm'
,
'action'
:
'manage_addZSQLMethodForm'
,
},
},
{
'name'
:
'Zope Search Interface'
,
{
'name'
:
'Zope Search Interface'
,
...
@@ -54,6 +54,9 @@ __ac_permissions__=(
...
@@ -54,6 +54,9 @@ __ac_permissions__=(
##############################################################################
##############################################################################
#
#
# $Log: __init__.py,v $
# $Log: __init__.py,v $
# Revision 1.6 1998/12/15 21:10:31 jim
# first Zope
#
# Revision 1.5 1998/12/02 12:11:49 jim
# Revision 1.5 1998/12/02 12:11:49 jim
# new names, esp for Aqueduct
# new names, esp for Aqueduct
#
#
...
...
lib/python/Products/ZSQLMethods/add.dtml
View file @
80d8f770
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<!--#if SQLConnectionIDs-->
<!--#if SQLConnectionIDs-->
<form action="manage_add
Aqueduct
SQLMethod" method="post">
<form action="manage_add
Z
SQLMethod" method="post">
<table>
<table>
...
@@ -38,8 +38,8 @@ from data</textarea></td></tr>
...
@@ -38,8 +38,8 @@ from data</textarea></td></tr>
<!--#else-->
<!--#else-->
<em><strong>Warning:</strong>
<em><strong>Warning:</strong>
There are no SQL database connections. You need
There are no SQL database connections. You need
to add a
n Aqueduct
SQL database connection
to add a
Zope
SQL database connection
before you can use a
n Aqueduct SQL database adapter
.
before you can use a
Zope SQL Method
.
</em>
</em>
<!--#/if-->
<!--#/if-->
</body></html>
</body></html>
lib/python/Products/ZSQLMethods/edit.dtml
View file @
80d8f770
...
@@ -70,8 +70,8 @@
...
@@ -70,8 +70,8 @@
<!--#else-->
<!--#else-->
<em><strong>Warning:</strong>
<em><strong>Warning:</strong>
There are no SQL database connections. You need
There are no SQL database connections. You need
to add a
n Aqueduct
SQL database connection
to add a
Zope
SQL database connection
before you can use an
Aqueduct SQL database adapter
.
before you can use an
Zope SQL Method
.
</em>
</em>
<!--#/if-->
<!--#/if-->
</body></html>
</body></html>
...
...
lib/python/Shared/DC/ZRDB/DA.py
View file @
80d8f770
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
__doc__
=
'''Generic Database adapter
__doc__
=
'''Generic Database adapter
$Id: DA.py,v 1.5
4 1998/12/15 17:31:02
jim Exp $'''
$Id: DA.py,v 1.5
5 1998/12/15 21:08:34
jim Exp $'''
__version__
=
'$Revision: 1.5
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
5
$'
[
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
...
@@ -32,10 +32,7 @@ from cPickle import dumps, loads
...
@@ -32,10 +32,7 @@ from cPickle import dumps, loads
from
Results
import
Results
from
Results
import
Results
from
App.Extensions
import
getBrain
from
App.Extensions
import
getBrain
try
:
Bucket
=
lambda
:{}
raise
'waaa'
from
IOBTree
import
Bucket
except
:
Bucket
=
lambda
:{}
class
SQL
(
DocumentTemplate
.
HTML
):
class
SQL
(
DocumentTemplate
.
HTML
):
...
...
lib/python/Shared/DC/ZRDB/RDB.py
View file @
80d8f770
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
__doc__
=
'''Class for reading RDB files
__doc__
=
'''Class for reading RDB files
$Id: RDB.py,v 1.
19 1998/07/12 17:34:10
jim Exp $'''
$Id: RDB.py,v 1.
20 1998/12/15 21:08:34
jim Exp $'''
__version__
=
'$Revision: 1.
19
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
20
$'
[
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
...
@@ -209,69 +209,3 @@ class DatabaseResults:
...
@@ -209,69 +209,3 @@ class DatabaseResults:
return
fields
.
__of__
(
parent
)
return
fields
.
__of__
(
parent
)
File
=
DatabaseResults
File
=
DatabaseResults
##############################################################################
#
# $Log: RDB.py,v $
# Revision 1.19 1998/07/12 17:34:10 jim
# Redid way SQL aliases are handled.
#
# Revision 1.18 1998/07/12 16:46:40 jim
# Redid way SQL aliases are handled.
#
# Revision 1.17 1998/07/12 15:58:57 jim
# Made row data attributes case-insensitive.
#
# Revision 1.16 1998/05/04 22:35:58 jim
# Fixed flaw in (un)escaping logic.
#
# Revision 1.15 1998/02/23 17:47:13 jim
# Fixed bug that broke acquisition by records when accessed with
# getitem.
#
# Revision 1.14 1998/02/06 23:24:42 jim
# *** empty log message ***
#
# Revision 1.13 1998/02/06 22:41:48 jim
# Stupid bug I fixed at hway.
#
# Revision 1.12 1998/01/16 21:43:47 jim
# Added parent to constructor so init can acquire
#
# Revision 1.11 1998/01/16 20:24:49 jim
# Added the abilility to define constructors in brains.
#
# Revision 1.10 1997/12/12 23:38:59 jim
# Added support for text (t) column type.
#
# Revision 1.9 1997/12/05 21:27:58 jim
# Better brain and record-as-instance support.
#
# Revision 1.8 1997/10/09 15:21:49 jim
# Fixed name error in exception handler.
#
# Revision 1.7 1997/10/09 15:11:12 jim
# Added optimization to cache result classes.
#
# Revision 1.6 1997/09/30 16:41:06 jim
# Fixed bug in handling empty lines.
#
# Revision 1.5 1997/09/26 22:17:37 jim
# more
#
# Revision 1.4 1997/09/25 18:40:58 jim
# new interfaces and RDB
#
# Revision 1.4 1997/09/18 17:43:10 jim
# Updated to use Missing.
#
# Revision 1.3 1997/09/12 18:37:11 jim
# Many changes leading to TextIndexes and many bug fixes.
#
# Revision 1.2 1997/09/02 21:24:06 jim
# *** empty log message ***
#
# Revision 1.1 1997/08/13 19:15:24 jim
# Converted name->id, description->title, copied from component
#
#
lib/python/Shared/DC/ZRDB/searchAdd.dtml
View file @
80d8f770
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<H2>New Search Interface</H2>
<H2>New Search Interface</H2>
<form action="manage_add
Aqueduct
Search" method="POST">
<form action="manage_add
Z
Search" method="POST">
You can create a search interface, consisting of a search-input form
You can create a search interface, consisting of a search-input form
and a report for a searchable object.
and a report for a searchable object.
...
@@ -12,9 +12,9 @@ and a report for a searchable object.
...
@@ -12,9 +12,9 @@ and a report for a searchable object.
<tr> <th align='LEFT'>Select one<br>or more<br>searchable objects</th>
<tr> <th align='LEFT'>Select one<br>or more<br>searchable objects</th>
<td align='LEFT'><select name="queries:list" size=4 multiple>
<td align='LEFT'><select name="queries:list" size=4 multiple>
<!--#in
aqueduct
QueryIds-->
<!--#in
Z
QueryIds-->
<option><!--#var sequence-item--></option>
<option><!--#var sequence-item--></option>
<!--#/in
aqueductQueryIds
-->
<!--#/in-->
</select></td></tr>
</select></td></tr>
<tr> <th align='LEFT'>Report Id</th>
<tr> <th align='LEFT'>Report Id</th>
<td align='LEFT'><input name="report_id" size="40"></td></tr>
<td align='LEFT'><input name="report_id" size="40"></td></tr>
...
...
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