[cpif] r153 - trunk/frontend-web

svn at argo.es svn at argo.es
Fri Jun 15 14:17:53 CEST 2007


Author: alvaro
Date: Fri Jun 15 14:17:50 2007
New Revision: 153

Log:
Errores de validacion en el calendario


Modified:
   trunk/frontend-web/calendario.py

Modified: trunk/frontend-web/calendario.py
==============================================================================
--- trunk/frontend-web/calendario.py	(original)
+++ trunk/frontend-web/calendario.py	Fri Jun 15 14:17:50 2007
@@ -3,8 +3,8 @@
 cache_meses={}
 nombres_meses=["","enero","febrero","marzo","abril","mayo","junio",
                "julio","agosto","septiembre","octubre","noviembre","diciembre"]
-cabecera_mes="<table><tr><th colspan=7>%s %d</th></tr>\r\n" \
-  "<tr><th>L</th><th>M</th><th>X</th><th>J</th><th>V</th><th>S</th><th>D</th></tr>"
+cabecera_mes='<table><tr><th colspan="7">%s %d</th></tr>\r\n' \
+  '<tr><th>L</th><th>M</th><th>X</th><th>J</th><th>V</th><th>S</th><th>D</th></tr>'
 
 def vista_mensual(conn,fecha,usuario,metatag) :
   import calendar
@@ -18,7 +18,7 @@
       semana=mes.pop(0)
       for i in xrange(7) :
         dia=semana.pop(0)
-        texto.append("<td align=center><a href='/indice/%%(metatag)d/%d%.2d%.2d'>%s</a></td>"
+        texto.append('<td align="center"><a href="/indice/%%(metatag)d/%d%.2d%.2d">%s</a></td>'
                        %(dia.year,dia.month,dia.day,dia.day))
       texto.append("</tr>")
     texto.append("</table>")



More information about the cpif mailing list