changeset 1408:94dda5c633d2

Minor fixes to previous items cleanup changeset.
author Cheer Xiao <xiaqqaix@gmail.com>
date Fri, 29 Jun 2012 11:56:28 +0800
parents 8bbdf554e812
children ac1059572d80 100197cb69ab
files MoinMoin/items/__init__.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Thu Jun 28 00:36:14 2012 +0800
+++ b/MoinMoin/items/__init__.py	Fri Jun 29 11:56:28 2012 +0800
@@ -1117,7 +1117,10 @@
 
         def _load(self, item):
             super(Text.ModifyForm, self)._load(item)
-            self['data_text'] = item.data_storage_to_internal(item.data)
+            data = item.data
+            data = item.data_storage_to_internal(data)
+            data = item.data_internal_to_form(data)
+            self['data_text'] = data
 
         def _dump(self, item):
             meta, data, contenttype_guessed, comment = super(Text.ModifyForm, self)._dump(item)
@@ -1383,7 +1386,6 @@
     class ModifyForm(Draw.ModifyForm):
         def _load(self, item):
             super(AnyWikiDraw.ModifyForm, self)._load(item)
-            Draw.ModifyForm._load(self, item)
             try:
                 drawing_exists = 'drawing.svg' in item.list_members()
             except tarfile.TarError: # item doesn't exist yet