Package bazaar :: Module config :: Class CPConfig
[show private | hide private]
[frames | no frames]

Type CPConfig

object --+    
         |    
    Config --+
             |
            CPConfig


Bazaar ORM configuration using ConfigParser module.
Method Summary
  __init__(self, cfg)
Create instance of configuration.
  getAssociationCache(self, attr)
Get name of association cache.
  getClassRelation(self, cls)
Get name of application class' relation.
  getClassSequencer(self, cls)
Get name of sequencer used to get application objects primary key values.
  getDBModule(self)
Return Python DB API module.
  getDSN(self)
Return Python DB API data source name.
  getObjectCache(self, cls)
Get name of application objects cache class.
  getSeqPattern(self)
Return pattern of SQL query, which is used to get next value of application object's primary key value, i.e.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Instance Variable Summary
  cfg: ConfigParser object.

Method Details

__init__(self, cfg)
(Constructor)

Create instance of configuration.
Parameters:
cfg - ConfigParser object.
Overrides:
__builtin__.object.__init__

getAssociationCache(self, attr)

Get name of association cache.
Parameters:
attr - Association attribute name, i.e. Order.items.
Overrides:
bazaar.config.Config.getAssociationCache

getClassRelation(self, cls)

Get name of application class' relation.
Parameters:
cls - Class name.
Overrides:
bazaar.config.Config.getClassRelation

getClassSequencer(self, cls)

Get name of sequencer used to get application objects primary key values.
Parameters:
cls - Class name of application objects.
Overrides:
bazaar.config.Config.getClassSequencer

getDBModule(self)

Return Python DB API module.
Overrides:
bazaar.config.Config.getDBModule

getDSN(self)

Return Python DB API data source name.
Overrides:
bazaar.config.Config.getDSN

getObjectCache(self, cls)

Get name of application objects cache class.
Parameters:
cls - Class name of application objects.
Overrides:
bazaar.config.Config.getObjectCache

getSeqPattern(self)

Return pattern of SQL query, which is used to get next value of application object's primary key value, i.e. select nextval('%s'), where %s means name of sequencer.
Overrides:
bazaar.config.Config.getSeqPattern

Instance Variable Details

cfg

ConfigParser object.

Generated by Epydoc 2.1 on Tue May 10 18:27:29 2005 http://epydoc.sf.net