/[ambar]/ambar/utils.py
ViewVC logotype

Diff of /ambar/utils.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2.6 by amoyav, Wed Apr 23 08:03:29 2003 UTC revision 2.7 by TuringTest, Tue Aug 19 22:46:26 2003 UTC
# Line 236  def escribir_excepcion(): Line 236  def escribir_excepcion():
236               ": " + \               ": " + \
237               str(sys.exc_info()[1]))               str(sys.exc_info()[1]))
238    
239    def trazar(mensaje_depuracion, nombre_modulo, nivel_depuracion=1):
240        """Escribe un mensaje de traza (si el servidor se activa en modo depuracion)
241        
242        Para activar el servidor en modo depuracion, usar
243        ./mine.py -d <nivel de depuracion>  -m {<nombre de modulo a trazar>}*
244        """
245        from mundo import Mundo
246        if nivel_depuracion <= Mundo.nivel_depuracion: # muestra solo trazas hasta el nivel de depuracion activo
247            if nombre_modulo in Mundo.modulos_depurados:
248                    escribir("Traza " + nombre_modulo + ": " + mensaje_depuracion)
249    
250    
251    
252  def izip(*args):  def izip(*args):
253      """Como la funcion estándar de python 'zip', pero devuelve      """Como la funcion estándar de python 'zip', pero devuelve

Legend:
Removed from v.2.6  
changed lines
  Added in v.2.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26