From d459963e14d6f871772d62a7b75471c19e686145 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Thu, 2 Sep 2004 20:19:48 +0000 Subject: [PATCH] allows comments inside zsql git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1494 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/ZopePatch.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/product/ERP5Type/ZopePatch.py b/product/ERP5Type/ZopePatch.py index 5a233f3c78..39ead3c405 100755 --- a/product/ERP5Type/ZopePatch.py +++ b/product/ERP5Type/ZopePatch.py @@ -201,8 +201,8 @@ class PatchedDA(DA): """ Read the string 'text' and updates self """ - start = text.rfind('<dtml-comment>') - end = text.rfind('</dtml-comment>') + start = text.find('<dtml-comment>') + end = text.find('</dtml-comment>') block = text[start+14:end] parameters = {} for line in block.split('\n'): @@ -225,7 +225,6 @@ class PatchedDA(DA): template = text[end+9:] while template.find('\n')==0: template=template.replace('\n','',1) - #print "arguments = %s" % str(arguments) self.manage_edit(title=title, connection_id=connection_id, arguments=arguments, template=template) self.manage_advanced(max_rows, max_cache, cache_time, class_name, class_file) @@ -829,4 +828,4 @@ class ERP5DCWorkflow(DCWorkflowDefinition): pass DCWorkflowDefinition.notifyBefore = ERP5DCWorkflow.notifyBefore -DCWorkflowDefinition.notifySuccess = ERP5DCWorkflow.notifySuccess \ No newline at end of file +DCWorkflowDefinition.notifySuccess = ERP5DCWorkflow.notifySuccess -- 2.30.9