Back to index

plone3  3.1.7
prefs_error_log_setProperties.py
Go to the documentation of this file.
00001 ## Script (Python) "prefs_error_log_setProperties"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=keep_entries,ignored_exceptions,copy_to_zlog=0
00008 ##title=
00009 ##
00010 
00011 from Products.CMFPlone import PloneMessageFactory as _
00012 
00013 request=context.REQUEST
00014 
00015 context.error_log.setProperties(keep_entries,copy_to_zlog,ignored_exceptions)
00016 context.plone_utils.addPortalMessage(_(u'Changes made.'))
00017 
00018 return request.RESPONSE.redirect(context.absolute_url() + '/prefs_error_log_form')