[cpif] r127 - trunk/frontend-web

svn at argo.es svn at argo.es
Wed Jun 6 14:29:51 CEST 2007


Author: alvaro
Date: Wed Jun  6 14:29:49 2007
New Revision: 127

Log:
Bugfix.


Modified:
   trunk/frontend-web/url_nuevo_post_POST.py

Modified: trunk/frontend-web/url_nuevo_post_POST.py
==============================================================================
--- trunk/frontend-web/url_nuevo_post_POST.py	(original)
+++ trunk/frontend-web/url_nuevo_post_POST.py	Wed Jun  6 14:29:49 2007
@@ -10,16 +10,15 @@
     metatag=int(path[1])
   except :
     return None
+  import database
   if metatag not in conn.get_root()["usuarios"]["usuarios"][database.normaliza_nick(usuario)]["punto de lectura no leidos"] :
     return None
 
-  import database
   import cgi
   ctype,pdict=cgi.parse_header(handler.headers.getheader('content-type'))
   cuerpo=cgi.FieldStorage(fp=handler.rfile,headers=handler.headers,environ={'REQUEST_METHOD':'POST'},keep_blank_values=1)
   texto=cgi.escape(cuerpo.getfirst("texto"))
   texto=texto.replace("\r","").replace("\n","<br>\r\n")
-  import database
   database.mensaje_add(conn,texto,usuario,hilo=hilo)
   return (302,"/indice/%d" %metatag, "")
 



More information about the cpif mailing list