diff options
author | 2011-09-09 18:03:34 +0100 | |
---|---|---|
committer | 2011-09-09 18:03:34 +0100 | |
commit | 675e9ac0bb5ddac09b561e1618bd9720748a9c00 (patch) | |
tree | f04a5e6c6e4ff80c6fa427158621111ffe52f5f8 | |
parent | 9b58d8175911ae8a5c309acc2ea83adf927d5ded (diff) | |
download | paludis-675e9ac0bb5ddac09b561e1618bd9720748a9c00.tar.gz paludis-675e9ac0bb5ddac09b561e1618bd9720748a9c00.tar.xz |
Wrap Sequence<string> keys
-rw-r--r-- | python/metadata_key.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/python/metadata_key.cc b/python/metadata_key.cc index a41f1f65b..3bb6eb4fd 100644 --- a/python/metadata_key.cc +++ b/python/metadata_key.cc @@ -758,10 +758,10 @@ struct class_set_key : bp::class_<MetadataCollectionKeyWrapper<C_>, std::shared_ptr<MetadataCollectionKeyWrapper<C_> >, bp::bases<MetadataKey>, boost::noncopyable> { - class_set_key(const std::string & set) : + class_set_key(const std::string & set, const std::string & cn) : bp::class_<MetadataCollectionKeyWrapper<C_>, std::shared_ptr<MetadataCollectionKeyWrapper<C_> >, bp::bases<MetadataKey>, boost::noncopyable>( - ("Metadata" + set + "Key").c_str(), + ("Metadata" + cn + "Key").c_str(), "A MetadataCollectionKey is a MetadataKey that holds a Set or Sequence of some kind of item\n" "as its value.\n\n" @@ -1130,10 +1130,11 @@ void expose_metadata_key() /** * MetadataCollectionKeys */ - class_set_key<KeywordNameSet>("KeywordNameIterable"); - class_set_key<Set<std::string> >("StringIterable"); - class_set_key<FSPathSequence>("FSPathIterable"); - class_set_key<PackageIDSequence>("PackageIDIterable"); + class_set_key<KeywordNameSet>("KeywordNameIterable", "KeywordNameIterable"); + class_set_key<Set<std::string> >("StringIterable", "StringIterable"); + class_set_key<Sequence<std::string> >("StringIterable", "StringSequence"); + class_set_key<FSPathSequence>("FSPathIterable", "FSPathIterable"); + class_set_key<PackageIDSequence>("PackageIDIterable", "PackageIDIterable"); /** * MetadataSpecTreeKeys |