[Zope-CVS] CVS: Products/PluggableAuthService/plugins/www - cpcAdd.zpt:1.1.2.1 cpcEdit.zpt:1.1.2.1 rtsAdd.zpt:1.1.2.1

Sidnei da Silva sidnei at enfoldsystems.com
Sat Aug 13 00:34:34 EDT 2005


Update of /cvs-repository/Products/PluggableAuthService/plugins/www
In directory cvs.zope.org:/tmp/cvs-serv7291/plugins/www

Added Files:
      Tag: sidnei-challenge-protocol-chooser
	cpcAdd.zpt cpcEdit.zpt rtsAdd.zpt 
Log Message:

- Implement Challenge Protocol Chooser, with functional doctests


=== Added File Products/PluggableAuthService/plugins/www/cpcAdd.zpt ===
<h1 tal:replace="structure here/manage_page_header">Header</h1>
<h1 tal:replace="structure here/manage_tabs">Tabs</h1>

<h2 tal:define="form_title string:Add a Challenge Protocol Chooser Plugin"
    tal:replace="structure here/manage_form_title">Form Title</h2>


<p class="form-help">
Challenge Protocol Chooser Plugins select the protocol to be used for
challenge based on the incoming request.
</p>

<form action="addChallengeProtocolChooserPlugin" method="post" 
 enctype="multipart/form-data">
<table cellspacing="0" cellpadding="2" border="0">
  <tr>
    <td align="left" valign="top">
    <div class="form-label">
    Id
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="id" size="40" />
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    <div class="form-optional">
    Title
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="title" size="40" />
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    </td>
    <td align="left" valign="top">
    <div class="form-element">
    <input class="form-element" type="submit" name="submit" 
     value=" Add " /> 
    </div>
    </td>
  </tr>
</table>
</form>

<h1 tal:replace="structure here/manage_page_footer">Footer</h1>


=== Added File Products/PluggableAuthService/plugins/www/cpcEdit.zpt ===
<h1 tal:replace="structure here/manage_page_header">Header</h1>

<h2 tal:define="global manage_tabs_message request/manage_tabs_message | nothing;
		form_title string:Challenge Protocol Mapping"
    tal:replace="structure here/manage_tabs"> TABS </h2>

<tal:block tal:define="info options/info">

  <h3> Protocol Mapping </h3>

  <form action="manage_updateProtocolMapping" method="POST">

    <table cellpadding="2" cellspacing="0">

      <tr>
	<th align="left"> Request Type </th>
	<th align="left"> Protocols </th>
      </tr>

      <tr class="row-hilite"
	  tal:repeat="entry info" 
	  tal:attributes="class python:repeat['entry'].odd() and 'row-normal' or default"
	  >
	<td class="form-label"
	    tal:content="entry/label">
	  Request Type
	</td>
	<td class="form-text">
	  <select name="mapping.name:record:list"
		  tal:attributes="name string:mapping.${entry/label}:list:record"
		  type="multiple"
		  multiple="multiple"
		  size="3">
	    <tal:block repeat="protocol entry/settings">
	      <option tal:content="protocol/label"
		      tal:attributes="selected protocol/selected;
				      value protocol/value">
		Protocol
	      </option>
	    </tal:block>
	  </select>
	</td>
      </tr>

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

    </table>
  </form>


</tal:block>

<h1 tal:replace="structure here/manage_page_footer">Footer</h1>


=== Added File Products/PluggableAuthService/plugins/www/rtsAdd.zpt ===
<h1 tal:replace="structure here/manage_page_header">Header</h1>
<h1 tal:replace="structure here/manage_tabs">Tabs</h1>

<h2 tal:define="form_title string:Add a Request Type Sniffer Plugin"
    tal:replace="structure here/manage_form_title">Form Title</h2>


<p class="form-help">
Request Type Sniffer Plugins detect the kind of a incoming request for
later use by other plugins.
</p>

<form action="addRequestTypeSnifferPlugin" method="post" 
 enctype="multipart/form-data">
<table cellspacing="0" cellpadding="2" border="0">
  <tr>
    <td align="left" valign="top">
    <div class="form-label">
    Id
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="id" size="40" />
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    <div class="form-optional">
    Title
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="title" size="40" />
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    </td>
    <td align="left" valign="top">
    <div class="form-element">
    <input class="form-element" type="submit" name="submit" 
     value=" Add " /> 
    </div>
    </td>
  </tr>
</table>
</form>

<h1 tal:replace="structure here/manage_page_footer">Footer</h1>



More information about the Zope-CVS mailing list