Comment #5 on issue 677 by pekka.klarck: Helper methods accidentally exposed as keywords in Dialogs library
http://code.google.com/p/robotframework/issues/detail?id=677

Prefixing helpers functions with an underscore fixes the problem, but doesn't prevent it from reappearing if new helpers are needed.

What we are actually missing is a way to expose only certain functions in a module test library implemented as keywords. I though we already use Python's `__all__` attribute for this, but I just checked that we only do that with variable files. Should we add support for `__all__` for this case too? Or should we try find some other solution? What ever we do is definitely a subject of a separate issue.

We could obviously also convert the Dialogs library into a class, but I think that's just avoiding the problem and would also add extra boilerplate. I'm sure others are bitten by this problem too and thus we should have solution in the framework.

Reply via email to