changeset 1772:47914f18089c

drawing applets don't send itemtype
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 04 Sep 2012 20:30:23 +0200
parents dbfad38a4cdc
children 7841aa4065a7
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Mon Sep 03 22:33:29 2012 +0200
+++ b/MoinMoin/apps/frontend/views.py	Tue Sep 04 20:30:23 2012 +0200
@@ -488,7 +488,8 @@
     On POST, saves the new page (unless there's an error in input).
     After successful POST, redirects to the page.
     """
-    itemtype = request.values.get('itemtype')
+    # XXX drawing applets don't send itemtype
+    itemtype = request.values.get('itemtype', u'default')
     contenttype = request.values.get('contenttype')
     try:
         item = Item.create(item_name, itemtype=itemtype, contenttype=contenttype)