Current Path : /usr/lib/python2.7/dist-packages/twisted/tap/ |
Current File : //usr/lib/python2.7/dist-packages/twisted/tap/manhole.pyc |
oUNc @ s d Z d d l m Z d d l m Z d d l m Z m Z d d l m Z m Z d d l m Z d d l Z d d l Z d e j f d YZ d Z d S( sB I am the support module for making a manhole server with twistd. i( t service( t pb( t usaget util( t portalt checkers( t strportsNt Optionsc B s e Z d Z d d d d g d d e e j d g g Z d d d g g Z e j d i e j d 6 Z d Z e Z d Z RS( s [options]t usert ut admins Name of user to allow to log int portt ps Port to listen ont tracebackst Ts, Allow tracebacks to be sent over the networkt optActionsc C s3 | d k r% t j d d | d <n | | d <d S( sB Required. '-' will prompt or read a password from stdin. t t -t confirmi t passwordN( R R ( R t getPassword( t selfR ( ( s7 /usr/lib/python2.7/dist-packages/twisted/tap/manhole.pyt opt_password s c C s# | j d s | j d n d S( NR R ( t has_keyR ( R ( ( s7 /usr/lib/python2.7/dist-packages/twisted/tap/manhole.pyt postOptions, s ( t __name__t __module__t synopsist strR t portnot optParameterst optFlagsR t Completionst CompleteUsernamest compDataR t opt_wR ( ( ( s7 /usr/lib/python2.7/dist-packages/twisted/tap/manhole.pyR s c C s | d | d | d } } } t j t j t j | d | j d t j i | | 6 g } t j | t j | | d S( NR R R R t namespace( R t PortalR t Realmt Servicet getR t' InMemoryUsernamePasswordDatabaseDontUseR R t PBServerFactory( t configR R R R ( ( s7 /usr/lib/python2.7/dist-packages/twisted/tap/manhole.pyt makeService0 s %( t __doc__t twisted.manholeR t twisted.spreadR t twisted.pythonR R t twisted.credR R t twisted.applicationR t ost sysR R, ( ( ( s7 /usr/lib/python2.7/dist-packages/twisted/tap/manhole.pyt <module> s