Package rubacon :: Package backend :: Module XMLStorage :: Class XMLStorage
[hide private]
[frames] | no frames]

Class XMLStorage

source code


Instance Methods [hide private]
 
__init__(self, datadir='data/')
Create the XMLStorage.
source code
 
clearCollection(self, aColName)
Clear the given collection.
source code
 
removeResource(self, aColName, aXpath)
The XPath matches some elements, these are removed from the resource.
source code
 
retrieve(self, aColName, aXpath)
Retrieve the given XPath expression from the document
source code
 
store(self, aColName, aSnippet)
Store a given snippet in the collection.
source code

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

Class Variables [hide private]
  ___DATADIR = 'data/'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, datadir='data/')
(Constructor)

source code 

Create the XMLStorage.

Check if the dir is present, otherwise create it

Overrides: object.__init__

clearCollection(self, aColName)

source code 

Clear the given collection.

Implementation is simple: just remove the file