瀏覽代碼

Added missing interface for preview generation to page_wrapped

master
Dirk Alders 2 月之前
父節點
當前提交
42b03d821e
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      pages/page.py

+ 5
- 0
pages/page.py 查看文件

@@ -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…
取消
儲存