def emit_editing_finished(self):
self.value = []
self.value.append(str(self.combo.currentText()))
self.value.append(str(self.editor.text()))
self.set_value(self.value)
# emiting editingFinished without a value for the mechanism itself will lead to
# integrity errors
if self.value[1]:
self.editingFinished.emit()
The reason seams to be, that the function emit_editing_finished() in virtuayladdress.py is using str() instead of unicode() (as the other functions do) to cast the output of self.combo.currentText() and self.editor.text().
Sounds legit.
Because in Python 3 the unicode method we know from Python 2 was renamed to str (with the old str method from 2 entirely removed), you can’t just replace str() calls by calls to unicode() as this wouldn’t work in Python 3. Instead, camelot uses the text_type method from the six module.
If you could create a pull request for replacing the relevant str() calls by six.text_type() calls here, I’m pretty sure it will be merged into the default branch.
Regards,
--
--
You received this message because you are subscribed to the "Project Camelot" group.
Visit www.python-camelot.com for more information
To post to this group, send email to project...@googlegroups.com
To unsubscribe from this group, send email to
project-camel...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/project-camelot?hl=en
---
You received this message because you are subscribed to the Google Groups "Project Camelot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-camel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.