def __getitem__(self, idx): string = self._get(idx) return iface.string(string) if string != iface.NULL else None
def get(instance): string = self.get_backing_object(instance) return iface.string(string) if string != iface.NULL else None