Package pulp :: Package client :: Module repolib :: Class Repo
[hide private]
[frames] | no frames]

Class Repo

source code

object --+    
         |    
      dict --+
             |
            Repo

A yum repo (content set).

Instance Methods [hide private]
new empty dictionary

__init__(self, id)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
list
items(self)
Get ordered items.
source code
int
update(self, other)
Update (merge) based on property definitions.
source code
 
__str__(self)
str(x)
source code
 
__eq__(self, other)
x==y
source code
 
__hash__(self)
hash(x)
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, clear, copy, fromkeys, get, has_key, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, values

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
str CA = None
The absolute path to the CA.
tuple. PROPERTIES = 'name', 0, None, ('baseurl', 0, None), ('enabled'...
Yum repo property definitions.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • id (str) - The repo (unique) id.
Returns:
new empty dictionary

Overrides: object.__init__

items(self)

source code 

Get ordered items.

Returns: list
A list of ordered items.
Overrides: dict.items

update(self, other)

source code 

Update (merge) based on property definitions.

Parameters:
  • other (Repo.) - The object to merge.
Returns: int
The number of properties updated.
Overrides: dict.update

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__eq__(self, other)
(Equality operator)

source code 

x==y

Overrides: dict.__eq__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

Class Variable Details [hide private]

PROPERTIES

Yum repo property definitions.
Type:
tuple.
Value:
'name', 0, None, ('baseurl', 0, None), ('enabled', 1, '1'), ('sslverif\
y', 0, '0'),