[cpif] r354 - in trunk: backend frontend-web

svn at argo.es svn at argo.es
Mon Sep 10 20:35:29 CEST 2007


Author: jcea
Date: Mon Sep 10 20:35:27 2007
New Revision: 354

Log:
Mas soporte de hilos 'sticky'

Modified:
   trunk/backend/database.py
   trunk/frontend-web/url_indice.py

Modified: trunk/backend/database.py
==============================================================================
--- trunk/backend/database.py	(original)
+++ trunk/backend/database.py	Mon Sep 10 20:35:27 2007
@@ -498,7 +498,7 @@
   root=conn.get_root()
   hilos=root["hilos"]["hilos"]
   usuario=root["usuarios"]["usuarios"][normaliza_nick(usuario)]
-  hilo2last_msg=root["seguimiento_no_leidos"]
+  hilo2last_msg=root["seguimiento_no_leidos"]["hilo2last_msg"]
 
   no_leidos=usuario["punto de lectura no leidos"][metatag]
   monitor_hilos=usuario["monitor hilos"]
@@ -511,7 +511,7 @@
   r.sort()
   r.reverse()
   for dummy,hilo_num in r :
-    hilo=hilos["hilo_num"]
+    hilo=hilos[hilo_num]
 # If we modified the data returned, we must adjust also the peer "plain threads" function.
     resultado.append((hilo_num,hilo["titulo"],hilo_num in no_leidos,hilo_num in monitor_hilos,"read only" in hilo))
 

Modified: trunk/frontend-web/url_indice.py
==============================================================================
--- trunk/frontend-web/url_indice.py	(original)
+++ trunk/frontend-web/url_indice.py	Mon Sep 10 20:35:27 2007
@@ -74,7 +74,7 @@
   if first_page:
     h=database.listado_stickies_personal(conn,usuario,metatag=metatag)
     if len(h) : # if we touch this data schema, we must update the "normal thread" one too.
-      d["stickies"].append((ts2,[(
+      d["stickies"].append((None,[(
         id,
         title,
         hilos[id]["TS"],



More information about the cpif mailing list