Back to index

plone3  3.1.7
synPropertiesForm.py
Go to the documentation of this file.
00001 ##parameters=
00002 ##
00003 from Products.CMFCore.utils import getUtilityByInterfaceName
00004 from Products.CMFDefault.utils import decode
00005 
00006 stool = getUtilityByInterfaceName('Products.CMFCore.interfaces.ISyndicationTool')
00007 options = {}
00008 
00009 s_site_allowed = stool.isSiteSyndicationAllowed()
00010 s_here_allowed = stool.isSyndicationAllowed(context)
00011 
00012 options['title'] = context.Title()
00013 options['description'] = context.Description()
00014 options['s_site_allowed'] = s_site_allowed
00015 options['s_here_allowed'] = s_here_allowed
00016 options['s_allowed'] = s_site_allowed and s_here_allowed
00017 options['s_tool'] = stool
00018 
00019 return context.synPropertiesForm_template(**decode(options, script))