[Scodoc-devel] [SVN] Scolar : [1200] - Added some markup for automated tests.

eviennet at lipn.univ-paris13.fr eviennet at lipn.univ-paris13.fr
Dim 10 Mar 09:56:02 CET 2013


Une pièce jointe HTML a été nettoyée...
URL: <https://www-rt.iutv.univ-paris13.fr/pipermail/scodoc-devel/attachments/20130310/8caa379f/attachment.html>
-------------- section suivante --------------
Modified: trunk/TrivialFormulator.py
===================================================================
--- trunk/TrivialFormulator.py	2013-03-10 08:37:21 UTC (rev 1199)
+++ trunk/TrivialFormulator.py	2013-03-10 08:56:01 UTC (rev 1200)
@@ -283,11 +283,11 @@
         # ---- build form
         buttons_markup = ''
         if self.submitbutton:
-            buttons_markup+= ('<input type="submit" name="%s_submit" value="%s" %s>'
-                              % (self.formid,self.submitlabel, ' '.join(self.submitbuttonattributes)))
+            buttons_markup+= ('<input type="submit" name="%s_submit" id="%s_submit" value="%s" %s/>'
+                              % (self.formid,self.formid,self.submitlabel, ' '.join(self.submitbuttonattributes)))
         if self.cancelbutton:
-            buttons_markup += (' <input type="submit" name="%s_cancel" value="%s">'
-                               % (self.formid,self.cancelbutton))
+            buttons_markup += (' <input type="submit" name="%s_cancel" id="%s_cancel" value="%s"/>'
+                               % (self.formid,self.formid,self.cancelbutton))
 
         R = []
         suggest_js = []

Modified: trunk/ZScoDoc.py
===================================================================
--- trunk/ZScoDoc.py	2013-03-10 08:37:21 UTC (rev 1199)
+++ trunk/ZScoDoc.py	2013-03-10 08:56:01 UTC (rev 1200)
@@ -38,8 +38,6 @@
 from zipfile import ZipFile
 import os.path, glob
 
-import psycopg
-
 from email.MIMEMultipart import MIMEMultipart
 from email.MIMEText import MIMEText
 from email.MIMEBase import MIMEBase
@@ -507,23 +505,24 @@
 
 <!-- login -->
 <form action="doLogin" method="post">
-   <input type="hidden" name="destination" value="Scolarite">
+   <input type="hidden" name="destination" value="Scolarite"/>
 <p>
  <table border="0" cellpadding="3">
     <tr>
       <td><b>Nom:</b></td>
-      <td><input type="text" name="__ac_name" size="20"></td>
+      <td><input id="name" type="text" name="__ac_name" size="20"/></td>
     </tr><tr>
       <td><b>Mot de passe:</b></td>
-      <td><input type="password" name="__ac_password" size="20"></td>
-      <td><input type="submit" value="OK "></td>
+      <td><input id="password" type="password" name="__ac_password" size="20"/></td>
+      <td><input id="submit" name="submit" type="submit" value="OK"/></td>
     </tr>
  </table>
+</p>
 </form>
 
 
 <p>Pour quitter, <a href="acl_users/logout">logout</a>
-
+</p>
 <p>Ce site est con\xE7u pour un navigateur r\xE9cent et <em>ne s'affichera pas correctement avec un logiciel
 ancien</em>. Utilisez par exemple Firefox (gratuit et respectueux des normes).</p>
 <a href="http://www.mozilla-europe.org/fr/products/firefox/">%s</a>
@@ -707,7 +706,7 @@
         self.send_debug_alert(txt, REQUEST=REQUEST)
         # ---
         log('done processing exception')
-        log( '\n page=\n' + '\n'.join(H) )
+        # log( '\n page=\n' + '\n'.join(H) )
         return '\n'.join(H)
 
     def _report_request(self, REQUEST, format='txt'):


Plus d'informations sur la liste de diffusion Scodoc-devel