Commit 80d8f770 authored by Jim Fulton's avatar Jim Fulton

first Zope

parent 1c13fc2d
......@@ -10,8 +10,8 @@ database_type='Gadfly'
###########################################################################
__doc__='''%s Database Connection
$Id: DA.py,v 1.3 1998/12/02 12:11:48 jim Exp $''' % database_type
__version__='$Revision: 1.3 $'[11:-2]
$Id: DA.py,v 1.4 1998/12/15 21:09:55 jim Exp $''' % database_type
__version__='$Revision: 1.4 $'[11:-2]
from db import DB, manage_DataSources
import sys, DABase, Globals
......@@ -36,7 +36,7 @@ class Connection(DABase.Connection):
database_type=database_type
id='%s_database_connection' % database_type
meta_type=title='Zope %s Database Connection' % database_type
icon='misc_/Z%s/conn' % database_type
icon='misc_/Z%sDA/conn' % database_type
def factory(self): return DB
......@@ -65,6 +65,9 @@ class Connection(DABase.Connection):
##############################################################################
#
# $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
#
......
......@@ -11,8 +11,8 @@
__doc__='''SQL Methods
$Id: SQL.py,v 1.6 1998/12/02 12:11:49 jim Exp $'''
__version__='$Revision: 1.6 $'[11:-2]
$Id: SQL.py,v 1.7 1998/12/15 21:10:31 jim Exp $'''
__version__='$Revision: 1.7 $'[11:-2]
import Shared.DC.ZRDB.DA
from Globals import HTMLFile
......@@ -101,7 +101,7 @@ class SQL(Shared.DC.ZRDB.DA.DA):
employees/employee_id/1234/service_record
"""
meta_type='Z SQL Database Method'
meta_type='Z SQL Method'
icon='misc_/ZSQLMethods/icon'
manage_main=HTMLFile('edit', globals())
......
......@@ -11,15 +11,15 @@
__doc__='''SQL Method Product
$Id: __init__.py,v 1.5 1998/12/02 12:11:49 jim Exp $'''
__version__='$Revision: 1.5 $'[11:-2]
$Id: __init__.py,v 1.6 1998/12/15 21:10:31 jim Exp $'''
__version__='$Revision: 1.6 $'[11:-2]
from ImageFile import ImageFile
import Shared.DC.ZRDB.Search, SQL
classes=('SQL.SQL',)
meta_types=(
{'name':'Zope SQL Database Method',
{'name':SQL.SQL.meta_type,
'action':'manage_addZSQLMethodForm',
},
{'name':'Zope Search Interface',
......@@ -54,6 +54,9 @@ __ac_permissions__=(
##############################################################################
#
# $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
# new names, esp for Aqueduct
#
......
......@@ -6,7 +6,7 @@
<!--#if SQLConnectionIDs-->
<form action="manage_addAqueductSQLMethod" method="post">
<form action="manage_addZSQLMethod" method="post">
<table>
......@@ -38,8 +38,8 @@ from data</textarea></td></tr>
<!--#else-->
<em><strong>Warning:</strong>
There are no SQL database connections. You need
to add an Aqueduct SQL database connection
before you can use an Aqueduct SQL database adapter.
to add a Zope SQL database connection
before you can use a Zope SQL Method.
</em>
<!--#/if-->
</body></html>
......@@ -70,8 +70,8 @@
<!--#else-->
<em><strong>Warning:</strong>
There are no SQL database connections. You need
to add an Aqueduct SQL database connection
before you can use an Aqueduct SQL database adapter.
to add a Zope SQL database connection
before you can use an Zope SQL Method.
</em>
<!--#/if-->
</body></html>
......
......@@ -11,8 +11,8 @@
__doc__='''Generic Database adapter
$Id: DA.py,v 1.54 1998/12/15 17:31:02 jim Exp $'''
__version__='$Revision: 1.54 $'[11:-2]
$Id: DA.py,v 1.55 1998/12/15 21:08:34 jim Exp $'''
__version__='$Revision: 1.55 $'[11:-2]
import OFS.SimpleItem, Aqueduct, RDB
import DocumentTemplate, marshal, md5, base64, DateTime, Acquisition, os
......@@ -32,10 +32,7 @@ from cPickle import dumps, loads
from Results import Results
from App.Extensions import getBrain
try:
raise 'waaa'
from IOBTree import Bucket
except: Bucket=lambda:{}
Bucket=lambda:{}
class SQL(DocumentTemplate.HTML):
......
......@@ -11,8 +11,8 @@
__doc__='''Class for reading RDB files
$Id: RDB.py,v 1.19 1998/07/12 17:34:10 jim Exp $'''
__version__='$Revision: 1.19 $'[11:-2]
$Id: RDB.py,v 1.20 1998/12/15 21:08:34 jim Exp $'''
__version__='$Revision: 1.20 $'[11:-2]
import regex, regsub
from string import split, strip, lower, upper, atof, atoi, atol, find, join
......@@ -209,69 +209,3 @@ class DatabaseResults:
return fields.__of__(parent)
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
#
#
......@@ -3,7 +3,7 @@
<H2>New Search Interface</H2>
<form action="manage_addAqueductSearch" method="POST">
<form action="manage_addZSearch" method="POST">
You can create a search interface, consisting of a search-input form
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>
<td align='LEFT'><select name="queries:list" size=4 multiple>
<!--#in aqueductQueryIds-->
<!--#in ZQueryIds-->
<option><!--#var sequence-item--></option>
<!--#/in aqueductQueryIds-->
<!--#/in-->
</select></td></tr>
<tr> <th align='LEFT'>Report Id</th>
<td align='LEFT'><input name="report_id" size="40"></td></tr>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment