Module paludis :: Class Environment
[show private | hide private]
[frames | no frames]

Type Environment

object --+    
         |    
  instance --+
             |
            Environment

Known Subclasses:
AdaptedEnvironment, EnvironmentImplementation, NoConfigEnvironment, PaludisEnvironment, TestEnvironment

Represents a working environment, which contains an available packages database and provides various methods for querying package visibility and options.
Method Summary
  __init__(...)
Raises an exception This class cannot be instantiated from Python
  __getitem__(...)
[selection] -> list of PackageID Return PackageID instances matching a given selection.
  __reduce__(...)
bool query_use(UseFlagName, PackageID)
Is a particular use flag enabled for a particular package?
DepSpec set(SetName)
Fetch a named set.
    Inherited from instance
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Property Summary
  default_destinations: [ro] DestinationsIterable Default destination candidates for installing packages.
  package_database: [ro] PackageDatabase Our package databas.
  root: [ro] string Our root location for installs.
  set_names: [ro] SetNamesIterable All known named sets.

Method Details

__getitem__(...)
(Indexing operator)

[selection] -> list of PackageID Return PackageID instances matching a given selection.

query_use(UseFlagName, PackageID)

Is a particular use flag enabled for a particular package?
Returns:
bool

set(SetName)

Fetch a named set.
Returns:
DepSpec

Property Details

default_destinations

[ro] DestinationsIterable Default destination candidates for installing packages.
Get Method:
<Boost.Python.function object at 0x179ee...

package_database

[ro] PackageDatabase Our package databas.
Get Method:
<Boost.Python.function object at 0x179ee...

root

[ro] string Our root location for installs.
Get Method:
<Boost.Python.function object at 0x179ee...

set_names

[ro] SetNamesIterable All known named sets.
Get Method:
<Boost.Python.function object at 0x179ee...

Generated by Epydoc 2.1 on Mon Aug 4 19:40:19 2008 http://epydoc.sf.net