|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/proc/self/root/usr/lib/python2.4/site-packages/yum/ |
Upload File : |
mς
ύΙODc @ sΑ d k Z d k Z d k Z d k Z d k Z d k Z d k Z d k l Z l Z l
Z
d e f d YZ d e f d YZ e i
d Z d Z d Z e d j o e n d S(
N( s ConfigParsers NoSectionErrors
NoOptionErrort IncludingConfigParserc B sΛ t Z d d d Z d Z d Z d Z d Z d Z d Z d Z
d
Z d Z d Z
d
Z d d Z d Z d Z d Z e d d Z d Z d Z d Z RS( Nt includec C s8 | | _ h | _ h | _ d | _ t i | | d S( s
@param vars: A dictionary of subsitution variables.
@param include: Name of option that lists files for inclusion
N( R t selft _fnst _includedt Nonet cwdt ConfigParsert __init__t vars( R R R ( ( t. /usr/lib/python2.4/site-packages/yum/parser.pyR s c C s | i S( s: Return a dictionary containing the instance-wide defaults.N( R t _defaults( R ( ( R
t defaults* s c C s7 | i } x$ | i i D] } | i | q W| S( s= Return a list of the sections available in file and includes.N( R t _IncludingConfigParser__sectionst sR t keyst includedt append( R R R ( ( R
t sections. s c C s9 | | i j p | | i i j o t Sn t Sd S( sZ Indicates whether the named section is present in
the configuration and includes.N( t sectionR R
R R t Truet False( R R ( ( R
t has_section5 s )c C su | i | p t | n | | i i j o( | i | } | i | i | | Sn t
i | | | Sd S( N( R R R t NoSectionErrorR R t fnR t
has_optiont optionR ( R R R R ( ( R
R = s
c C so | i | p t | n | | i i j o% | i | } | i | i | Sn t i | | Sd S( s8 Return a list of option names for the given section nameN(
R R R R R R R R t optionsR ( R R R ( ( R
R F s
c C so | i | p t | n | | i i j o% | i | } | i | i | Sn t i | | Sd S( N(
R R R R R R R R t itemsR ( R R R ( ( R
R P s
c C so | i | p t | n | | i i j o% | i | } | i | i | Sn t i | | Sd S( N(
R R R R R R R R t remove_sectionR ( R R R ( ( R
R Y s
c C s | i | p t | n | i | | i p t | i | n | i | | i } | t
i | j o d Sn | i | | d S( s% Add a included file to config sectionN(
R R R R R R t
NoOptionErrort gett incR t shlext splitt _add_include( R R R R ( ( R
t add_includeb s c C sk | i | p t | n | i | | i p t | i | n | i i | p d Sn d S( s Remove an included config parserN(
R R R R R R R R t has_keyR ( R R R ( ( R
t remove_includen s c C s
t i | S( N( R R R ( R ( ( R
t
__sectionsx s c C sY xR t i | D]A } t i i t i i | | _ t
i | | | i q Wd S( N(
R! R"