Package libconfix :: Package core :: Package filesys :: Module overlay_directory :: Class OverlayDirectory
[show private | hide private]
[frames | no frames]

Type OverlayDirectory

object --+        
         |        
  VFSEntry --+    
             |    
  OverlayEntry --+
                 |
object --+       |
         |       |
  VFSEntry --+   |
             |   |
  VFSDirectory --+
                 |
                OverlayDirectory


Method Summary
  __init__(self, original, overlay)
  add(self, name, entry)
Overloaded VFSDirectory method.
  expand(self)
Creates child objects based on what original and overlay contain.
    Inherited from VFSDirectory
  entries(self)
Return list of all the entries of a directory, as [(name, entry)].
  entryname(self, entry)
Return the name under which the given entry has been added.
  find(self, path)
Starting at this object, find a descendant at path.
  get(self, name)
Get a directory entry by name.
  set_filesystem(self, filesystem)
Set my and my children's filesystem.
    Inherited from OverlayEntry
  abspath(self)
(VFSEntry implementation)...
  original(self)
  overlay(self)
  relpath(self, from_dir)
(VFSEntry implementation)...
    Inherited from VFSEntry
  del_property(self, name)
  filesystem(self)
  get_property(self, name)
  is_persistent(self)
Does this entry correspond to a physical OS file system entry that can be accessed directly? This information is quite useful under certain circumstances; for example when it is better to pass the file to python's execfile(), rather than exec'ing it from memory (execfile() gives better error messages).
  name(self)
  parent(self)
  set_parent(self, parent)
  set_property(self, name, value)
  sync(self)
Write back to the backing storage, whatever this means.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...

Class Variable Summary
classobj OverlayAddError = libconfix.core.filesys.overlay_directory.OverlayAddError

Method Details

add(self, name, entry)

Overloaded VFSDirectory method. Add the appropriate VFSEntry
to VFSDirectory, and the argument entry to the original.

Returns the compound entry, not the original.
Overrides:
libconfix.core.filesys.vfs_directory.VFSDirectory.add

expand(self)

Creates child objects based on what original and overlay
contain. Does this recursively until both trees are overlay'd.
Overrides:
libconfix.core.filesys.overlay_entry.OverlayEntry.expand

Generated by Epydoc 2.1 on Fri Nov 23 16:56:34 2007 http://epydoc.sf.net