Package trac :: Package admin :: Module api

Module api

source code

Classes
  IAdminPanelProvider
Extension point interface for adding panels to the web-based administration interface.
  AdminCommandError
Exception raised when an admin command cannot be executed.
  IAdminCommandProvider
Extension point interface for adding commands to the console administration interface trac-admin.
  AdminCommandManager
trac-admin command manager.
  PrefixList
A list of prefixes for command argument auto-completion.
  PathList
A list of paths for command argument auto-completion.
Functions
 
path_startswith(path, prefix) source code
 
get_dir_list(path, dirs_only=False)
Return a list of paths to filesystem entries in the same directory as the given path.
source code
 
get_console_locale(env=None, lang=None, categories=('LANGUAGE', 'LC_ALL', 'LC_MESSAGES', 'LANG'))
Return negotiated locale for console by locale environments and [trac] default_language.
source code
Variables
  LANG = None
hash(x)
  console_date_format = '%Y-%m-%d'
  console_datetime_format = '%Y-%m-%d %H:%M:%S'
  console_date_format_hint = 'YYYY-MM-DD'
  __package__ = 'trac.admin'

Imports: os, sys, traceback, levenshtein_distance, _, get_negotiated_locale, has_babel, Component, ExtensionPoint, Interface, TracBaseError, TracError, TracValueError, implements