Commit bb315026 authored by Christophe Dumez's avatar Christophe Dumez

- fixed typo in bt

- added subversion tool automatically


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6635 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f84b8889
...@@ -158,7 +158,7 @@ class BusinessTemplateArchive: ...@@ -158,7 +158,7 @@ class BusinessTemplateArchive:
class BusinessTemplateFolder(BusinessTemplateArchive): class BusinessTemplateFolder(BusinessTemplateArchive):
""" """
Class archiving businnes template into a folder tree Class archiving business template into a folder tree
""" """
def _initCreation(self, path): def _initCreation(self, path):
self.path = path self.path = path
...@@ -438,7 +438,7 @@ class ObjectTemplateItem(BaseTemplateItem): ...@@ -438,7 +438,7 @@ class ObjectTemplateItem(BaseTemplateItem):
obj = self.removeProperties(obj) obj = self.removeProperties(obj)
id_list = obj.objectIds() id_list = obj.objectIds()
if hasattr(aq_base(obj), 'groups'): if hasattr(aq_base(obj), 'groups'):
# we must keep groups because it's ereased when we delete subobjects # we must keep groups because it's erased when we delete subobjects
groups = deepcopy(obj.groups) groups = deepcopy(obj.groups)
if len(id_list) > 0: if len(id_list) > 0:
self.build_sub_objects(context, id_list, relative_url) self.build_sub_objects(context, id_list, relative_url)
......
...@@ -835,6 +835,10 @@ class ERP5Generator(PortalGenerator): ...@@ -835,6 +835,10 @@ class ERP5Generator(PortalGenerator):
if not p.hasObject('portal_orders'): if not p.hasObject('portal_orders'):
addTool('ERP5 Order Tool', None) addTool('ERP5 Order Tool', None)
addTool = p.manage_addProduct['ERP5Subversion'].manage_addTool
if not p.hasObject('portal_subversion'):
addTool('ERP5 Subversion Tool', None)
# Add ERP5Type Tools # Add ERP5Type Tools
addTool = p.manage_addProduct['ERP5Type'].manage_addTool addTool = p.manage_addProduct['ERP5Type'].manage_addTool
if not p.hasObject('portal_classes'): if not p.hasObject('portal_classes'):
......
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