Package hsh :: Module aliases :: Class AliasManager
[hide private]
[frames] | no frames]

Class AliasManager

UserDict.DictMixin --+
                     |
                    AliasManager

A singleton which is the central point for searching and modifying aliases. Takes responsibility for persisting them to disk. It provides a dict interface which is useful for the curses KeyValueView.

Instance Methods [hide private]
 
__init__(self)
 
_reload(self)
 
_save(self)
 
get_parsed_value(self, key)
Return an hsh.command.CommandToken object which is the parsed version of the alias text.
 
__getitem__(self, key)
 
__setitem__(self, key, value)
 
__delitem__(self, key)
 
keys(self)

Inherited from UserDict.DictMixin: __cmp__, __contains__, __iter__, __len__, __repr__, clear, get, has_key, items, iteritems, iterkeys, itervalues, pop, popitem, setdefault, update, values

Method Details [hide private]

get_parsed_value(self, key)

 

Return an hsh.command.CommandToken object which is the parsed version of the alias text. Keep a copy of it cached to save recalculation.