| 749 | } |
| 750 | |
| 751 | void MetadataPy::setTag(Py::List args) |
| 752 | { |
| 753 | PyObject* list = nullptr; |
| 754 | if (!PyArg_Parse(args.ptr(), "O!", &PyList_Type, &list)) { |
| 755 | throw Py::Exception(); |
| 756 | } |
| 757 | |
| 758 | getMetadataPtr()->clearTag(); |
| 759 | Py::List tags(list); |
| 760 | for (const auto& tag : tags) { |
| 761 | Py::String pyTag(tag); |
| 762 | getMetadataPtr()->addTag(pyTag.as_std_string()); |
| 763 | } |
| 764 | } |
| 765 | |
| 766 | PyObject* MetadataPy::addTag(PyObject* args) |
| 767 | { |
nothing calls this directly
no test coverage detected