[CMF-checkins] CVS: Products/CMFDefault/skins/zpt_control -
enableSyndication.py:1.2
Jens Vagelpohl
jens at dataflake.org
Fri Sep 24 15:58:04 EDT 2004
Update of /cvs-repository/Products/CMFDefault/skins/zpt_control
In directory cvs.zope.org:/tmp/cvs-serv20170
Modified Files:
enableSyndication.py
Log Message:
- fix horrific formatting and overly long lines
=== Products/CMFDefault/skins/zpt_control/enableSyndication.py 1.1 => 1.2 ===
--- Products/CMFDefault/skins/zpt_control/enableSyndication.py:1.1 Tue Jul 6 17:45:16 2004
+++ Products/CMFDefault/skins/zpt_control/enableSyndication.py Fri Sep 24 15:58:04 2004
@@ -3,8 +3,12 @@
##parameters=
if context.portal_syndication.isSiteSyndicationAllowed():
- context.portal_syndication.enableSyndication(context)
- return context.REQUEST.RESPONSE.redirect(context.absolute_url() + '/synPropertiesForm?portal_status_message=Syndication+Enabled')
+ context.portal_syndication.enableSyndication(context)
+ msg = 'Syndication+Enabled'
else:
- return context.REQUEST.RESPONSE.redirect(context.absolute_url() + '/synPropertiesForm?portal_status_message=Syndication+Not+Allowed')
+ msg = 'Syndication+Not+Allowed'
+target = '%s/synPropertiesForm' % context.absolute_url()
+qs = 'portal_status_message=%s' % msg
+
+return context.REQUEST.RESPONSE.redirect('%s?%s' % (target, qs))
More information about the CMF-checkins
mailing list