[Erp5-report] r10458 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Oct 2 00:39:05 CEST 2006
Author: jerome
Date: Mon Oct 2 00:39:01 2006
New Revision: 10458
URL: http://svn.erp5.org?rev=10458&view=rev
Log:
wrap long lines in BusinessTemplate_getModifiedObject
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml?rev=10458&r1=10457&r2=10458&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml Mon Oct 2 00:39:01 2006
@@ -71,41 +71,61 @@
<value> <string>from Products.ERP5Type.Document import newTempBase\n
from Products.ERP5Type.Cache import CachingMethod\n
\n
-#Check dependencies, raise exception if a dependency is missing\n
-context.checkDependencies()\n
-\n
def getModifiedObjectList(context):\n
result = context.preinstall()\n
- context.log(\'getModifiedObjectList cache filled\',\'\')\n
- return result \n
-\n
-getModifiedObjectList = CachingMethod(getModifiedObjectList, id=\'BusinessTemplate_getModifiedObjectList\', cache_duration=36000)\n
+ return result\n
+\n
+getModifiedObjectList = CachingMethod(getModifiedObjectList,\n
+ id=\'BusinessTemplate_getModifiedObjectList\',\n
+ cache_duration=36000)\n
\n
modified_object_list = getModifiedObjectList(context)\n
keys = modified_object_list.keys()\n
keys.sort()\n
\n
-no_backup_list = [\'Action\', \'SiteProperty\', \'Module\', \'Document\', \'PropertySheet\', \'Extension\', \'Test\', \'Product\', \n
- \'Role\', \'CatalogResultKey\', \'CatalogRelatedKey\', \'CatalogResultTable\', \'MessageTranslation\', \'LocalRoles\', \n
- \'PortalTypeAllowedContentType\', \'PortalTypeHiddenContentType\', \'PortalTypePropertySheet\', \'PortalTypeBaseCategory\']\n
+no_backup_list = [\'Action\', \'SiteProperty\', \'Module\', \'Document\',\n
+ \'PropertySheet\', \'Extension\', \'Test\', \'Product\', \'Role\',\n
+ \'CatalogResultKey\', \'CatalogRelatedKey\',\n
+ \'CatalogResultTable\', \'MessageTranslation\', \'LocalRoles\',\n
+ \'PortalTypeAllowedContentType\',\n
+ \'PortalTypeHiddenContentType\', \'PortalTypePropertySheet\',\n
+ \'PortalTypeBaseCategory\']\n
\n
i = 0\n
object_list = []\n
-for object_id in keys: \n
+for object_id in keys:\n
object_state, object_class = modified_object_list[object_id]\n
line = newTempBase(context, \'tmp_install_%s\' %(str(i)))\n
if object_state == \'New\':\n
- line.edit(object_id=object_id, object_state=object_state, object_class=object_class, choice_item_list=[[\'Install\', \'install\'], [\'Do Nothing\', \'nothing\']])\n
+ line.edit(object_id=object_id, object_state=object_state,\n
+ object_class=object_class,\n
+ choice_item_list=[[\'Install\', \'install\'],\n
+ [\'Do Nothing\', \'nothing\']])\n
elif object_state == \'Modified\':\n
if object_class in no_backup_list:\n
- line.edit(object_id=object_id, object_state=object_state, object_class=object_class, choice_item_list=[[\'Upgrade\', \'install\'], [\'Keep Original\', \'nothing\']])\n
+ line.edit(object_id=object_id, object_state=object_state,\n
+ object_class=object_class,\n
+ choice_item_list=[[\'Upgrade\', \'install\'],\n
+ [\'Keep Original\', \'nothing\']])\n
else:\n
- line.edit(object_id=object_id, object_state=object_state, object_class=object_class, choice_item_list=[[\'Backup And Upgrade\', \'backup\'], [\'Upgrade\', \'install\'], [\'Keep Original\', \'nothing\']])\n
+ line.edit(object_id=object_id, object_state=object_state,\n
+ object_class=object_class,\n
+ choice_item_list=[[\'Backup And Upgrade\', \'backup\'],\n
+ [\'Upgrade\', \'install\'],\n
+ [\'Keep Original\', \'nothing\']])\n
elif object_state == \'Removed\':\n
if object_class in no_backup_list:\n
- line.edit(object_id=object_id, object_state=object_state, object_class=object_class, choice_item_list=[[\'Remove\', \'remove\'], [\'Keep Original\', \'nothing\']])\n
+ line.edit(object_id=object_id,\n
+ object_state=object_state,\n
+ object_class=object_class,\n
+ choice_item_list=[[\'Remove\', \'remove\'],\n
+ [\'Keep Original\', \'nothing\']])\n
else:\n
- line.edit(object_id=object_id, object_state=object_state, object_class=object_class, choice_item_list=[[\'Backup And Remove\', \'save_and_remove\'], [\'Remove\', \'remove\'], [\'Keep Original\', \'nothing\']])\n
+ line.edit(object_id=object_id, object_state=object_state,\n
+ object_class=object_class,\n
+ choice_item_list=[[\'Backup And Remove\', \'save_and_remove\'],\n
+ [\'Remove\', \'remove\'],\n
+ [\'Keep Original\', \'nothing\']])\n
line.setUid(\'new_%s\' % object_id)\n
object_list.append(line)\n
i += 1 \n
@@ -164,10 +184,10 @@
<string>newTempBase</string>
<string>Products.ERP5Type.Cache</string>
<string>CachingMethod</string>
+ <string>getModifiedObjectList</string>
+ <string>context</string>
+ <string>modified_object_list</string>
<string>_getattr_</string>
- <string>context</string>
- <string>getModifiedObjectList</string>
- <string>modified_object_list</string>
<string>keys</string>
<string>no_backup_list</string>
<string>i</string>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=10458&r1=10457&r2=10458&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Mon Oct 2 00:39:01 2006
@@ -1,1 +1,1 @@
-85
+86
More information about the Erp5-report
mailing list