(self, name)
| 111 | self._ff = ff |
| 112 | |
| 113 | def get_attribute(self, name): |
| 114 | attr = CAttribute(name.encode("UTF-8"), 0, 0) |
| 115 | if self._minifi.get_attribute(self._ff, attr) != 0: |
| 116 | return "" |
| 117 | if attr.value_size > 0: |
| 118 | return ctypes.cast(attr.value, ctypes.c_char_p).value.decode("ascii") |
| 119 | return "" |
| 120 | |
| 121 | def add_attribute(self, name, value): |
| 122 | vallen = len(value) |
no test coverage detected