[Python-checkins] r88883 - in tracker/instances/python-dev: extensions/openid_login.py html/issue.item.html html/page.html

ezio.melotti python-checkins at python.org
Sat Aug 20 13:11:27 CEST 2011


Author: ezio.melotti
Date: Sat Aug 20 13:11:26 2011
New Revision: 88883

Log:
Fix a few validation errors.

Modified:
   tracker/instances/python-dev/extensions/openid_login.py
   tracker/instances/python-dev/html/issue.item.html
   tracker/instances/python-dev/html/page.html

Modified: tracker/instances/python-dev/extensions/openid_login.py
==============================================================================
--- tracker/instances/python-dev/extensions/openid_login.py	(original)
+++ tracker/instances/python-dev/extensions/openid_login.py	Sat Aug 20 13:11:26 2011
@@ -295,7 +295,8 @@
     for prov, icon, url in providers.values():
         res.append({'href':request.env['PATH_INFO']+'?@action=openid_login&provider='+prov,
                     'src':icon,
-                    'title':prov})
+                    'title':prov,
+                    'alt':prov})
     return res
 
 def init(instance):

Modified: tracker/instances/python-dev/html/issue.item.html
==============================================================================
--- tracker/instances/python-dev/html/issue.item.html	(original)
+++ tracker/instances/python-dev/html/issue.item.html	Sat Aug 20 13:11:26 2011
@@ -30,7 +30,7 @@
   replace="context/id" i18n:name="id" /> Editing</span>
 </tal:block>
 
-<td class="content" metal:fill-slot="content">
+<tal:block metal:fill-slot="content">
 
 <p tal:condition="python:not (context.is_view_ok()
  or request.user.hasRole('Anonymous'))" i18n:translate="">
@@ -42,7 +42,7 @@
 
 <div tal:condition="context/is_view_ok">
 
-<form method="POST" name="itemSynopsis"
+<form method="post" name="itemSynopsis"
       onSubmit="return submit_once()" enctype="multipart/form-data"
       tal:attributes="action context/designator">
 
@@ -201,7 +201,7 @@
 </tr>
 <tr tal:condition="context/is_edit_ok">
  <th><tal:block i18n:translate="">File Description</tal:block>:</th>
- <td colspan="3"><input type="edit" name="file-1 at description" size="50"></td>
+ <td colspan="3"><input type="text" name="file-1 at description" size="50"></td>
 </tr>
 
 <tr tal:condition="context/is_edit_ok">
@@ -312,7 +312,7 @@
        i18n:name="author" /> (<tal:x replace="msg/author"/>)
        <tal:if condition="msg/author/contrib_form"><span title="Contributor form received">*</span></tal:if>
        <tal:if condition="msg/author/iscommitter">
-         <span title="Python committer"><img src="@@file/committer.png"/></span>
+         <img src="@@file/committer.png" title="Python committer" alt="(Python committer)"/>
        </tal:if>
    </th>
    <th i18n:translate="">Date: <tal:x replace="python:msg.date.pretty('%Y-%m-%d %H:%M')"
@@ -336,6 +336,6 @@
 
 </div>
 
-</td>
+</tal:block>
 
 </tal:block>

Modified: tracker/instances/python-dev/html/page.html
==============================================================================
--- tracker/instances/python-dev/html/page.html	(original)
+++ tracker/instances/python-dev/html/page.html	Sat Aug 20 13:11:26 2011
@@ -188,7 +188,7 @@
             <li>
                 <tal:span i18n:translate="">Login</tal:span>&nbsp;(OpenID&nbsp;possible)<br />
                 <a style="display:inline;width:0;margin:0" tal:repeat="prov python:utils.openid_links(request)" tal:attributes="href prov/href">
-                  <img hspace="0" vspace="0" width="16" height="16" tal:attributes="src prov/src;title prov/title"/></a>
+                  <img hspace="0" vspace="0" width="16" height="16" tal:attributes="src prov/src;title prov/title;alt prov/alt"/></a>
                 <input size="10" name="openid_identifier" style="background:url(http://wiki.openid.net/f/openid-16x16.gif)
                   center left no-repeat;padding-left:16px"/><br/>
                 <input size="10" type="password" name="__login_password"/><br/>


More information about the Python-checkins mailing list