Commit 4328154a authored by Jean-Paul Smets's avatar Jean-Paul Smets

Removed some class properties which should not have been there.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14387 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 98208adb
......@@ -418,9 +418,6 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
'version', 'short_title',
'subject', 'source_reference', 'source_project_title',)
data = '' # some day this will be in property sheets
base_format = 'base storage format'
### Content processing methods
security.declareProtected(Permissions.View, 'index_html')
def index_html(self, REQUEST, RESPONSE, format=None, **kw):
......@@ -1131,7 +1128,7 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
msg = self._convertToBaseFormat() # Call implemetation method
self.clearConversionCache() # Conversion cache is now invalid
if msg is None:
msg = 'Converted to %s.' % self.base_format
msg = 'Converted to %s.' % self.getBaseContentType()
self.convertFile(comment=msg) # Invoke workflow method
except NotImplementedError:# we don't do any workflow action if nothing has been done
msg = ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment