Explorar el Código

Added missing interface for preview generation to page_wrapped

master
Dirk Alders hace 2 meses
padre
commit
42b03d821e
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      pages/page.py

+ 5
- 0
pages/page.py Ver fichero

@@ -409,6 +409,11 @@ class page_wrapped(object):
409 409
         rv = page.render_to_html()
410 410
         return rv
411 411
 
412
+    def render_text(self, request, txt):
413
+        page = self.__page_choose__()
414
+        rv = page.render_text(request, txt)
415
+        return rv
416
+
412 417
     @property
413 418
     def title(self):
414 419
         page = self.__page_choose__()

Loading…
Cancelar
Guardar