Skip to main content
Archived

Automatic correcting/renaming of auto-generated Python variable names

Related products:FME Form
  • siennaatsafe
    siennaatsafe
  • lifalin2016
    lifalin2016
  • mygis
    mygis
  • samuelvaldez

lifalin2016
Contributor

Hi,

I've just spend hours to track down an error in a custom Workbench transformer calling a Python transformer.

Both transformers were fine, but I finally tracked the error down to being the name I'd given the Workbench transformer which contained a dash (as in "...T-SQL..."). FME used that name indiscriminately to auto-generate the code to call the Python transformer, yielding a not very clear error message, caused by dashes not being allowed in variable names in Python.

FME do already replace blanks with underscores when naming its own transformers, so why not extend this to do the same with dashes (and all other illegal Python variable name characters) ?

This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings