[cpif] r213 - trunk/frontend-web

svn at argo.es svn at argo.es
Sat Jun 30 23:30:39 CEST 2007


Author: jcea
Date: Sat Jun 30 23:30:38 2007
New Revision: 213

Log:
Simplificamos un poco

Modified:
   trunk/frontend-web/parsers.py

Modified: trunk/frontend-web/parsers.py
==============================================================================
--- trunk/frontend-web/parsers.py	(original)
+++ trunk/frontend-web/parsers.py	Sat Jun 30 23:30:38 2007
@@ -22,15 +22,14 @@
     if allow:
       aux = []
       for token in tokens:
-        if token[0]:
-          # Me espero el codigo de retorno y la lista de tuplas
-          retval, token = parser.parse(token[1])
-          if retval:
+        token_list=[token]
+        must_reparse,fragment=token
+        if must_reparse :
+          retval, token_list = parser.parse(fragments)
+          if retval :
             return retval, None
-          aux += token
-        else:
-          aux.append(token)
-      tokens = aux[:]
+        aux+=token
+      tokens = aux
   
   return False, "".join([text for dummy, text in tokens])
 



More information about the cpif mailing list