Emmanuel Blot wrote:
> It seems it is used from the TracAdmin.complete_line() method, which
> is itself invoked from:
>   * TracAdmin.complete_help()
>   * TracAdmin.completedefault()
>   * TracAdmin.completenames()
> However I cannot find any call to these methods. What am I missing?

This is done by the base class, cmd.Cmd.

You don't need to understand how it works, though. Just implement the
required completion functions, looking at some of the existing commands
like trac.wiki.admin.WikiAdmin as an example.

> Moreover, I cannot trigger an autocompletion from the tracadmin
> command line. How to use it?

Auto-completion should be triggered by the "Tab" key. On Windows, IIRC
you need to install pyreadline:

  http://pypi.python.org/pypi/pyreadline

-- Remy

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to