Database Adapter
Base Classes
|
|
Aqueduct.BaseQuery
Acquisition.Implicit
Globals.Persistent
AccessControl.Role.RoleManager
OFS.SimpleItem.Item
|
Methods
|
|
|
|
PrincipiaSearchSource
|
PrincipiaSearchSource ( self )
Return content for use by the Find machinery.
|
|
__call__
|
__call__ (
self,
REQUEST=None,
__ick__=None,
src__=0,
test__=0,
**kw,
)
Call the database method
The arguments to the method should be passed via keyword
arguments, or in a single mapping object. If no arguments are
given, and if the method was invoked through the Web, then the
method will try to acquire and use the Web REQUEST object as
the argument mapping.
The returned value is a sequence of record objects.
|
|
__getitem__
|
__getitem__ ( self, key )
|
|
__init__
|
__init__ (
self,
id,
title,
connection_id,
arguments,
template,
)
|
|
_cached_result
|
_cached_result (
self,
DB__,
query,
)
|
|
_er
|
_er (
self,
title,
connection_id,
arguments,
template,
SUBMIT,
sql_pref__cols,
sql_pref__rows,
REQUEST,
)
|
|
_searchable_arguments
|
_searchable_arguments ( self )
|
|
_searchable_result_columns
|
_searchable_result_columns ( self )
|
|
connected
|
connected ( self )
|
|
connectionIsValid
|
connectionIsValid ( self )
|
|
da_has_single_argument
|
da_has_single_argument ( self )
|
|
index_html
|
index_html ( self, URL1 )
|
|
manage_advanced
|
manage_advanced (
self,
max_rows,
max_cache,
cache_time,
class_name,
class_file,
direct=None,
REQUEST=None,
zclass='',
)
Change advanced properties
The arguments are:
- max_rows
The maximum number of rows to be returned from a query.
- max_cache
The maximum number of results to cache
- cache_time
The maximum amound of time to use a cached result.
- class_name
The name of a class that provides additional
attributes for result record objects. This class will be a
base class of the result record class.
- class_file
The name of the file containing the class
definition.
The class file normally resides in the Extensions
directory, however, the file name may have a prefix of
product. , indicating that it should be found in a product
directory.
For example, if the class file is: ACMEWidgets.foo , then an
attempt will first be made to use the file
lib/python/Products/ACMEWidgets/Extensions/foo.py . If this
failes, then the file Extensions/ACMEWidgets.foo.py will be
used.
|
|
manage_edit
|
manage_edit (
self,
title,
connection_id,
arguments,
template,
SUBMIT='Change',
sql_pref__cols='50',
sql_pref__rows='20',
REQUEST=None,
)
Change database method properties
The connection_id argument is the id of a database connection
that resides in the current folder or in a folder above the
current folder. The database should understand SQL.
The arguments argument is a string containing an arguments
specification, as would be given in the SQL method cration form.
The template argument is a string containing the source for the
SQL Template.
|
|
manage_product_zclass_info
|
manage_product_zclass_info ( self )
|
|
manage_test
|
manage_test ( self, REQUEST )
Test an SQL method.
|
|
manage_testForm
|
manage_testForm ( self, REQUEST )
|
|
test_url_
|
test_url_ ( self )
Method for testing server connection information
|
|