[CMF-checkins] CVS: CMF - personalize.py:1.1 undo.py:1.1 personalize.dtml:NONE undo.dtml:NONE

andrew@digicool.com andrew@digicool.com
Wed, 27 Jun 2001 10:50:47 -0400 (EDT)


Update of /cvs-repository/CMF/CMFDefault/skins/control
In directory korak.digicool.com:/tmp/cvs-serv10511

Added Files:
	personalize.py undo.py 
Removed Files:
	personalize.dtml undo.dtml 
Log Message:

*conversion of dtml methods to python scripts.



--- Added File personalize.py in package CMF ---
## Script (Python) "personalize"
##title=Personalization Handler.
##bind namespace=_
##parameters=
REQUEST=context.REQUEST
context.portal_registration.setProperties(REQUEST)

if REQUEST.has_key('portal_skin'):
    context.portal_skins.updateSkinCookie()
return context.REQUEST.RESPONSE.redirect(context.portal_url() + '/personalize_form?portal_status_message=Member+changed.')

--- Added File undo.py in package CMF ---
## Script (Python) "undo"
##title=Undo transactions
##parameters=transaction_info
try:
    context.portal_undo.undo(context, transaction_info)
except:
    return context.REQUEST.RESPONSE.redirect(
        'folder_contents?portal_status_message=Transaction(s)+could+not+be+undone.' )
    
return context.REQUEST.RESPONSE.redirect(
    'folder_contents?portal_status_message=Transaction(s)+undone' )

--- Removed file personalize.dtml from package CMF --

--- Removed file undo.dtml from package CMF --