Package driver :: Module filesystem
[show private | hide private]
[frames | no frames]

Module driver.filesystem

This module should abstract the mud from the filesystem. This includes (but is not limited to) handling arbitrary imports of modules (and other data files) as well as reading and writing stuff to the file system and whatever other data repositories we have working.

It needs to be fleshed out.

I'm thinking all object state should get saved in a ZODB rather than pickling things and saving them to disk. This should allow us a huge amount of storage and give us a lot of lattitude and also not force us to using the disk as a way of persisting data.
Function Summary
  get_class(label)
get_class(label)
  get_module(path)
Returns a module object located at "path".
  instantiate(label, args)
Returns an instance object instantiated from class "label".

Function Details

get_class(label)

get_class(label)

get_module(path)

Returns a module object located at "path". Returns None if the module is not found. "path" is a library module or coder-defined module; import system modules using "import <module>". The full path must be specified (such as 'data.tavern.something').

instantiate(label, args=())

Returns an instance object instantiated from class "label". "args" (optional) are passed to the constructor. Returns None if the module or class is not found.

Currently, "args" is not used.

Generated by Epydoc 2.0 on Wed Jan 21 21:00:06 2004 http://epydoc.sf.net