o k` @sddlZddlmZddlTddlmZddlmZddlm Z ddl m Z ddl m Z dd lmZmZmZGd d d eZdS) N)get_configinfo)*)get_plugin_info)IPermissionRequestor)tag)_)IRequestHandler)ChromeINavigationContributor accesskeyc@sHeZdZdZdZeeeeddZ ddZ ddZ d d Z d d Z d S) AboutModulez|"About Trac" page provider, showing version information from third-party packages, as well as configuration information.TcCsdS)Naboutselfreqrr,/usr/lib/python3/dist-packages/trac/about.pyget_active_navigation_item*sz&AboutModule.get_active_navigation_itemccs.ddtjtd|jt|ddfVdS)Nmetanavr z About Trac )hrefr )rarrr r rrrrget_navigation_items-s  z AboutModule.get_navigation_itemscCsdgS)N CONFIG_VIEWr)rrrrget_permission_actions4sz"AboutModule.get_permission_actionscCstd|jS)Nz/about(?:_trac)?$)rematch path_inforrrr match_request9szAboutModule.match_requestcCsddddd}d|ddvr|jj|d<t|j|d|ddvr,t|j|d<d|ddvr=t|j|d<d|ddvrLt|j|d<d |fS) N) systeminfopluginsconfig interfacerr!r system_infor r"iniz about.html)permenvr#r add_jquery_uir!get_interface_customization_filesr)rrdatarrrprocess_request<s  zAboutModule.process_requestN)__name__ __module__ __qualname____doc__required implementsr rrrrrrr*rrrrr s  r )r trac.configr trac.core trac.loaderr trac.permrtrac.util.htmlrtrac.util.translationr trac.web.apirtrac.web.chromer r r Componentr rrrrs