[cpif] r120 - trunk/frontend-web

svn at argo.es svn at argo.es
Wed Jun 6 10:36:08 CEST 2007


Author: alvaro
Date: Wed Jun  6 10:36:06 2007
New Revision: 120

Log:
Bugfix


Modified:
   trunk/frontend-web/url_todo_leido.py

Modified: trunk/frontend-web/url_todo_leido.py
==============================================================================
--- trunk/frontend-web/url_todo_leido.py	(original)
+++ trunk/frontend-web/url_todo_leido.py	Wed Jun  6 10:36:06 2007
@@ -7,10 +7,10 @@
   import database
   if len(path)!=2 : return None
   try :
-    metatag=int(path[1])
-    assert metatag in conn.get_root()["usuarios"]["usuarios"][usuario]["punto de lectura no leidos"]
+    metatag=int(path[-1])
+    assert metatag in conn.get_root()["usuarios"]["usuarios"][database.normaliza_nick(usuario)]["punto de lectura no leidos"]
   except :
     return None
-  database.marca_todo_leido(conn,usuario,metatag)
+  database.marca_todo_leido(conn,database.normaliza_nick(usuario),metatag)
   return (302,"/indice/%d" % int(path[-1]),"")
 



More information about the cpif mailing list