Package svs_core :: Package filehandling :: Module dataproviders :: Class DataProvider
[show private | hide private]
[frames | no frames]

Class DataProvider

Known Subclasses:
CVSDataProvider, FileDataProvider, WikiDataProvider

Base class for all data providers.
Method Summary
  __init__(self, searchpaths, defaultResult)
  addSearchpath(self, label, searchpath)
Adds new searchpath.
  getDataForLabel(self, dataRequest)
Provides custom handling of data requests.
  getDataOnSearchpath(self, path, requestInfo)
Finds data matching requestInfo on specified path.

Method Details

addSearchpath(self, label, searchpath)

Adds new searchpath. Each searchpath is defined by a label which relates it to particular categories of data.

getDataForLabel(self, dataRequest)

Provides custom handling of data requests.

This should be overridden by extending classes.

getDataOnSearchpath(self, path, requestInfo)

Finds data matching requestInfo on specified path.

This method should be overridden by extending classes.
Parameters:
requestInfo
           (type=array)

Generated by Epydoc 2.1 on Thu Oct 20 15:30:25 2005 http://epydoc.sf.net