changeset 3620:25431c5a76f9

fix editor preview not working for new pages
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 19 May 2008 09:46:59 +0200
parents d3204eedc7de
children c0d6bc8f7c29
files MoinMoin/Page.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Sun May 18 21:05:08 2008 +0200
+++ b/MoinMoin/Page.py	Mon May 19 09:46:59 2008 +0200
@@ -1173,7 +1173,7 @@
         special = None
 
         if not send_special:
-            if not page_exists:
+            if not page_exists and not body:
                 special = 'missing'
             elif not request.user.may.read(self.page_name):
                 special = 'denied'