|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/share/system-config-samba/ |
Upload File : |
mò eÓŸJc @ sµ d k Z d k Z d k Z d k Z d k Z d k l Z d k l Z d k Z d k l Z l Z d k i Z d Z e i e ƒ d f d „ ƒ YZ d „ Z d f d „ ƒ YZ d S( N( s global_keys( s section_keys( t _s N_s system-config-sambat SambaSectionc B sw t Z g Z h Z d e d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d d „ Z d „ Z RS( Nc C sC d | _ g | _ | o% | i | ƒ o t d | ƒ ‚ n d S( Ns section %s already defined( t Nonet selft namet contentt prototypet set_namet Error( R R R ( ( t- /usr/share/system-config-samba/sambaParser.pyt __init__( s c C s• d } | i o | d | i 7} n xi | i D]^ } | i ƒ } | oE | i ƒ d j o t d | | f ƒ ‚ q | d | i ƒ 7} q/ q/ W| S( Nt s %s R s7 refusing to write illegal token %s which would yield %ss %s( t strR R R t tokent getDatat tokendatat stript Exception( R R R R ( ( R t __str__1 s c C sj g } x$ | i D] } | i t | ƒ ƒ q W| i o | i } n d } d | i i | d i | ƒ f S( Nt preambels <%s instance %s: %s >s ( t contentstringsR R R t appendt reprR t __class__t __name__t join( R R R R ( ( R t __repr__? s c C sb | i i ƒ } | o! t i i | ƒ o t i | =n | t i j o t i i | ƒ n ~ d S( N( R R t lowerR t sections_dictt has_keyt sectionst remove( R R ( ( R t deleteI s c C sæ t | ƒ t j oB | d d j o! | d d j o t d ƒ ‚ n | i ƒ } n | } | t i j ow | i o? | i ƒ t i t i i | i i ƒ ƒ <t i | i i ƒ =n t i i | ƒ | | _ | t i | <t Sn t S( Ni t [iÿÿÿÿt ]s) section name must be enclosed in brackets( t typet newnameR R R t _newnameR R R R t indexR R t Truet False( R R$ R% ( ( R R X s " ( c C ss t i | d ƒ d } xV | i D]K } | i t i i j o/ | i ƒ d i ƒ | i ƒ j o | Sqk q q Wd S( NR i ( t sambaTokent sambaTokenCanonicalNameValueR t canonicalNameR R R R# t SambaTokent SAMBA_TOKEN_KEYVALt canonicalNameValueR ( R R R R+ ( ( R t fetchKeym s #c C s | i | ƒ o t Sn t Sd S( N( R R/ R R' R( ( R R ( ( R t keyExistsw s c C s‰ | i | ƒ } | ob | i ƒ \ } } } | o>