Commit 8c518e50 authored by Jérome Perrin's avatar Jérome Perrin

indentation with tabs


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9172 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 00c13ace
...@@ -1288,10 +1288,10 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem): ...@@ -1288,10 +1288,10 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
action = update_dict[path] action = update_dict[path]
if action == 'nothing': if action == 'nothing':
continue continue
path_splitted = path.split('/', 1) path_splitted = path.split('/', 1)
# XXX: to avoid crashing when no portal_type # XXX: to avoid crashing when no portal_type
if len(path_splitted) < 2: if len(path_splitted) < 2:
continue continue
portal_type = path_splitted[1] portal_type = path_splitted[1]
if chain_dict.has_key('chain_%s' % portal_type): if chain_dict.has_key('chain_%s' % portal_type):
old_chain_dict = chain_dict['chain_%s' % portal_type] old_chain_dict = chain_dict['chain_%s' % portal_type]
...@@ -3727,14 +3727,14 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -3727,14 +3727,14 @@ Business Template is a set of definitions, such as skins, portal types and categ
'business_template_installation_workflow'] = None 'business_template_installation_workflow'] = None
def updateRevisionNumber(self): def updateRevisionNumber(self):
""" incremente bt revision number """Increment bt revision number.
""" """
revision_number = self.getRevision() revision_number = self.getRevision()
if revision_number is None or revision_number.strip() == '': if revision_number is None or revision_number.strip() == '':
revision_number = 1 revision_number = 1
else: else:
revision_number = int(revision_number)+1 revision_number = int(revision_number)+1
self.setRevision(revision_number) self.setRevision(revision_number)
security.declareProtected(Permissions.ManagePortal, 'build') security.declareProtected(Permissions.ManagePortal, 'build')
def build(self, no_action=0): def build(self, no_action=0):
......
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