Additionally part of this just kind of doesn't feel right, this is the resulting override I ended up with.
Code: Select all
def opPropertyEnumerations(self, dataType="data"):
customOpProperties = {
"Source": [
(translate("PathCustom", "Text"), "Text"),
(translate("PathCustom", "File"), "File"),
]
}
enums = super().opPropertyEnumerations(dataType)
Path.Log.debug(enums)
if dataType == "raw":
enums["Source"] = customOpProperties["Source"]
return enums
idx = 0 if dataType == "translated" else 1
enums.append(("Source", [prop[idx] for prop in customOpProperties["Source"]]))
Path.Log.debug(enums)
return enums
Code: Select all
def opPropertyEnumerations(self, dataType="data"):
return {
"Source": [
(translate("PathCustom", "Text"), "Text"),
(translate("PathCustom", "File"), "File"),
]
}