[Erp5-report] r42552 luke - in /erp5/trunk/bt5/vifib_base: SkinTemplateItem/portal_skins/vi...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jan 21 10:48:35 CET 2011


Author: luke
Date: Fri Jan 21 10:48:35 2011
New Revision: 42552

URL: http://svn.erp5.org?rev=42552&view=rev
Log:
- get and set new software instance's coordinates (like SSL key, reference, etc) during creation of new software instance

Added:
    erp5/trunk/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_base/Base_getNewSoftwareInstanceCoordinate.xml
Modified:
    erp5/trunk/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/scripts/SoftwareInstance_requestSoftwareInstance.xml
    erp5/trunk/bt5/vifib_base/bt/revision

Added: erp5/trunk/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_base/Base_getNewSoftwareInstanceCoordinate.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_base/Base_getNewSoftwareInstanceCoordinate.xml?rev=42552&view=auto
==============================================================================
--- erp5/trunk/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_base/Base_getNewSoftwareInstanceCoordinate.xml (added)
+++ erp5/trunk/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_base/Base_getNewSoftwareInstanceCoordinate.xml [utf8] Fri Jan 21 10:48:35 2011
@@ -0,0 +1,134 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>Script_magic</string> </key>
+            <value> <int>3</int> </value>
+        </item>
+        <item>
+            <key> <string>_bind_names</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>_asgns</string> </key>
+                        <value>
+                          <dictionary>
+                            <item>
+                                <key> <string>name_container</string> </key>
+                                <value> <string>container</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_context</string> </key>
+                                <value> <string>context</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_m_self</string> </key>
+                                <value> <string>script</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_subpath</string> </key>
+                                <value> <string>traverse_subpath</string> </value>
+                            </item>
+                          </dictionary>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>_body</string> </key>
+            <value> <string>portal = context.getPortalObject()\n
+reference = "SOFTINST-%s" % portal.portal_ids.generateNewId(\n
+    id_group=\'slap_software_instance_reference\',\n
+    id_generator=\'uid\')\n
+certificate_dict = portal.portal_certificate_authority.getNewCertificate(reference)\n
+return dict(\n
+  reference=reference,\n
+  destination_reference=certificate_dict[\'id\'],\n
+  ssl_key=certificate_dict[\'key\'],\n
+  ssl_certificate=certificate_dict[\'certificate\'],\n
+)\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>errors</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_code</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>co_argcount</string> </key>
+                        <value> <int>0</int> </value>
+                    </item>
+                    <item>
+                        <key> <string>co_varnames</string> </key>
+                        <value>
+                          <tuple>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>portal</string>
+                            <string>reference</string>
+                            <string>certificate_dict</string>
+                            <string>dict</string>
+                            <string>_getitem_</string>
+                          </tuple>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_defaults</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>Base_getNewSoftwareInstanceCoordinate</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/scripts/SoftwareInstance_requestSoftwareInstance.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/scripts/SoftwareInstance_requestSoftwareInstance.xml?rev=42552&r1=42551&r2=42552&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/scripts/SoftwareInstance_requestSoftwareInstance.xml [utf8] (original)
+++ erp5/trunk/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/scripts/SoftwareInstance_requestSoftwareInstance.xml [utf8] Fri Jan 21 10:48:35 2011
@@ -97,6 +97,7 @@ if (request_software_instance is None):\
       source_reference=requested_partition_reference,\n
       text_content=instance_xml,\n
       activate_kw={\'tag\': tag},\n
+      **portal.Base_getNewSoftwareInstanceCoordinate()\n
     )\n
     sale_packing_list_line = context.SoftwareInstance_getInstanceSetupPackingListLine(state_change)\n
     hosting_subscription_uid = sale_packing_list_line.getAggregateValue(portal_type=\'Hosting Subscription\').getUid()\n
@@ -193,6 +194,7 @@ software_instance.edit(\n
                             <string>request_software_instance</string>
                             <string>NotImplementedError</string>
                             <string>module</string>
+                            <string>_apply_</string>
                             <string>context</string>
                             <string>sale_packing_list_line</string>
                             <string>hosting_subscription_uid</string>

Modified: erp5/trunk/bt5/vifib_base/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/vifib_base/bt/revision?rev=42552&r1=42551&r2=42552&view=diff
==============================================================================
--- erp5/trunk/bt5/vifib_base/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/vifib_base/bt/revision [utf8] Fri Jan 21 10:48:35 2011
@@ -1 +1 @@
-183
\ No newline at end of file
+184
\ No newline at end of file



More information about the Erp5-report mailing list