[cpif] r304 - trunk/frontend-web

svn at argo.es svn at argo.es
Mon Jul 30 17:17:06 CEST 2007


Author: jcea
Date: Mon Jul 30 17:17:05 2007
New Revision: 304

Log:


Added:
   trunk/frontend-web/url_toggle_monitor_AJAX.py
      - copied, changed from r302, /trunk/frontend-web/url_get_msg_source_AJAX.py

Copied: trunk/frontend-web/url_toggle_monitor_AJAX.py (from r302, /trunk/frontend-web/url_get_msg_source_AJAX.py)
==============================================================================
--- /trunk/frontend-web/url_get_msg_source_AJAX.py	(original)
+++ trunk/frontend-web/url_toggle_monitor_AJAX.py	Mon Jul 30 17:17:05 2007
@@ -6,20 +6,15 @@
 def gestiona_url(conn,handler,path,usuario) :
   if len(path)!=2 : return None
   try :
-    num_msg=int(path[1])
+    num_thread=int(path[1])
   except :
     return None
 
-  import database
-  autor,source=database.get_message_source(conn,num_msg)
-  if not source : return None # Not found
-
   from xml.sax.saxutils import escape
   return (200,{"Content-Type":"text/xml; charset=utf-8"},
 """<?xml version="1.0" ?>
 <root>
-<autor>%s</autor>
-<cuerpo>%s</cuerpo>
+<msg>%s</msg>
 </root>
-""" %(escape(autor),escape(source)))
+""" %(escape("Nothing to see yet. Move along...)))
 



More information about the cpif mailing list