Commit 89e9360d authored by Rafael Monnerat's avatar Rafael Monnerat

Improve code style only.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32465 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e5f7afd0
......@@ -58,21 +58,27 @@
from Products.ERP5Subversion.SubversionClient import SubversionSSLTrustError\n
from Products.ERP5Type.Document import newTempBase\n
\n
portal = context.getPortalObject()\n
portal_subversion = portal.portal_subeversion\n
\n
try:\n
log_list = context.getPortalObject()["portal_subversion"].log(added, context)\n
log_list = portal_subversion.log(added, context)\n
except SubversionSSLTrustError, error:\n
context.REQUEST.set(\'portal_status_message\', \'SSL Certificate was not recognized\')\n
return context.asContext(trust_dict = error.getTrustDict(), caller=\'log\', added=added).BusinessTemplate_viewSvnSSLTrust()\n
context.REQUEST.set(\'portal_status_message\', \n
\'SSL Certificate was not recognized\')\n
return context.asContext(trust_dict = error.getTrustDict(), \n
caller=\'log\', \n
added=added).BusinessTemplate_viewSvnSSLTrust()\n
\n
if not log_list:\n
return []\n
\n
object_list = []\n
for my_dict in log_list:\n
my_dict[\'message\']=\'<br/>\'.join(my_dict[\'message\'].split(\'\\n\'))\n
my_dict[\'uid\']=my_dict[\'revision\']\n
temp_object = newTempBase(folder=context.getPortalObject(), id=\'1234\')\n
temp_object.edit(**my_dict)\n
my_dict[\'message\'] = \'<br/>\'.join(my_dict[\'message\'].split(\'\\n\'))\n
my_dict[\'uid\'] = my_dict[\'revision\']\n
temp_object = newTempBase(folder=context.getPortalObject(), \n
id=\'1234\', **my_dict)\n
object_list.append(temp_object)\n
\n
context.REQUEST.set(\'object_list\', object_list)\n
......@@ -122,16 +128,18 @@ return context.BusinessTemplate_viewSvnLog()\n
<string>Products.ERP5Type.Document</string>
<string>newTempBase</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>context</string>
<string>portal</string>
<string>portal_subversion</string>
<string>log_list</string>
<string>error</string>
<string>object_list</string>
<string>_getiter_</string>
<string>my_dict</string>
<string>_getitem_</string>
<string>_write_</string>
<string>temp_object</string>
<string>_apply_</string>
<string>temp_object</string>
</tuple>
</value>
</item>
......
555
\ No newline at end of file
556
\ No newline at end of file
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