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
Move replace_link_variables_by_paths function in plone.app.contenttypes.utils to plone.base. Use it in plone.app.z3cform instead of its local clone. #712
the function
replace_link_variables_by_pathsis defined in:https://github.com/plone/plone.app.contenttypes/blob/master/plone/app/contenttypes/utils.py#L29
There's the same exact function with the same code, defined here:
https://github.com/plone/plone.app.z3cform/blob/master/plone/app/z3cform/utils.py#L68
This
plone.app.z3cformis used in the converter:https://github.com/plone/plone.app.z3cform/blob/3bf3c73d7139cd1a2fddeb7aa694e3b7b1734b9e/plone/app/z3cform/converters.py#L524
while https://github.com/plone/plone.restapi/blob/main/src/plone/restapi/serializer/dxfields.py
uses the one from
plone.app.contenttypes.utilsA solution could be to move
plone.app.contenttypes.utils.replace_link_variables_by_pathstoplone.baseand remove the one inplone.app.z3cform.cc: @jensens