All pastes #576338 Raw Edit

Stuff

public text v1 · immutable
·published 2007-06-19 13:16 UTC
rendered paste body
void PALUDIS_VISIBLE expose_dep_tag()
{
    /**
     * DepTag
     */
    bp::class_<DepTag, boost::noncopyable>
        ("DepTag",
            "A DepTag can be associated with a PackageDepSpec, and is transferred "
            "onto any associated DepListEntry instances.",
            bp::no_init
        )
        .add_property("short_text", &DepTag::short_text,
                "[ro] string\n"
                "Our short text (for example, 'GLSA-1234') that is "
                "displayed with the dep list entry."
                )

        .add_property("category", &DepTag::category,
                "[ro] string\n"
                "Our DepTagCategory's tag."
                )

        .def("__cmp__", &py_cmp<DepTag>)
        ;