Commit 65822615 authored by Kevin Deldycke's avatar Kevin Deldycke

Convert to 2-space indention

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7703 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3cdcdec9
......@@ -10,14 +10,13 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
""" Portal class
$Id$
"""
Portal class
"""
import Globals
from Globals import package_home
#from Products.ERP5 import content_classes
from AccessControl import ClassSecurityInfo
from Products.CMFDefault.Portal import CMFSite, PortalGenerator
from Products.CMFCore.utils import getToolByName, _getAuthenticatedUser
......@@ -57,9 +56,9 @@ def manage_addERP5Site(self, id, title='ERP5', description='',
cmf_activity_sql_connection_string='test test',
light_install=0,reindex=1,
RESPONSE=None):
'''
"""
Adds a portal instance.
'''
"""
#LOG('manage_addERP5Site, create_activities',0,create_activities)
#LOG('manage_addERP5Site, create_activities==1',0,create_activities==1)
gen = ERP5Generator()
......@@ -784,7 +783,8 @@ class ERP5Generator(PortalGenerator):
return p
def setupLastTools(self, p, **kw):
"""Set up finals tools
"""
Set up finals tools
We want to set the activity tool only at the end to
make sure that we do not put un the queue the full reindexation
"""
......@@ -804,7 +804,8 @@ class ERP5Generator(PortalGenerator):
portal_activities.manageClearActivities(keep=keep)
def setupTemplateTool(self, p, **kw):
"""Setup the Template Tool. Security must be set strictly.
"""
Setup the Template Tool. Security must be set strictly.
"""
addTool = p.manage_addProduct['ERP5'].manage_addTool
addTool('ERP5 Template Tool', None)
......@@ -814,7 +815,9 @@ class ERP5Generator(PortalGenerator):
context.manage_permission(permission, ['Manager'], 0)
def setupTools(self, p,**kw):
"""Set up initial tools"""
"""
Set up initial tools
"""
if not 'portal_actions' in p.objectIds():
PortalGenerator.setupTools(self, p)
......@@ -1145,6 +1148,3 @@ class ERP5Generator(PortalGenerator):
id = template_tool.generateNewId()
template_tool.download(template, id=id)
template_tool[id].install(**kw)
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