Do some Zope 3 resources get parameters from a URL?

In Plone 4, I have a custom Dexterity content type that has a NamedBlobFile field called audio_artifact. When using the default editing view for type editing, I see the following URLs:

enter image description here

What's going on here? I am familiar with Zope 3 resources in general, but here it looks like the widget resource is being transferred as the @@ download parameter. It's right? Or am I just embarrassed. I suspect the latter.

+4
source share
2 answers

++something++ is a traversal namespace, so it is not a resource as such, and ++resource++ is a different namespace. Namespaces look for custom namespace handlers that are assigned the rest of the element name.

In this case, the widget namespace handler is assigned the name of the widget forms.widgets.audio_artifact , and it will use it to find the widget in the add form.

@@download is a widget view that allows you to upload a file to the widget. There is also a view for images that allows you to get thumbnails, etc.

+7
source

++ widget ++ form.widgets.audio_artifact goes to the widget in the @@ editing form, and then @@ download is the view of this widget.

+4
source

Source: https://habr.com/ru/post/1500364/


All Articles