comparison MoinMoin/action/DeletePage.py @ 4237:162002d5b148

Replaced some references to request.form with MultiDict-compatible semantics
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sun, 20 Jul 2008 18:49:20 +0200
parents 40acd13fb3d6
children bc5d4e7072ea
comparison
equal deleted inserted replaced
4236:97bffc03c15f 4237:162002d5b148
52 self.page = PageEditor(self.request, self.pagename, do_editor_backup=0) 52 self.page = PageEditor(self.request, self.pagename, do_editor_backup=0)
53 success, msgs = self.page.deletePage(comment) 53 success, msgs = self.page.deletePage(comment)
54 54
55 delete_subpages = 0 55 delete_subpages = 0
56 try: 56 try:
57 delete_subpages = int(form['delete_subpages'][0]) 57 delete_subpages = int(form['delete_subpages'])
58 except: 58 except:
59 pass 59 pass
60 60
61 if delete_subpages and self.subpages: 61 if delete_subpages and self.subpages:
62 for name in self.subpages: 62 for name in self.subpages: