[Zope-CMF] [dev] CMFDefault: renaming type action urls

Tres Seaver tseaver at palladion.com
Mon May 13 13:36:48 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/13/2013 04:06 AM, yuppie wrote:
> Hi!
> 
> 
> This just affects configuration. If you use your own profile, you can
>  use different names. But nevertheless names shouldn't be changed too
>  often and without a good reason. So I'd like to make sure there are
> no objections:
> 
> We are in the process of replacing skin methods by browser views, but
> we still show the old skin method names in Action URLs. I'd like to
> get rid of type specific names and would prefer more generic names. A
> detailed list is at the bottom of this mail.
> 
> Part of that change would be adjusting the Method Aliases and adding
> an upgrade step to make migration easier.
> 
> 
> Cheers,
> 
> Yuppie
> 
> 
> 
> Types: Discussion Item, Document, Favorite, Link, News Item Action:
> object/view old: url_expr="string:${object_url}/discussionitem_view" 
> old: url_expr="string:${object_url}/document_view" old:
> url_expr="string:${object_url}/favorite_view" old:
> url_expr="string:${object_url}/link_view" old:
> url_expr="string:${object_url}/newsitem_view" new:
> url_expr="string:${object_url}"
> 
> Types: File, Image Action: object/view old:
> url_expr="string:${object_url}/file_view" old:
> url_expr="string:${object_url}/image_view" new:
> url_expr="string:${object_url}/view"
> 
> Types: File Action: object/download old:
> url_expr="string:${object_url}" new: =
> 
> Types: Document, Favorite, File, Image, Link, News Item Action:
> object/edit old: url_expr="string:${object_url}/document_edit_form" 
> old: url_expr="string:${object_url}/file_edit_form" old:
> url_expr="string:${object_url}/image_edit_form" old:
> url_expr="string:${object_url}/link_edit_form" old:
> url_expr="string:${object_url}/newsitem_edit_form" new:
> url_expr="string:${object_url}/edit" Action: object/metadata old:
> url_expr="string:${object_url}/metadata_edit_form" new:
> url_expr="string:${object_url}/properties"
> 
> Types: Folder, CMF BTree Folder Action: object/view old:
> url_expr="string:${object_url}" new: = Action: object/folderContents 
> old: url_expr="string:${object_url}/folder_contents" new: = Action:
> object/new (Action is deprecated) old:
> url_expr="string:${object_url}/folder_factories" new: = Action:
> object/localroles old:
> url_expr="string:${object_url}/folder_localrole_form" new:
> url_expr="string:${object_url}/sharing" Action: object/rename_items
> (Action is obsolete with browser views) old:
> url_expr="string:${object_url}/folder_rename_form" new: = Action:
> object/edit old: url_expr="string:${object_url}/folder_edit_form" new:
> url_expr="string:${object_url}/properties"


+1 overall.  I've lost some context, so a couple of questions:

- - An empty value for 'new' means that the alias is being deleted?  If so,
  do we make a distinction between a "download" view for files / images
  (setting 'Content-disposition: attachment') vs. the "bare" URL?

- - Why have an alias from 'object/edit' to 'string:${object_url}/edit


Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlGQ7HAACgkQ+gerLs4ltQ7USwCg1L1MB+/kp9DJYAhmCNjk1+5E
3FwAoNHhY0hfMG30ntmHI8fAg4DmO1KN
=5hV3
-----END PGP SIGNATURE-----



More information about the Zope-CMF mailing list