Commit 1c39b149 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix typos in BusinessTemplate comments.

parent 36ed2ca4
...@@ -3764,9 +3764,9 @@ from Products.ERP5Type.Core.DocumentComponent import DocumentComponent as \ ...@@ -3764,9 +3764,9 @@ from Products.ERP5Type.Core.DocumentComponent import DocumentComponent as \
class DocumentTemplateItem(FilesystemToZodbTemplateItem): class DocumentTemplateItem(FilesystemToZodbTemplateItem):
""" """
Extensions are now stored in ZODB rather than on the filesystem. However, Documents are now stored in ZODB rather than on the filesystem. However,
some Business Templates may still have filesystem Extensions which need to some Business Templates may still have filesystem Documents which need to be
be migrated to the ZODB. migrated to the ZODB.
The migration is performed in two steps: The migration is performed in two steps:
...@@ -3803,7 +3803,7 @@ class DocumentTemplateItem(FilesystemToZodbTemplateItem): ...@@ -3803,7 +3803,7 @@ class DocumentTemplateItem(FilesystemToZodbTemplateItem):
def export(self, context, bta, **kw): def export(self, context, bta, **kw):
path = self.__class__.__name__ + '/' path = self.__class__.__name__ + '/'
for key, obj in self._objects.iteritems(): for key, obj in self._objects.iteritems():
# Back compatibility with filesystem Extensions # Back compatibility with filesystem Documents
if isinstance(obj, str): if isinstance(obj, str):
if not key.startswith(path): if not key.startswith(path):
key = path + key key = path + key
......
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