do not create empty pagedir (with empty edit-log)
authorThomas Waldmann <tw AT waldmann-edv DOT de>
Sat, 06 Apr 2013 00:21:51 +0200
changeset 59806489ec33874d
parent 5979 810aee12a186
child 5981 3460b27e7f3e
do not create empty pagedir (with empty edit-log)

- if a user with no write permissions tries creating a new page
- if a user with write permissions cancels creating a new page
MoinMoin/theme/__init__.py
     1.1 --- a/MoinMoin/theme/__init__.py	Sun Mar 24 14:58:56 2013 +0100
     1.2 +++ b/MoinMoin/theme/__init__.py	Sat Apr 06 00:21:51 2013 +0200
     1.3 @@ -1784,7 +1784,7 @@
     1.4  
     1.5          # In standard mode, emit theme.header
     1.6          else:
     1.7 -            exists = pagename and page.exists(includeDeleted=True)
     1.8 +            exists = pagename and page.exists(includeDeleted=False)
     1.9              # prepare dict for theme code:
    1.10              d = {
    1.11                  'theme': self.name,