You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An adapter should be a reusable piece of infrastructure. Its implementation should be as generic as possible. But here, and in many other places, we have the adaptors directly reading the request form. This makes them difficult to use. It's the equivalent of depending on a single global variable (the request.form) that's used across the whole system. That's not flexible.
The text was updated successfully, but these errors were encountered:
tiberiuichim
changed the title
Adaptor implementation should be generic, they should not directly read request.form
Adaptor implementations should be generic, they should not directly read request.form
Mar 23, 2023
@tiberiuichim I'm not sure I understand the context here. Let's focus on the specific use case. What are you trying to do with the summary serializer or change about it that is currently difficult?
I have a service (exposed as an expander) where I want to expose some serialized brains. It's "adjacent information", not strictly related to the default content that's serialized.
I want to serialize those brains with their full metadata. I can't do:
An adapter should be a reusable piece of infrastructure. Its implementation should be as generic as possible. But here, and in many other places, we have the adaptors directly reading the request form. This makes them difficult to use. It's the equivalent of depending on a single global variable (the request.form) that's used across the whole system. That's not flexible.
plone.restapi/src/plone/restapi/serializer/summary.py
Line 80 in b15ddc0
The text was updated successfully, but these errors were encountered: