Skip to content

Convert DataObjectHandleBase instances to strings

Alex Pearce requested to merge apearce-turboconf-dataobjecthandlebase into master

Input and output location properties set with str will be implicitly casted to DataObjectHandleBase, so when the property is subsequently retrieved and passed to something expecting str, it must be converted.

These changes were necessary after !1539 (merged).

@graven @clemenci: it's quite ugly having to do these conversions. Could we change the getter of these properties to cast to str? Though I suppose in some instances you might want to keep the DataHandle-ness of the property. Perhaps we just have to wait until algorithms accept DataHandle instances 'natively'.

/cc @erodrigu this fixes all but one of the tests you propose to remove in DaVinci!259 (closed)

Merge request reports

Loading