| 867 | } |
| 868 | |
| 869 | long PropertyIntegerList::getPyValue(PyObject* item) const |
| 870 | { |
| 871 | if (PyLong_Check(item)) { |
| 872 | return PyLong_AsLong(item); |
| 873 | } |
| 874 | std::string error = std::string("type in list must be int, not "); |
| 875 | error += item->ob_type->tp_name; |
| 876 | throw Base::TypeError(error); |
| 877 | } |
| 878 | |
| 879 | void PropertyIntegerList::Save(Base::Writer& writer) const |
| 880 | { |
nothing calls this directly
no test coverage detected