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

Type AdaptedEnvironment

object --+        
         |        
  instance --+    
             |    
   Environment --+
                 |
                AdaptedEnvironment


An Environment that allows you to change aspects of an existing Environment, e.g. the state of a USE flag for a package.
Method Summary
  __init__(Environment)
__init__(Environment)
  __reduce__(...)
  adapt_use(PackageDepSpeec, UseFlagName, UseFlagState)
Set the state of a USE flag for the given PackageDepSpec.
  clear_adaptions()
Clear all adaptions from this Environemnt.
    Inherited from Environment
  __getitem__(...)
[selection] -> list of PackageID Return PackageID instances matching a given selection.
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
    Inherited from Environment
  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.

Class Variable Summary
int __instance_size__ = 48                                                                    

Method Details

__init__(Environment)
(Constructor)

__init__(Environment)
Overrides:
__unknown__.__init__

adapt_use(PackageDepSpeec, UseFlagName, UseFlagState)

Set the state of a USE flag for the given PackageDepSpec.

clear_adaptions()

Clear all adaptions from this Environemnt.

Class Variable Details

__instance_size__

Type:
int
Value:
48                                                                    

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