[cpif] r253 - trunk/frontend-web

svn at argo.es svn at argo.es
Tue Jul 10 12:19:31 CEST 2007


Author: jcea
Date: Tue Jul 10 12:19:30 2007
New Revision: 253

Log:
Cosmetica 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	Tue Jul 10 12:19:30 2007
@@ -27,34 +27,32 @@
       "month_name": nombres_meses[fecha[1]].capitalize(),
       "current_year": fecha[0],
       }
-    prev_year_text = '<a href="/indice/%%(metatag)d/%d">&lt;&lt;</a>' % (date_number - 100)
-    next_year_text = '<a href="/indice/%%(metatag)d/%d">&gt;&gt;</a>' % (date_number + 100)
-    prev_month_text = '<a href="/indice/%%(metatag)d/%d">&lt;</a>' % ((date_number - 1)
+    prev_year_text = '<a href="/indice/%%(metatag)d/%d">&#171;</a>' % (date_number - 100)
+    next_year_text = '<a href="/indice/%%(metatag)d/%d">&#187;</a>' % (date_number + 100)
+    prev_month_text = '<a href="/indice/%%(metatag)d/%d">&lsaquo;</a>' % ((date_number - 1)
                                                                        if month > 1
                                                                        else (date_number - 89))
-    next_month_text = '<a href="/indice/%%(metatag)d/%d">&gt;</a>' % ((date_number + 1)
+    next_month_text = '<a href="/indice/%%(metatag)d/%d">&rsaquo;</a>' % ((date_number + 1)
                                                                        if month < 12
                                                                        else (date_number + 89))
     if yearmon_min > prev_y:
-        data.update({ 'prev_year':   "&lt;&lt;",
+        data.update({ 'prev_year':   "&#171;",
                       'prev_month': (prev_month_text
                                      if yearmon_min < orig_date
-                                     else "&lt;") })
+                                     else "&lsaquo;") })
     else:
         data.update({ 'prev_month': prev_month_text,
-                      'prev_year': ("&lt;&lt;"
+                      'prev_year': ("&#171;"
                                     if yearmon_min.month > prev_y.month
                                     else prev_year_text) })
-    print orig_date
-    print yearmon_max
     if yearmon_max < next_y:
-        data.update({ 'next_year':   "&gt;&gt;",
-                      'next_month': ("&gt;"
+        data.update({ 'next_year':   "&#187;",
+                      'next_month': ("&rsaquo;"
                                      if yearmon_max <= orig_date
                                      else next_month_text) })
     else:
         data.update({ 'next_month': next_month_text,
-                      'next_year': ("&gt;&gt;"
+                      'next_year': ("&#187;"
                                     if yearmon_max.month > next_y.month
                                     else next_year_text) })
     
@@ -82,3 +80,4 @@
   import datetime
   dt=datetime.datetime.fromtimestamp(ts,tz)
   return "%d de %s de %d, a las %.2d:%.2d" %(dt.day,nombres_meses[dt.month],dt.year,dt.hour,dt.minute)
+



More information about the cpif mailing list