| Home | Trees | Index | Help |
|---|
| Package twisted :: Package persisted :: Module dirdbm :: Class Shelf |
|
DirDBM --+
|
Shelf
A directory with a DBM shelf interface.
This class presents a hash-like interface to a directory of small, flat files. Keys must be strings, but values can be any given object.| Method Summary | |
|---|---|
(inherited from DirDBM)
| |
key in dirdbm (inherited from DirDBM)
| |
del dirdbm[foo]Delete a file in this directory. (inherited from DirDBM)
| |
dirdbm[foo]Get and unpickle the contents of a file in
this directory. | |
Return the number of key/value pairs in this Shelf (inherited from DirDBM)
| |
shelf[foo] = barCreate or modify a textfile in this
directory. | |
Delete all key/value pairs in this dirdbm. (inherited from DirDBM)
| |
Close this dbm: no-op, for dbm-style interface compliance. (inherited from DirDBM)
| |
DirDBM
|
Copy the contents of this dirdbm to the dirdbm at path. (inherited from DirDBM)
|
Return the value associated with key or default if
not self.has_key(key) (inherited from DirDBM)
| |
Returns modification time of an entry. (inherited from DirDBM)
| |
Return a true value if this dirdbm has the specified key, a faluse value otherwise. (inherited from DirDBM)
| |
Return a listof 2-tuples containing key/value pairs. (inherited from DirDBM)
| |
Return a listof filenames (keys). (inherited from DirDBM)
| |
(inherited from DirDBM)
| |
Add all the key/value pairs in dictto this dirdbm. (inherited from DirDBM)
| |
Return a listof file-contents (values). (inherited from DirDBM)
| |
Decode a filename to get the key. (inherited from DirDBM)
| |
Encode a key so it can be used as a filename. (inherited from DirDBM)
| |
Read in the contents of a file. (inherited from DirDBM)
| |
Write data to a file. (inherited from DirDBM)
| |
| Method Details |
|---|
__getitem__(self,
k)
|
__setitem__(self,
k,
v)
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:28:21 2003 | http://epydoc.sf.net |