| Home | Trees | Index | Help |
|
|---|
| Module paludis :: Class MetadataKey |
|
object--+ |instance--+ | MetadataKey
MetadataContentsKey,
MetadataDependencySpecTreeKey,
MetadataFetchableURISpecTreeKey,
MetadataFSEntryIterableKey,
MetadataFSEntryKey,
MetadataIUseFlagIterableKey,
MetadataKeywordNameIterableKey,
MetadataLicenseSpecTreeKey,
MetadataPackageIDIterableKey,
MetadataPackageIDKey,
MetadataProvideSpecTreeKey,
MetadataRepositoryMaskInfoKey,
MetadataRestrictSpecTreeKey,
MetadataSectionKey,
MetadataSimpleURISpecTreeKey,
MetadataStringIterableKey,
MetadataStringKey,
MetadataTimeKey,
MetadataUseFlagNameIterableKeyA MetadataKey is a generic key that contains a particular piece of information about a PackageID instance. A basic MetadataKey has: - A raw name. This is in a repository-defined format designed to closely represent the internal name. For example, ebuilds and VDB IDs use raw names like 'DESCRIPTION' and 'KEYWORDS', whereas CRAN uses names like 'Title' and 'BundleDescription'. The raw name is unique in a PackageID. - A human name. This is the name that should be used when outputting normally for a human to read. - A MetadataKeyType. This is a hint to clients as to whether the key should be displayed when outputting information about a package ID. Subclasses provide additional information, including the 'value' of the key.
| Method Summary | |
|---|---|
Raises an exception This class cannot be instantiated from Python | |
__reduce__(...)
| |
| string |
Fetch our human name. |
| string |
Fetch our raw name. |
| MetadataKeyType |
Fetch our key type. |
| Inherited from instance | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Method Details |
|---|
human_name()Fetch our human name. human_name() -> string Fetch our human name.
|
raw_name()Fetch our raw name. raw_name() -> string Fetch our raw name.
|
type()Fetch our key type. type() -> MetadataKeyType Fetch our key type.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Aug 4 19:40:18 2008 | http://epydoc.sf.net |