Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/06/2011, 07:10
Avatar de razpeitia
razpeitia
Moderador
 
Fecha de Ingreso: marzo-2005
Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 19 años, 1 mes
Puntos: 1360
Respuesta: Novaton insertar imagen .py

Código Python:
Ver original
  1. def getNavigationLink(self, prevPage, nextPage):
  2.         """
  3.        return the next link url of this page
  4.        """
  5.         html = "<div class=\"noprt\" align=\"right\">"
  6.  
  7.            
  8.         if nextPage:
  9.             if prevPage:
  10.                 html += " | "
  11.             html += "<a class=\"b_siguiente\" href=\""+quote(nextPage.name)+".html\">"
  12.             html += " %s &raquo;</a>" % _('Next')
  13.             html += '<img src="flecha_izq.png" alt="Siguiente" />'
  14.            
  15.         html += "</div>\n"
  16.         return html

Lo mejor es que hubieran usado algún sistemas de templates para separar el código de python con el html.