[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_control - finish_portal_construction.pt:1.1.2.1 reverseList.py:1.1.2.1 synPropertiesForm.pt:1.1.2.1
Andrew Sawyers
andrew@zope.com
Wed, 28 Nov 2001 13:10:13 -0500
Update of /cvs-repository/CMF/CMFDefault/skins/zpt_control
In directory cvs.zope.org:/tmp/cvs-serv23704/CMFDefault/skins/zpt_control
Added Files:
Tag: CMF-1_2-branch
finish_portal_construction.pt reverseList.py
synPropertiesForm.pt
Log Message:
*merge CMFDecor into CMF
=== Added File CMF/CMFDefault/skins/zpt_control/finish_portal_construction.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="main">
<div class="Desktop">
<h3>Welcome to the CMF!</h3>
<p>The first thing you should do is visit the
<a href="http://cmf.zope.org"
tal:attributes="href python: here.portal_url() + '/reconfig_form'">basic configuration form</a>.<br />
Then visit the <a href="http://cmf.zope.org"
tal:attributes="href python: here.portal_url() + '/manage'">management interface</a> and
the <a href="http://cmf.zope.org"
tal:attributes="href python: here.portal_url()">home page</a>.
</p>
</div>
</div>
</body>
</html>
=== Added File CMF/CMFDefault/skins/zpt_control/reverseList.py ===
## Script (Python) "reverseList.py $Revision: 1.1.2.1 $"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=aList
##title=Reverse A List or Tuple and Return it
##
myList=list(aList)[:]
myList.reverse()
return myList
=== Added File CMF/CMFDefault/skins/zpt_control/synPropertiesForm.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="main">
<div class="Desktop" tal:define="global portal_syndication here/portal_syndication">
<h2>Default Syndication Properties</h2>
<div tal:condition="python: portal_syndication.isSiteSyndicationAllowed() and portal_syndication.isSyndicationAllowed(here)">
<form action="editSynProperties" method="post">
<table width="100%" border="0">
<tr>
<th colspan="2" valign="top" align="left">Channel Properties</th>
</tr>
<tr>
<td colspan="2">
<table width="90%" border="1">
<tr>
<td>
<table>
<tr>
<td valign="top" height="30">Channel Title: </td>
<td valign="top" height="30" tal:content="here/Title">
Title
</td>
</tr>
<tr>
<td valign="top" height="30">Channel Description: </td>
<td valign="top" height="30" tal:content="here/Description">
Description
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<th valign="top" align="left">Sy Module Properties</th>
</tr>
<tr>
<td colspan="2">
<table width="90%" border="1"><tr><td>
<table>
<tr>
<th align="left">Element</th>
<th align="left">Default Value</th>
</tr>
<tr>
<td>
UpdatePeriod
</td>
<td>
<select name="updatePeriod">
<option value="hourly"
tal:define="upd python: portal_syndication.getUpdatePeriod(here)"
tal:repeat="item portal_syndication/buildUpdatePeriods"
tal:attributes="value python: item[0]; selected python: item == upd"
tal:content="python: item[1]">Hourly
</option>
</select>
</td>
</tr>
<tr>
<td>
UpdateFrequency
</td>
<td>
<input type="text" name="updateFrequency" size="3" value=""
tal:attributes="value python: portal_syndication.getUpdateFrequency(here)">
</td>
</tr>
<tr>
<td>
UpdateBase
</td>
<td>
<input type="text" name="updateBase:date" value="" size="25"
tal:attributes="value python: portal_syndication.getUpdateBase(here)">
</td>
</tr>
<tr>
<td>
Max Syndicated Items
</td>
<td>
<input type="text" name="max_items" value="" size="3"
tal:attributes="value python: portal_syndication.getMaxItems(here)">
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="edit" value=" Save ">
</td>
</tr>
</table>
</td></tr></table>
</td>
</tr>
<tr>
<td> <br /> </td>
</tr>
</table>
</form>
<form action="disableSyndication" method="post">
<input type="submit" value="Disable Syndication">
<input type="hidden" name="isAllowed:int" value="0">
</form>
</div>
<div tal:condition="python: here.portal_syndication.isSiteSyndicationAllowed() and not(here.portal_syndication.isSyndicationAllowed(here))">
<form action="enableSyndication" method="post">
<input type="hidden" name="isAllowed:int" value="1">
<input type="submit" value="Enable Syndication">
</form>
</div>
<div tal:condition="python: not(here.portal_syndication.isSiteSyndicationAllowed() and here.portal_syndication.isSyndicationAllowed(here))">
<h4>Syndication is Disabled</h4>
</div>
</div>
</div>
</body>
</html>