Package Products :: Package ZenModel :: Module zendmd :: Class ZenCompleter
[hide private]
[frames] | no frames]

Class ZenCompleter

source code

rlcompleter.Completer --+
                        |
                       ZenCompleter

Provides the abiility to specify *just* the zendmd-specific stuff when you first enter and hit tab-tab, and also the ability to remove junk that we don't need to see.

Instance Methods [hide private]
 
complete(self, text, state)
Return the next possible completion for 'text'.
source code
 
global_matches(self, text)
Compute matches when text is a simple name.
source code
 
attr_matches(self, text)
Compute matches when text contains a dot.
source code

Inherited from rlcompleter.Completer: __init__

Inherited from rlcompleter.Completer (private): _callable_postfix

Class Variables [hide private]
  ignored_names = ["COPY", "DELETE", "HEAD", "HistoricalRevision...
  ignored_prefixes = ['_', 'wl_', 'cb_', 'acl', 'http__', 'dav_'...
  current_prompt = ''
Method Details [hide private]

complete(self, text, state)

source code 

Return the next possible completion for 'text'.

This is called successively with state == 0, 1, 2, ... until it returns None. The completion should begin with 'text'.

Overrides: rlcompleter.Completer.complete
(inherited documentation)

global_matches(self, text)

source code 

Compute matches when text is a simple name.

Overrides: rlcompleter.Completer.global_matches

attr_matches(self, text)

source code 

Compute matches when text contains a dot.

Overrides: rlcompleter.Completer.attr_matches

Class Variable Details [hide private]

ignored_names

Value:
["COPY", "DELETE", "HEAD", "HistoricalRevisions", "LOCK", "MKCOL", "MO\
VE", "OPTIONS", "Open", "PROPFIND", "PROPPATCH", "PUT", "REQUEST", "SQ\
LConnectionIDs", "SiteRootAdd", "TRACE", "UNLOCK", "ac_inherited_permi\
ssions", "access_debug_info", "bobobase_modification_time", "manage_hi\
storyCompare", "manage_historyCopy", "manage_addDTMLDocument", "manage\
_addDTMLMethod", "manage_clone", "manage_copyObjects", "manage_copyrig\
ht", "manage_cutObjects", "manage_historicalComparison", "validClipDat\
a", "manage_CopyContainerAllItems", "manage_CopyContainerFirstItem", "\
...

ignored_prefixes

Value:
['_', 'wl_', 'cb_', 'acl', 'http__', 'dav_', 'manage_before', 'manage_\
after', 'manage_acquired',]