[Erp5-report] r44904 rafael - in /erp5/trunk/bt5/erp5_configurator_maxma_demo: SkinTemplate...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Mar 31 15:28:15 CEST 2011
Author: rafael
Date: Thu Mar 31 15:28:15 2011
New Revision: 44904
URL: http://svn.erp5.org?rev=44904&view=rev
Log:
Fix business template name and include business process.
Modified:
erp5/trunk/bt5/erp5_configurator_maxma_demo/SkinTemplateItem/portal_skins/erp5_configurator_maxma_demo/BusinessConfiguration_afterMaxmaDemoConfiguration.xml
erp5/trunk/bt5/erp5_configurator_maxma_demo/bt/revision
Modified: erp5/trunk/bt5/erp5_configurator_maxma_demo/SkinTemplateItem/portal_skins/erp5_configurator_maxma_demo/BusinessConfiguration_afterMaxmaDemoConfiguration.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_configurator_maxma_demo/SkinTemplateItem/portal_skins/erp5_configurator_maxma_demo/BusinessConfiguration_afterMaxmaDemoConfiguration.xml?rev=44904&r1=44903&r2=44904&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_configurator_maxma_demo/SkinTemplateItem/portal_skins/erp5_configurator_maxma_demo/BusinessConfiguration_afterMaxmaDemoConfiguration.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_configurator_maxma_demo/SkinTemplateItem/portal_skins/erp5_configurator_maxma_demo/BusinessConfiguration_afterMaxmaDemoConfiguration.xml [utf8] Thu Mar 31 15:28:15 2011
@@ -56,7 +56,7 @@ from Products.ERP5Type.Log import log\n
\n
portal = context.getPortalObject()\n
portal_preferences = portal.portal_preferences\n
-business_template = context.portal_templates.getInstalledBusinessTemplate("erp5_maxma_testcase")\n
+business_template = portal_templates.getInstalledBusinessTemplate("erp5_demo_maxma_sample")\n
N_ = context.Base_translateString\n
isTransitionPossible = portal.portal_workflow.isTransitionPossible\n
\n
@@ -81,20 +81,21 @@ if business_template is not None:\n
for path in business_template.getTemplatePathList():\n
obj = context.getPortalObject().restrictedTraverse(path, None)\n
if obj is not None and hasattr(obj, \'getPortalType\'):\n
- if obj.getPortalType() in (\'Person\', \n
- \'Organisation\', \n
- \'Account\', \n
+ if obj.getPortalType() in (\'Person\',\n
+ \'Organisation\',\n
+ \'Business Process\',\n
+ \'Account\',\n
\'Service\', \'Product\',\n
- \'Sale Trade Condition\', \n
- \'Purchase Trade Condition\',\n
- \'Order Root Simulation Rule\', \n
- \'Delivery Root Simulation Rule\',\n
- \'Trade Model Simulation Rule\', \n
+ \'Sale Trade Condition\',\n
+ \'Purchase Trade Condition\'\n
+ \'Order Root Simulation Rule\',\n
+ \'Delivery Root Simulation Rule\'\n
+ \'Trade Model Simulation Rule\',\n
\'Accounting Transaction Root Simulation Rule\',\n
- \'Invoice Transaction Simulation Rule\', \n
+ \'Invoice Transaction Simulation Rule\',\n
\'Payment Simulation Rule\',\n
- \'Invoice Root Simulation Rule\', \n
- \'Delivery Simulation Rule\', \n
+ \'Invoice Root Simulation Rule\',\n
+ \'Delivery Simulation Rule\',\n
\'Invoice Simulation Rule\'):\n
\n
for period in obj.contentValues(filter={\'portal_type\':\'Accounting Period\'}):\n
@@ -105,10 +106,10 @@ if business_template is not None:\n
assignment.updateLocalRolesOnSecurityGroups()\n
print "\\tOpen (assignment): ", assignment.getRelativeUrl()\n
\n
- for gadget in context.portal_gadgets.objectValues():\n
- if gadget.getValidationState() == \'invisible\':\n
- gadget.visible()\n
- gadget.public()\n
+for gadget in context.portal_gadgets.objectValues():\n
+ if gadget.getValidationState() == \'invisible\':\n
+ gadget.visible()\n
+ gadget.public()\n
\n
# update security settings for default preference # XXX why ???\n
default_configurator_preference = getattr(portal_preferences,\n
Modified: erp5/trunk/bt5/erp5_configurator_maxma_demo/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_configurator_maxma_demo/bt/revision?rev=44904&r1=44903&r2=44904&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_configurator_maxma_demo/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_configurator_maxma_demo/bt/revision [utf8] Thu Mar 31 15:28:15 2011
@@ -1 +1 @@
-13
\ No newline at end of file
+14
\ No newline at end of file
More information about the Erp5-report
mailing list