Hi Tres,

thanks for the feedback.

Tres Seaver wrote:
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:

Guess I have to explain my list:

- - An empty value for 'new' means that the alias is being deleted?

You mean in my list? Using "new: =" I meant "same as old", not "empty".

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

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"

'object/edit' specifies the Action: 'edit' Action in category 'object'

url_expr="string:${object_url}/edit" specifies the URL of the Action

'edit' isn't a skin method or a browser view, so we have to define Method Aliases which are not shown in my list:

in a profile for browser views:
 <alias from="edit" to="@@edit.html"/> (for all types)

in a profile for old-style skins:
 <alias from="edit" to="document_edit_form"/> (for Document)
 <alias from="edit" to="file_edit_form"/> (for File)
 <alias from="edit" to="image_edit_form"/> (for Image)
 <alias from="edit" to="link_edit_form"/> (for Link, Favorite)
 <alias from="edit" to="newsitem_edit_form"/> (for News Item)

Hope things are a bit clearer now.


Cheers,

        Yuppie

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@zope.org
https://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Reply via email to