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

Properly deal with lists assigned to payloads when using SimpleIO even if not using the slice operator #913

Open
jsabater opened this Issue Feb 15, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@jsabater
Copy link

jsabater commented Feb 15, 2019

In a service, when assigning a list of items to the payload, one has to use the slice operator, i.e. self.response.payload[:]. When using SimpleIO, one can specify ouptut_repeated = True, although that does not prevent the coder from having to use the slice operator when assigning a variable to the payload.

If possible, make SimpleIO autodiscover this situation as much as possible, perhaps being output_repeated = True enough, or even just by figuring out that a list has been assigned to the payload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.