Package ZenEvents :: Module interfaces :: Class IDbAccess
[hide private]
[frames] | no frames]

Class IDbAccess

source code

zope.interface.Interface --+
                           |
                          IDbAccess

Database access class that normalizes differences in connecting to databases and handles conversion of their values.

Instance Methods [hide private]
 
connect(self, username, password, database, port)
Load our database driver and connect to the database.
source code
 
cleanstring(self, value)
Perform any cleanup nessesary on returned database strings.
source code
 
convert(self, field, value)
Perform convertion of a database value if nessesary.
source code
 
dateString(self, value)
Convert dates to their string format.
source code
 
dateDB(self, value)
Convert a date to its database format.
source code
 
escape(self, value)
Prepare string values for db by escaping special characters.
source code
 
checkConn(self)
Check to see if the connection information in product works
source code
Class Variables [hide private]
  _InterfaceClass__attrs = {'checkConn': <zope.interface.interfa...
  __bases__ = (<InterfaceClass zope.interface.Interface>)
  __identifier__ = 'ZenEvents.interfaces.IDbAccess'
  __iro__ = (<InterfaceClass ZenEvents.interfaces.IDbAccess>, <I...
  __name__ = 'IDbAccess'
  __sro__ = (<InterfaceClass ZenEvents.interfaces.IDbAccess>, <I...
  _implied = {<InterfaceClass ZenEvents.interfaces.IDbAccess>: (...
  dependents = <WeakKeyDictionary at 117486496>

Inherited from zope.interface.Interface (private): _Element__tagged_values

Class Variable Details [hide private]

_InterfaceClass__attrs

Value:
{'checkConn': <zope.interface.interface.Method object at 0x67c19d0>,
 'cleanstring': <zope.interface.interface.Method object at 0x67c1a70>,
 'connect': <zope.interface.interface.Method object at 0x67c1a50>,
 'convert': <zope.interface.interface.Method object at 0x67c19b0>,
 'dateDB': <zope.interface.interface.Method object at 0x67c1a30>,
 'dateString': <zope.interface.interface.Method object at 0x67c1a10>,
 'escape': <zope.interface.interface.Method object at 0x67c19f0>}

__iro__

Value:
(<InterfaceClass ZenEvents.interfaces.IDbAccess>,
 <InterfaceClass zope.interface.Interface>)

__sro__

Value:
(<InterfaceClass ZenEvents.interfaces.IDbAccess>,
 <InterfaceClass zope.interface.Interface>)

_implied

Value:
{<InterfaceClass ZenEvents.interfaces.IDbAccess>: (),
 <InterfaceClass zope.interface.Interface>: ()}