[Zope-CVS] CVS: Products/OSCOM/NOTSite/skins/NOTContent - section_edit.py:1.1 tease_edit.py:1.1
Tres Seaver
tseaver@zope.com
Mon, 26 May 2003 01:57:52 -0400
Update of /cvs-repository/Products/OSCOM/NOTSite/skins/NOTContent
In directory cvs.zope.org:/tmp/cvs-serv20698/skins/NOTContent
Added Files:
section_edit.py tease_edit.py
Log Message:
- Skin repairs.
=== Added File Products/OSCOM/NOTSite/skins/NOTContent/section_edit.py ===
## Script (Python) "section_edit"
##parameters=title, description, choice=' Change '
##title=Edit a section
context.edit( title=title,
description=description)
qst='portal_status_message=Section+changed.'
if choice == ' Change and View ':
target_action = context.getTypeInfo().getActionById( 'preview' )
else:
target_action = context.getTypeInfo().getActionById( 'edit' )
context.REQUEST.RESPONSE.redirect( '%s/%s?%s' % ( context.absolute_url()
, target_action
, qst
) )
=== Added File Products/OSCOM/NOTSite/skins/NOTContent/tease_edit.py ===
## Script (Python) "tease_edit"
##parameters=remote_url, choice=' Change '
##title=Edit a tease
context.edit(remote_url=remote_url)
qst='portal_status_message=Tease+changed.'
if choice == ' Change and View ':
target_action = context.getTypeInfo().getActionById( 'preview' )
else:
target_action = context.getTypeInfo().getActionById( 'edit' )
context.REQUEST.RESPONSE.redirect( '%s/%s?%s' % ( context.absolute_url()
, target_action
, qst
) )