[CMF-checkins] CVS: CMF - content_status_modify.py:1.1 document_edit.py:1.1 file_edit.py:1.1 folder_edit.py:1.1 image_edit.py:1.1 link_edit.py:1.1 newsitem_edit.py:1.1 content_status_modify.dtml:NONE document_edit.dtml:NONE file_edit.dtml:NONE folder_edit.dtml:NONE image_edit.dtml:NONE link_edit.dtml:NONE newsitem_edit.dtml:NONE
Jens Vagelpohl
jens@digicool.com
Mon, 18 Jun 2001 15:39:33 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault/skins/content
In directory korak.digicool.com:/tmp/cvs-serv15566
Added Files:
content_status_modify.py document_edit.py file_edit.py
folder_edit.py image_edit.py link_edit.py newsitem_edit.py
Removed Files:
content_status_modify.dtml document_edit.dtml file_edit.dtml
folder_edit.dtml image_edit.dtml link_edit.dtml
newsitem_edit.dtml
Log Message:
Changed form handlers from filesystem DTML methods to filesystem python scripts
--- Added File content_status_modify.py in package CMF ---
## Script (Python) "content_status_modify"
##parameters=workflow_action, comment=''
##title=Modify the status of a content object
context.portal_workflow.doActionFor(
context,
workflow_action,
comment=comment)
return context.view(context,
context.REQUEST,
portal_status_message='Status changed.')
--- Added File document_edit.py in package CMF ---
## Script (Python) "document_edit"
##parameters=text_format, text, file='', SafetyBelt=''
##title=Edit a document
context.edit(text_format,
text,
file,
safety_belt=SafetyBelt)
qst='?portal_status_message=Document+changed.'
context.REQUEST.RESPONSE.redirect( context.absolute_url() + '/document_edit_form' + qst )
--- Added File file_edit.py in package CMF ---
## Script (Python) "file_edit"
##parameters=precondition='', file=''
##title=Edit a file
context.edit(
precondition=precondition,
file=file)
qst='?portal_status_message=File+changed.'
context.REQUEST.RESPONSE.redirect( context.absolute_url() + '/file_edit_form' + qst )
--- Added File folder_edit.py in package CMF ---
## Script (Python) "folder_edit"
##parameters=title, description
##title=Edit a folder
context.edit( title=title,
description=description)
qst='?portal_status_message=Folder+changed.'
context.REQUEST.RESPONSE.redirect( context.absolute_url() + '/folder_contents' + qst )
--- Added File image_edit.py in package CMF ---
## Script (Python) "image_edit"
##parameters=precondition='', file=''
##title=Edit an image
context.edit(
precondition=precondition,
file=file)
qst='?portal_status_message=Image+changed.'
context.REQUEST.RESPONSE.redirect( context.absolute_url() + '/image_edit_form' + qst )
--- Added File link_edit.py in package CMF ---
## Script (Python) "link_edit"
##parameters=remote_url
##title=Edit a link
context.edit(remote_url=remote_url)
qst='?portal_status_message=Link+changed.'
context.REQUEST.RESPONSE.redirect( context.absolute_url() + '/link_edit_form' + qst )
--- Added File newsitem_edit.py in package CMF ---
## Script (Python) "newsitem_edit"
##parameters=text, description
##title=Edit a news item
context.edit(text, description)
qst='?portal_status_message=News+Item+changed.'
context.REQUEST.RESPONSE.redirect( context.absolute_url() + '/newsitem_edit_form' + qst )
--- Removed file content_status_modify.dtml from package CMF --
--- Removed file document_edit.dtml from package CMF --
--- Removed file file_edit.dtml from package CMF --
--- Removed file folder_edit.dtml from package CMF --
--- Removed file image_edit.dtml from package CMF --
--- Removed file link_edit.dtml from package CMF --
--- Removed file newsitem_edit.dtml from package CMF --