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