aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2012-11-16 00:17:54 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2012-11-16 22:28:15 +0000
commita48b2c55c744a8a8c04464533b482302f838102b (patch)
treef520104ec739a16543d0065e21cc3b2d59fe2ae8 /python
parent82518eb45b579e15db394764c79a35e0df740def (diff)
downloadpaludis-a48b2c55c744a8a8c04464533b482302f838102b.tar.gz
paludis-a48b2c55c744a8a8c04464533b482302f838102b.tar.xz
Introduce SlotUnknownRewrittenRequirement
Diffstat (limited to 'python')
-rw-r--r--python/slot_requirement.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/python/slot_requirement.cc b/python/slot_requirement.cc
index 58acbae7e..80ebc5286 100644
--- a/python/slot_requirement.cc
+++ b/python/slot_requirement.cc
@@ -70,6 +70,11 @@ namespace
{
obj = bp::object(std::static_pointer_cast<const SlotAnyUnlockedRequirement>(_m_ptr));
}
+
+ void visit(const SlotUnknownRewrittenRequirement &)
+ {
+ obj = bp::object(std::static_pointer_cast<const SlotUnknownRewrittenRequirement>(_m_ptr));
+ }
};
struct SlotRequirementSptrToPython
@@ -181,5 +186,21 @@ void expose_slot_requirement()
bp::no_init
)
;
+
+ /**
+ * SlotUnknownRewrittenRequirement
+ */
+ register_shared_ptrs_to_python<SlotUnknownRewrittenRequirement>(rsp_const);
+ bp::implicitly_convertible<std::shared_ptr<SlotUnknownRewrittenRequirement>, std::shared_ptr<SlotRequirement> >();
+ bp::class_<SlotUnknownRewrittenRequirement, std::shared_ptr<SlotUnknownRewrittenRequirement>, bp::bases<SlotRequirement>, boost::noncopyable>
+ (
+ "SlotUnknownRewrittenRequirement",
+ "A SlotUnknownRewrittenRequirement is a SlotRequirement for the "
+ "maybe_original_requirement_if_written() method of :3/3.1= slot "
+ "requirements that do not indicate whether they were originally "
+ "of := or :3= type.",
+ bp::no_init
+ )
+ ;
}