[cpif] r113 - trunk/frontend-web

svn at argo.es svn at argo.es
Thu May 31 22:25:42 CEST 2007


Author: alvaro
Date: Thu May 31 22:25:40 2007
New Revision: 113

Log:
Bugfix al definir la variable dict


Modified:
   trunk/frontend-web/skins.py
   trunk/frontend-web/url_.py
   trunk/frontend-web/url_hilo.py

Modified: trunk/frontend-web/skins.py
==============================================================================
--- trunk/frontend-web/skins.py	(original)
+++ trunk/frontend-web/skins.py	Thu May 31 22:25:40 2007
@@ -75,8 +75,8 @@
   def load_url(self,url):
     self._url="/%s" % url[0]
 
-  def load_dict(self,dict):
-    for key,val in dict.iteritems():
+  def load_dict(self,d):
+    for key,val in d.iteritems():
       self._dict[key]=val
 
   def set_text(self,text):

Modified: trunk/frontend-web/url_.py
==============================================================================
--- trunk/frontend-web/url_.py	(original)
+++ trunk/frontend-web/url_.py	Thu May 31 22:25:40 2007
@@ -43,7 +43,7 @@
   pagina = skins.Skin()
   pagina.load_url(path)
   import calendario
-  dict = {
+  d = {
       "page_title": "cpif - listado de hilos",
       "threads":[],
       "calendar": calendario.vista_mensual(conn,fecha_elegida,usuario)
@@ -61,7 +61,7 @@
     h=database.listado_hilos_personal(conn,usuario,ts,ts2)
     l=len(h)
     if l :
-      dict["threads"].append((ts2,[(
+      d["threads"].append((ts2,[(
         id, 
         title,
         hilos[id]["TS"], 
@@ -72,7 +72,7 @@
     ts=ts2
     fecha-=delta_dia
 
-  pagina.load_dict(dict)
+  pagina.load_dict(d)
   return(pagina.web())
 
 @monitor

Modified: trunk/frontend-web/url_hilo.py
==============================================================================
--- trunk/frontend-web/url_hilo.py	(original)
+++ trunk/frontend-web/url_hilo.py	Thu May 31 22:25:40 2007
@@ -28,7 +28,7 @@
   pagina = skins.Skin()
   pagina.load_url(path)
 
-  dict = {
+  d = {
       "page_title":"cpif - %s" % meta["titulo"],
       "thread_title": meta["titulo"],
       "thread_author": meta["creador"],
@@ -39,13 +39,13 @@
 
   if first_post!=1 :
     if first_post-1<=thread_len :
-      dict["thread_prev"] =  "%d" % hilo_num # FIXME especificar aqui el enlace /hilo/42?
+      d["thread_prev"] =  "%d" % hilo_num # FIXME especificar aqui el enlace /hilo/42?
     else :
-      dict["thread_prev"] =  "%d/%d" % (hilo_num,first_post-thread_len)
+      d["thread_prev"] =  "%d/%d" % (hilo_num,first_post-thread_len)
   if not finished :
-    dict["thread_next"] = "%d/%d" % (hilo_num,first_post+thread_len)
+    d["thread_next"] = "%d/%d" % (hilo_num,first_post+thread_len)
 
-  pagina.load_dict(dict)
+  pagina.load_dict(d)
   return(pagina.web())
 
 



More information about the cpif mailing list