AlkantarClanX12
Current Path : /opt/alt/python27/lib64/python2.7/ |
Current File : //opt/alt/python27/lib64/python2.7/DocXMLRPCServer.pyo |
� ^ bc @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z d � Z d e j f d � � YZ d d d � � YZ d e f d � � YZ d e e f d � � YZ d e e f d � � YZ d S( sK Self documenting XML-RPC Server. This module can be used to create XML-RPC servers that serve pydoc-style documentation in response to HTTP GET requests. This documentation is dynamically generated based on the functions and methods registered with the server. This module is built upon the pydoc and SimpleXMLRPCServer modules. i����N( t SimpleXMLRPCServert SimpleXMLRPCRequestHandlert CGIXMLRPCRequestHandlert resolve_dotted_attributec C s^ | j d d � } | j d d � } | j d d � } | j d d � } | j d d � } | S( Nt &s &t <s <t >s >t "s "s 's '( t replace( t s( ( s4 /opt/alt/python27/lib64/python2.7/DocXMLRPCServer.pyt _html_escape_quote s t ServerHTMLDocc B sD e Z d Z d i i i d � Z d i i i d d � Z d � Z RS( s7 Class used to generate pydoc HTML document for a serverc C s� | p | j } g } d } t j d � } x�| j | | � } | sI Pn | j � \ } } | j | | | | !� � | j � \ } } } } } } | r� | | � j d d � } | j d | | f � n� | rd t | � } | j d | | | � f � n� | r7d t | � } | j d | | | � f � nl | | | d !d k rp| j | j | | | | � � n3 | r�| j d | � n | j | j | | � � | } q- W| j | | | � � d j | � S( s� Mark up some plain text, given a context of symbols to look for. Each context dictionary maps object names to anchor names.i sM \b((http|ftp)://\S+[\w/]|RFC[- ]?(\d+)|PEP[- ]?(\d+)|(self\.)?((?:\w|\.)+))\bR s "s <a href="%s">%s</a>s'