xiaq avatar xiaq committed 94dda5c

Minor fixes to previous items cleanup changeset.

Comments (0)

Files changed (1)


         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)
     class ModifyForm(Draw.ModifyForm):
         def _load(self, item):
             super(AnyWikiDraw.ModifyForm, self)._load(item)
-            Draw.ModifyForm._load(self, item)
                 drawing_exists = 'drawing.svg' in item.list_members()
             except tarfile.TarError: # item doesn't exist yet
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.