[CMF-checkins] CVS: CMF/CMFCollector/skins/collector - subset_edit.py:1.1 subset_edit_form.pt:1.1 subset_view.pt:1.1

Tres Seaver tseaver@zope.com
Mon, 17 Jun 2002 17:58:28 -0400


Update of /cvs-repository/CMF/CMFCollector/skins/collector
In directory cvs.zope.org:/tmp/cvs-serv17737/skins/collector

Added Files:
	subset_edit.py subset_edit_form.pt subset_view.pt 
Log Message:
 - Add CollectorSubset, a drop-in filter for subsetting issues.

=== Added File CMF/CMFCollector/skins/collector/subset_edit.py ===
##title=Update a Collector Subset
##parameters=parameters, REQUEST
context.clearParameters()
for parm in parameters:
    context.setParameter( parm.key, parm.value )
info = context.getTypeInfo()
action = info.getActionById( 'edit' )
REQUEST['RESPONSE'].redirect( '%s/%s?portal_status_message=Updated.'
        % ( context.absolute_url(), action ) )


=== Added File CMF/CMFCollector/skins/collector/subset_edit_form.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="header">

  <h1 id="DesktopTitle"
      tal:content="here/Title">Document Title</h1>

  <div id="DesktopDescription" tal:content="here/Description">
      Document Description goes here.
  </div>

</div>

<div metal:fill-slot="main">

 <form action="subset_edit" method="POST">
 <table>

  <tr>
   <th> Parameter </th>
   <th> Value </th>
  </tr>

  <tr tal:repeat="pt here/listParameterTypes">
   <td tal:content="pt" />
   <td>
     <input type="hidden" name="parameters.key:records"
            tal:attributes="value pt" />
     <input type="text" name="parameters.value:records"
            tal:attributes="value python:here.getParameterValue( pt )">
   </td>
  </tr>

  <tr>
   <td />
   <td> <input type="submit" value=" Update "> </td>
  </tr>

 </table>
 </form>

</div>

</body>
</html>




=== Added File CMF/CMFCollector/skins/collector/subset_view.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="header">

  <h1 id="DesktopTitle"
      tal:content="here/Title">Document Title</h1>

  <div id="DesktopDescription" tal:content="here/Description">
      Document Description goes here.
  </div>

</div>

<div metal:fill-slot="main">

 <table>

  <tr>
   <th> Parameter </th>
   <th> Value </th>
  </tr>

  <tr tal:repeat="pt here/listParameterTypes">
   <td tal:content="pt" />
   <td tal:content="python:here.getParameterValue( pt )" />
  </tr>

 </table>

 <p> Subset Page: <a href=""
                     tal:attributes="href here/getCollectorURL"
                     tal:content="here/getCollectorURL"
                  >/index_html</a></p>

</div>

</body>
</html>