Package couchdbkit :: Package ext :: Package django :: Module loading :: Class CouchdbkitHandler
[hide private]
[frames] | no frames]

Class CouchdbkitHandler

source code

object --+
         |
        CouchdbkitHandler

The couchdbkit handler for django

Instance Methods [hide private]
 
__init__(self, databases)
initialize couchdbkit handler with COUCHDB_DATABASES settings
source code
 
sync(self, app, verbosity=2, temp=None)
used to sync views of all applications and eventually create database.
source code
 
copy_designs(self, app, temp, verbosity=2, delete=True)
Copies temporary view over the existing ones
source code
 
get_db(self, app_label, register=False)
retrieve db session for a django application
source code
 
register_schema(self, app_label, *schema)
register a Document object
source code
 
get_schema(self, app_label, schema_name)
retriev Document object from its name and app name
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __shared_state__ = {'_databases': {'greeting': (<couchdbkit.cl...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, databases)
(Constructor)

source code 

initialize couchdbkit handler with COUCHDB_DATABASES settings

Overrides: object.__init__

sync(self, app, verbosity=2, temp=None)

source code 

used to sync views of all applications and eventually create database.

When temp is specified, it is appended to the app's name on the docid. It can then be updated in the background and copied over the existing design docs to reduce blocking time of view updates

copy_designs(self, app, temp, verbosity=2, delete=True)

source code 

Copies temporary view over the existing ones

This is used to reduce the waiting time for blocking view updates


Class Variable Details [hide private]

__shared_state__

Value:
{'_databases': {'greeting': (<couchdbkit.client.Server object at 0x107\
111950>,
                             'greeting')},
 'app_schema': {}}