Home | Trees | Index | Help |
---|
|
object --+ | extension.Extension --+ | database.Database --+ | CompilationTestDatabase
|
|||
Inherited from |
|
|||
__init__(self,
path,
arguments)
Construct a 'Database'. |
|||
GetSubdirectories(self,
directory)
Return the immediate subdirectories of 'directory'. |
|||
GetIds(self,
kind,
directory='',
scan_subdirs=1)
Return all IDs of the indicated 'kind' that begin with 'directory'. |
|||
GetExtension(self,
id)
Return the extension object named 'id'. |
|||
_MakeTest(self, test_id, language) | |||
Inherited from Inherited from Inherited from |
|
|||
srcdir | |||
excluded_subdirs | |||
test_extensions | |||
_is_generic_database | True if this database implements 'GetExtension' as a primitive. | ||
_argument_dictionary | |||
_argument_list | |||
Inherited from Inherited from Inherited from Inherited from |
|
Construct a 'Database'. 'path' -- A string containing the absolute path to the directory containing the database. 'arguments' -- A dictionary mapping attribute names to values. The use of this parameter is deprecated. Use keyword arguments instead. Derived classes must call this method from their own '__init__' methods. Every derived class must have an '__init__' method that takes the path to the directory containing the database as its only argument. The path provided to the derived class '__init__' function will always be an absolute path.
|
Return the immediate subdirectories of 'directory'. 'directory' -- A label indicating a directory in the database. returns -- A sequence of (relative) labels indictating the immediate subdirectories of 'directory'. For example, if "a.b" and "a.c" are directories in the database, this method will return "b" and "c" given "a" as 'directory'. Derived classes may override this method.
|
Return all IDs of the indicated 'kind' that begin with 'directory'. 'kind' -- One of the 'ITEM_KINDS'. 'directory' -- A label indicating the directory in which to begin the search. 'scan_subdirs' -- True if (and only if) subdirectories of 'directory' should be scanned. returns -- A list of all items of the indicated 'kind' located within 'directory', as absolute labels. Derived classes may override this method.
|
Return the extension object named 'id'. 'id' -- The label for the extension. returns -- The instance of 'Extension' with the indicated name, or 'None' if there is no such entity. Database classes should override this method. For backwards compatibility, this base class implements this generic method in terms of the special-purpose methods 'GetTest()' and 'GetResource()'. Only if _is_generic_database is True are these implemented in terms of 'GetExtension()'.
|
|
|
srcdir
|
excluded_subdirs
|
test_extensions
|
_is_generic_databaseTrue if this database implements 'GetExtension' as a primitive. Databases should implement 'GetExtension' and then override '_is_generic_database', setting it to 'True'. However, legacy databases implemented 'GetTest', 'GetResource', and 'GetSuite' as primivites. These legacy databases should not override '_generic_database'.
|
_argument_dictionary
|
_argument_list
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 3.0alpha2 on Fri Sep 28 00:57:32 2007 | http://epydoc.sf.net |