[Zope-CMF] Re: Serious problem with type actions
Ronan Amicel
ronan.amicel@irisa.fr
Wed, 30 Apr 2003 15:15:31 +0200
Yuppie wrote:
>
> Tres Seaver wrote:
>
>> Write a python script which filters them, looking for '/', for instance.
>
> What about a small modification of _getViewFor and getActionById:
>
> If we remove the absolute part (the last '/' and everything left of it)
> of the action string, people could use absolute URLs if they want.
>
> If I don't miss a use case with a '/' in the relative URL, this would be
> 100% backwards compatible.
Well, almost... In Plone, we have type actions with a '/' inside,
such as string:portal_form/edit_form" to handle form validation and
navigation. I seem to remember Alan saying he wanted to get rid of
that in a future release, but I'm not sure.
The kludge I'm using right now is the opposite solution. I keep the
relative URLs in action strings, but I prepend "$object_url/" when
type actions are used by portal_types to list actions.
--
Ronan Amicel