[Zope-CMF] Re: Method Aliases

Kapil Thangavelu k_vertigo at mac.com
Fri Oct 3 05:26:33 EDT 2003


On Wednesday, October 1, 2003, at 01:06  PM, Dieter Maurer wrote:

> Kapil Thangavelu wrote at 2003-9-30 11:46 -0700:
>> ...
>> looking over the thread i still don't see the problem that this is
>> trying to solve..
>
> Method aliases add an additional level of indirection to
> URL resolution.

sure.

>
> Tres has pointed out that this provides for more meaningful
> names.

yup, and thats apparently the problem/use case they solve, users 
screaming for more meaningful urls ;-)

> It also provides for more flexibility and ease of maintainability.
>
>   Assume, you create a new type by deriving from "Document", say
>   "MyDocument". This means a new set of
>   "mydocument_view", "mydocument_edit", ... templates.
>
>   If "document_view", "document_edit", ... have been cluttered
>   all over the application, you need to find all such occurrences
>   and replace them with the corresponding "mydocument_...".
>
>   However, if you always use the action ids "view", "edit", ...
>   then, you need to remap them at a single place: the action 
> definition.
>   Nothing else to touch.

but method aliases never came into play in that example. unless it was 
just a generic example of url indirection, thats already possible 
within the cmf.

cheers

-kapil




More information about the Zope-CMF mailing list