Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support argument conversion with types not supported by XML-RPC #84

Open
pekkaklarck opened this issue Jun 6, 2023 · 0 comments
Open

Comments

@pekkaklarck
Copy link
Member

We have #83 about adding get_keyword_types that will add basic argument conversion support. Basically RemoteServer will return type information to Robot and it will do argument conversion based on it. It won't be enough with types that are not supported by XML-RPC, though, because the Remote library needs to convert them to strings. We need to enhance RemoteServer so that it converts these strings back to correct objects. Because we know the exact format returned by Remote, this conversion isn't too hard. There's some work setting up the overall conversion infrastructure, though.

Related to this, we need to look is conversion to strings always the best approach with types not supported by XML-RPC. For example, with something like timedelta, returning a float got from timedelta.total_seconds() could be a better idea. I'll submit a separate issue about that to Robot's tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant