[CMF-checkins] CVS: CMF/CMFWorkspaces/skins/workspaces - object_list_rows.pt:1.3 workspace_add.py:1.3
Shane Hathaway
shane@cvs.zope.org
Thu, 6 Jun 2002 11:13:23 -0400
Update of /cvs-repository/CMF/CMFWorkspaces/skins/workspaces
In directory cvs.zope.org:/tmp/cvs-serv27755/skins/workspaces
Modified Files:
object_list_rows.pt workspace_add.py
Log Message:
- Keep track of the location of the workspace, so that the factory can add
the item to the workspace in addition to the container.
- Made the icon in workspaces clickable.
=== CMF/CMFWorkspaces/skins/workspaces/object_list_rows.pt 1.2 => 1.3 ===
</td>
- <td> <img src="document_icon.gif"
- tal:attributes="src item/getIcon"
- tal:on-error="string:" />
- <a href="#"
- tal:attributes="href string:${item/absolute_url}/view"
- tal:content="item/Title"
- tal:omit-tag="no_item_links|nothing"
- tal:on-error="string:(broken)">
- TITLE or ID </a>
+ <td>
+ <a href="#"
+ tal:attributes="href string:${item/absolute_url}/view"
+ tal:omit-tag="no_item_links|nothing"
+ tal:on-error="string:(broken)">
+ <img src="document_icon.gif" border="0"
+ tal:attributes="src item/getIcon"
+ tal:on-error="string:" />
+ <span tal:content="item/Title">TITLE or ID</span>
+ </a>
</td>
<td tal:content="item/Type" nowrap="nowrap"
=== CMF/CMFWorkspaces/skins/workspaces/workspace_add.py 1.2 => 1.3 ===
##title=Redirect to the form for adding the given type.
+ws_url = context.absolute_url()
+
if not type_name:
- url = context.absolute_url() + '/workspace_view'
+ url = ws_url + '/workspace_view'
else:
- url = context.portal_organization.getAddFormURL(type_name)
+ url = context.portal_organization.getAddFormURL(type_name, context)
RESPONSE.redirect(url)
+