Package svs_core :: Package filehandling :: Module sourcecode :: Class SourceRepository
[show private | hide private]
[frames | no frames]

Class SourceRepository


Provides a wrapper around access to source code files.

This is currently setup to read files from a local directory.

Later versions should support remote files, CVS and Wiki access through use of svs_core.filehandling.dataproviders classes.
Method Summary
  __init__(self)
  addSourceReference(self, sourceReference)
Adds references for a source file.
  createModuleForSource(self, sourceName, addToSystem)
Creates a module instance for the source reference.
  getModuleForSource(self, sourceName, caching)
Returns module instance for specified source name.
  getSourceCode(self, sourceName)
Returns source code for specified source name.
  instantiateModule(self, moduleName, moduleCode, addToSystem)
Creates a module instance.
SourceReference loadSourceFile(self, sourceName, url, createInstance, addToSystem)
Loads source file and adds it to repository.
  readSourceFile(self, filename)
Reads and return source code from file.

Method Details

addSourceReference(self, sourceReference)

Adds references for a source file.

createModuleForSource(self, sourceName, addToSystem=False)

Creates a module instance for the source reference.

getModuleForSource(self, sourceName, caching=True)

Returns module instance for specified source name.

getSourceCode(self, sourceName)

Returns source code for specified source name.

instantiateModule(self, moduleName, moduleCode, addToSystem=False)

Creates a module instance.

loadSourceFile(self, sourceName, url, createInstance=False, addToSystem=False)

Loads source file and adds it to repository.

Returns copy of source reference.
Returns:
SourceReference

readSourceFile(self, filename)

Reads and return source code from file.

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