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

Sidnei da Silva sidnei at enfoldsystems.com
Wed Aug 17 16:53:45 EDT 2005


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

Added Files:
	cpcAdd.zpt cpcEdit.zpt rtsAdd.zpt 
Log Message:

Merge changes from sidnei-challenge-protocol-chooser:

    - Added two new interfaces, IChallengeProtocolChooser and
      IRequestTypeSniffer. Those are used to select the 'authorization
      protocol' or 'challenger protocol' to be used for challenging
      according to the incoming request type.

    - Fixed a couple more places where Zope 2-style __implements__
      where being used to standardize on using classImplements.

    - Fixed fallback implementations of providedBy and
      implementedBy to always return a tuple.

    - Make sure challenge doesn't break if existing instances of the
      PluginRegistry don't yet have IChallengeProtocolChooser as a
      registered interface. (Would be nice to have some sort of
      migration for the PluginRegistry between PAS releases)

    - Don't assume that just because zope.interface can be imported
      that Five is present.


=== Products/PluggableAuthService/plugins/www/cpcAdd.zpt 1.3 => 1.4 ===
--- /dev/null	Wed Aug 17 16:53:44 2005
+++ Products/PluggableAuthService/plugins/www/cpcAdd.zpt	Wed Aug 17 16:53:14 2005
@@ -0,0 +1,49 @@
+<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>


=== Products/PluggableAuthService/plugins/www/cpcEdit.zpt 1.3 => 1.4 ===
--- /dev/null	Wed Aug 17 16:53:44 2005
+++ Products/PluggableAuthService/plugins/www/cpcEdit.zpt	Wed Aug 17 16:53:14 2005
@@ -0,0 +1,59 @@
+<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>


=== Products/PluggableAuthService/plugins/www/rtsAdd.zpt 1.3 => 1.4 ===
--- /dev/null	Wed Aug 17 16:53:44 2005
+++ Products/PluggableAuthService/plugins/www/rtsAdd.zpt	Wed Aug 17 16:53:14 2005
@@ -0,0 +1,49 @@
+<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