Xc
@ s d Z d d k Z d d k l Z l Z d d k l Z d d k l Z d d k l Z d d k l
Z
d d k l Z d e f d
YZ
e i e
d e f d YZ e i e d S(
sK
Plugins not accessible directly through the CLI, commands used internally
iN( t apit errors( t Command( t Str( t Output( t _( t json_serializet
json_metadatac B s e Z d Z e Z e d d e d e d d e d f Z e d d e d e d d e d e d d e d f Z e d
e
d e d e d e
d e d
e d e
d e d f Z d Z d Z
RS( s0
Export plugin meta-data for the webUI.
s objname?t docs Name of object to exports methodname?s Name of method to exports object?s method?s command?s Name of command to exportt objectss Dict of JSON encoded IPA Objectst methodss Dict of JSON encoded IPA Methodst commandss! Dict of JSON encoded IPA Commandsc
K s t } t } t } t } y | p | d } n | | i i j o2 | i i | } t | i t | f g } n1 | d j o# t d | i i D } n t } Wn t j
o n Xy | p | d } n | | i i j o2 | i i | } t | i t | f g } n1 | d j o# t d | i i D } n t } Wn t j
o n Xy | d }
|
| i i j o2 | i i |
} t | i t | f g } n1 |
d j o# t d | i i D } n t } Wn t j
o n X| oa t d | i i D } t d | i i D } t d
| i i D } n t d | f d | f d
| f g } | S( Nt objectt allc s s( x! | ] } | i t | f Vq Wd S( N( t nameR ( t .0t o( ( s; /usr/lib/python2.6/site-packages/ipalib/plugins/internal.pys