
    PiD                    h    d Z ddlmZ ddlmZmZ dgZ eh d          Z eh d          Z	ddZ
dS )zDscl command handler for Dippy.

dscl is the Directory Service command line utility.
read/list/search/diff are safe, create/append/merge/delete/change/passwd are not.
    )annotations)ClassificationHandlerContextdscl>   -diff-list-read-readpl-search-readall-readplidifflistreadreadplsearchreadallreadpli>   -p-q-raw-url-plist-P-f-uctxr   returnr   c                   | j         }d}|t          |          k     r"||         }|t          v r|dv r|dz  }n|dz  }4	 |t          |          k     r|dz  }|t          |          k    rt          dd          S ||         }|t          v r)|                    d          }t          dd	|           S t          dd          S )
zClassify dscl command.   >   r   r   r      askr   )description-allowzdscl )tokenslenOPTIONSr   SAFE_COMMANDSlstrip)r   r&   itokencommandcmd_names         //root/projects/gits/Dippy/src/dippy/cli/dscl.pyclassifyr0   %   s    ZF 	
A
c&kk//q	G***QQ 	3v;;	QCKKe8888QiG->>#&&g3E83E3EFFFF%V4444    N)r   r   r   r   )__doc__
__future__r   	dippy.clir   r   COMMANDS	frozensetr)   r(   r0    r1   r/   <module>r8      s     # " " " " " 4 4 4 4 4 4 4 48 	   ( )LLL
M
M5 5 5 5 5 5r1   