[Erp5-report] r42988 lucas - in /erp5/trunk/bt5/tiolive_decouple_instance: ./ ExtensionTemp...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Feb 3 15:29:14 CET 2011


Author: lucas
Date: Thu Feb  3 15:29:13 2011
New Revision: 42988

URL: http://svn.erp5.org?rev=42988&view=rev
Log:
Added new bt5. After installing this bt5, the user management of your instance will be decoupled.

Added:
    erp5/trunk/bt5/tiolive_decouple_instance/
    erp5/trunk/bt5/tiolive_decouple_instance/ExtensionTemplateItem/
    erp5/trunk/bt5/tiolive_decouple_instance/ExtensionTemplateItem/TioLiveDecoupleInstance.py
    erp5/trunk/bt5/tiolive_decouple_instance/PathTemplateItem/
    erp5/trunk/bt5/tiolive_decouple_instance/PathTemplateItem/portal_alarms/
    erp5/trunk/bt5/tiolive_decouple_instance/PathTemplateItem/portal_alarms/tiolive_decouple_user_authentication.xml
    erp5/trunk/bt5/tiolive_decouple_instance/PortalTypeWorkflowChainTemplateItem/
    erp5/trunk/bt5/tiolive_decouple_instance/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
    erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/
    erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/
    erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/
    erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance.xml
    erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_decoupleInstance.xml
    erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_moveObsoleteSkinObjectList.xml
    erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_notifyDecoupleInstance.xml
    erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_removeAuthenticationPlugin.xml
    erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_senseDecoupleInstance.xml
    erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_updatePersonModulePasswordInformation.xml
    erp5/trunk/bt5/tiolive_decouple_instance/bt/
    erp5/trunk/bt5/tiolive_decouple_instance/bt/change_log
    erp5/trunk/bt5/tiolive_decouple_instance/bt/copyright_list
    erp5/trunk/bt5/tiolive_decouple_instance/bt/description
    erp5/trunk/bt5/tiolive_decouple_instance/bt/license
    erp5/trunk/bt5/tiolive_decouple_instance/bt/maintainer_list
    erp5/trunk/bt5/tiolive_decouple_instance/bt/revision
    erp5/trunk/bt5/tiolive_decouple_instance/bt/template_extension_id_list
    erp5/trunk/bt5/tiolive_decouple_instance/bt/template_format_version
    erp5/trunk/bt5/tiolive_decouple_instance/bt/template_path_list
    erp5/trunk/bt5/tiolive_decouple_instance/bt/template_portal_type_workflow_chain_list
    erp5/trunk/bt5/tiolive_decouple_instance/bt/template_skin_id_list
    erp5/trunk/bt5/tiolive_decouple_instance/bt/title

Added: erp5/trunk/bt5/tiolive_decouple_instance/ExtensionTemplateItem/TioLiveDecoupleInstance.py
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/ExtensionTemplateItem/TioLiveDecoupleInstance.py?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/ExtensionTemplateItem/TioLiveDecoupleInstance.py (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/ExtensionTemplateItem/TioLiveDecoupleInstance.py [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1,28 @@
+from zLOG import LOG, WARNING
+
+def Alarm_updatePersonModulePasswordInformation(self, **kw):
+  """
+    Decoupling a TioLive Instance, we need to make sure that all the
+    users must have the password updated from TioLive Master.
+  """
+  portal = self.getPortalObject()
+  person_list = portal.person_module.searchFolder(portal_type="Person",
+                                                  reference="!= Null")
+  person_dict = {}
+  for person in person_list:
+    person_dict[person.getReference()] = person.getObject()
+  
+  kw = dict(reference_list=person_dict.keys())
+  result = eval(portal.portal_wizard.callRemoteProxyMethod(
+                       'WitchTool_getUserPasswordInformationDict',
+                       use_cache=0,
+                       ignore_exceptions=0,
+                       **kw))
+  if result is None:
+    return False
+
+  for reference, password in result.iteritems():
+    person_dict[reference].password = password
+
+  return result.keys()
+

Added: erp5/trunk/bt5/tiolive_decouple_instance/PathTemplateItem/portal_alarms/tiolive_decouple_user_authentication.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/PathTemplateItem/portal_alarms/tiolive_decouple_user_authentication.xml?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/PathTemplateItem/portal_alarms/tiolive_decouple_user_authentication.xml (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/PathTemplateItem/portal_alarms/tiolive_decouple_user_authentication.xml [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1,101 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="Alarm" module="Products.ERP5Type.Document.Alarm"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>active_sense_method_id</string> </key>
+            <value> <string>Alarm_senseDecoupleInstance</string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string>This alarm is used to decouple the user authentication of such TioLive Instance from TioLive Master.</string> </value>
+        </item>
+        <item>
+            <key> <string>enabled</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>tiolive_decouple_user_authentication</string> </value>
+        </item>
+        <item>
+            <key> <string>periodicity_hour</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>periodicity_minute</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>periodicity_minute_frequency</string> </key>
+            <value> <int>10</int> </value>
+        </item>
+        <item>
+            <key> <string>periodicity_month</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>periodicity_month_day</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>periodicity_start_date</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="DateTime" module="DateTime.DateTime"/>
+                </klass>
+                <tuple>
+                  <none/>
+                </tuple>
+                <state>
+                  <tuple>
+                    <float>1293843660.0</float>
+                    <string>GMT</string>
+                  </tuple>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>periodicity_week</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Alarm</string> </value>
+        </item>
+        <item>
+            <key> <string>sense_method_id</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>solve_method_id</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>TioLive Decouple User Authentication</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/tiolive_decouple_instance/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1,10 @@
+<workflow_chain>
+ <chain>
+  <type>Assignment</type>
+  <workflow>-express_person_interaction_workflow</workflow>
+ </chain>
+ <chain>
+  <type>Person</type>
+  <workflow>-express_person_interaction_workflow</workflow>
+ </chain>
+</workflow_chain>
\ No newline at end of file

Added: erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance.xml?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance.xml (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance.xml [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="Folder" module="OFS.Folder"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_objects</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>tiolive_decouple_instance</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_decoupleInstance.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_decoupleInstance.xml?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_decoupleInstance.xml (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_decoupleInstance.xml [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1,150 @@
+<?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>"""\n
+  Call the scripts to decouple the TioLive Instance.\n
+"""\n
+from Products.ERP5Type.Log import log\n
+log("Starting to decouple the TioLive Instance!")\n
+\n
+# Update person module.\n
+result = context.Alarm_updatePersonModulePasswordInformation()\n
+if not result:\n
+  log("TioLive Instance hasn\'t been decoupled with success! It could not update the objects from Person Module.")\n
+  return False\n
+\n
+# Disable the remove user creation.\n
+if not context.Alarm_moveObsoleteSkinObjectList():\n
+  log("TioLive Instance hasn\'t been decoupled with success! It could not move the obsolete objects.")\n
+  return False\n
+\n
+# Remove Authentication Plugin\n
+context.Alarm_removeAuthenticationPlugin()\n
+context.setEnabled(False)\n
+\n
+# Notify customer\n
+context.Alarm_notifyDecoupleInstance(person_list=result)\n
+\n
+log("Finished to decouple the TioLive Instance!")\n
+\n
+return True\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>Products.ERP5Type.Log</string>
+                            <string>log</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>result</string>
+                            <string>False</string>
+                            <string>True</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>Alarm_decoupleInstance</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_moveObsoleteSkinObjectList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_moveObsoleteSkinObjectList.xml?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_moveObsoleteSkinObjectList.xml (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_moveObsoleteSkinObjectList.xml [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1,175 @@
+<?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>"""\n
+ Decoupling the instance we need to move the Form used to create person\n
+ and also the script used.\n
+\n
+ Those objects are customized into portal_skins/express_customization\n
+ and must be moved to tiolive_decouple_obsolete.\n
+\n
+ The folder tiolive_decouple_obsolete is created only when it is required\n
+ and it is not present into portal skins selection.\n
+"""\n
+from Products.ERP5Type.Log import log\n
+portal = context.getPortalObject()\n
+obsolete_object_list = [\'Person_createUser\',\n
+                        \'Person_viewCreateUserActionDialog\']\n
+\n
+express_customisation_folder = getattr(portal.portal_skins, "express_customisation", None)\n
+if express_customisation_folder is None:\n
+  express_customisation_folder = getattr(portal.portal_skins, "express_customisation_user_synchronization", None)\n
+  if express_customisation_folder is None:\n
+    return True\n
+\n
+obsolete_skin_folder_id = "tiolive_decouple_obsolete"\n
+obsolete_skin_folder = getattr(portal.portal_skins, obsolete_skin_folder_id, None)\n
+if obsolete_skin_folder is None:\n
+  portal.portal_skins.manage_addFolder(id=obsolete_skin_folder_id)\n
+\n
+try:\n
+  object_list = express_customisation_folder.manage_cutObjects(obsolete_object_list)\n
+  portal.portal_skins[obsolete_skin_folder_id].manage_pasteObjects(object_list)\n
+except AttributeError:\n
+  log(\'FAILED to move %s to %s skin folder. Please check is the objects are already into %s.\' % \\\n
+                          (obsolete_object_list, obsolete_skin_folder_id, obsolete_skin_folder_id))\n
+  return False\n
+\n
+return True\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>_proxy_roles</string> </key>
+            <value>
+              <tuple>
+                <string>Manager</string>
+              </tuple>
+            </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>Products.ERP5Type.Log</string>
+                            <string>log</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>portal</string>
+                            <string>obsolete_object_list</string>
+                            <string>getattr</string>
+                            <string>None</string>
+                            <string>express_customisation_folder</string>
+                            <string>True</string>
+                            <string>obsolete_skin_folder_id</string>
+                            <string>obsolete_skin_folder</string>
+                            <string>object_list</string>
+                            <string>_getitem_</string>
+                            <string>AttributeError</string>
+                            <string>False</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>Alarm_moveObsoleteSkinObjectList</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_notifyDecoupleInstance.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_notifyDecoupleInstance.xml?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_notifyDecoupleInstance.xml (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_notifyDecoupleInstance.xml [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1,144 @@
+<?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>"""\n
+  The customer must be notified about the decouple.\n
+"""\n
+mto = "tiolive-backup at tiolive.com"\n
+mfrom = context.getPortalObject().email_from_address\n
+subject = \'Your TioLive Instance has been decoupled from TioLive Master.\'\n
+message =  ["""\n
+ Your TioLive Instance have been decoupled from TioLive Master.\n
+ It means that all the user information has been moved to your instance and from now the user authentication will be done locally.\n
+ The user authentication will be much faster now.\n
+ \n
+ TioLive Instance Id: %s\n
+\n
+ List of users which have been moved to your instance:\\n""" % context.ERP5Site_getExpressInstanceUid()]\n
+\n
+for person in person_list:\n
+  message.append(" %s\\n" % person)\n
+\n
+context.MailHost.send(\'\'.join(message), mto, mfrom, subject)\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string>person_list</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>1</int> </value>
+                    </item>
+                    <item>
+                        <key> <string>co_varnames</string> </key>
+                        <value>
+                          <tuple>
+                            <string>person_list</string>
+                            <string>mto</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>mfrom</string>
+                            <string>subject</string>
+                            <string>message</string>
+                            <string>_getiter_</string>
+                            <string>person</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>Alarm_notifyDecoupleInstance</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_removeAuthenticationPlugin.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_removeAuthenticationPlugin.xml?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_removeAuthenticationPlugin.xml (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_removeAuthenticationPlugin.xml [utf8] Thu Feb  3 15:29:13 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>"""\n
+  Script removes the nexedi_authentication plugin.\n
+"""\n
+plugin_id = "nexedi_authentication"\n
+user_folder = context.getPortalObject().acl_users\n
+user_folder.manage_delObjects(\'nexedi_authentication\')\n
+\n
+erp5_users_plugin = getattr(user_folder, "erp5_users")\n
+erp5_users_plugin.manage_activateInterfaces(interfaces=[\'IAuthenticationPlugin\', \'IUserEnumerationPlugin\'])\n
+\n
+return True\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>plugin_id</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>user_folder</string>
+                            <string>getattr</string>
+                            <string>erp5_users_plugin</string>
+                            <string>True</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>Alarm_removeAuthenticationPlugin</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_senseDecoupleInstance.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_senseDecoupleInstance.xml?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_senseDecoupleInstance.xml (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_senseDecoupleInstance.xml [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1,133 @@
+<?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>"""\n
+  Script check if nexedi_authentication exists.\n
+"""\n
+plugin_id = "nexedi_authentication"\n
+user_folder = context.getPortalObject().acl_users\n
+acl_users_id_list = user_folder.objectIds()\n
+\n
+if plugin_id in acl_users_id_list:\n
+  return context.Alarm_decoupleInstance()\n
+\n
+return False\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>plugin_id</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>user_folder</string>
+                            <string>acl_users_id_list</string>
+                            <string>False</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>Alarm_senseDecoupleInstance</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_updatePersonModulePasswordInformation.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_updatePersonModulePasswordInformation.xml?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_updatePersonModulePasswordInformation.xml (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_updatePersonModulePasswordInformation.xml [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ExternalMethod" module="Products.ExternalMethod.ExternalMethod"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_function</string> </key>
+            <value> <string>Alarm_updatePersonModulePasswordInformation</string> </value>
+        </item>
+        <item>
+            <key> <string>_module</string> </key>
+            <value> <string>TioLiveDecoupleInstance</string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>Alarm_updatePersonModulePasswordInformation</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/tiolive_decouple_instance/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/bt/change_log?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/bt/change_log (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/bt/change_log [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1,2 @@
+2011-01-18 lucas
+- Initial version
\ No newline at end of file

Added: erp5/trunk/bt5/tiolive_decouple_instance/bt/copyright_list
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/bt/copyright_list?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/bt/copyright_list (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/bt/copyright_list [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1 @@
+2011 Nexedi SA
\ No newline at end of file

Added: erp5/trunk/bt5/tiolive_decouple_instance/bt/description
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/bt/description?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/bt/description (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/bt/description [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1,2 @@
+It must be installed only if you want to decouple such instance from TioLive Master.
+Login will work locally.
\ No newline at end of file

Added: erp5/trunk/bt5/tiolive_decouple_instance/bt/license
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/bt/license?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/bt/license (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/bt/license [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1 @@
+Proprietary
\ No newline at end of file

Added: erp5/trunk/bt5/tiolive_decouple_instance/bt/maintainer_list
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/bt/maintainer_list?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/bt/maintainer_list (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/bt/maintainer_list [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1 @@
+lucas
\ No newline at end of file

Added: erp5/trunk/bt5/tiolive_decouple_instance/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/bt/revision?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/bt/revision (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/bt/revision [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1 @@
+14
\ No newline at end of file

Added: erp5/trunk/bt5/tiolive_decouple_instance/bt/template_extension_id_list
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/bt/template_extension_id_list?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/bt/template_extension_id_list (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/bt/template_extension_id_list [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1 @@
+TioLiveDecoupleInstance
\ No newline at end of file

Added: erp5/trunk/bt5/tiolive_decouple_instance/bt/template_format_version
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/bt/template_format_version?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/bt/template_format_version (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/bt/template_format_version [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1 @@
+1
\ No newline at end of file

Added: erp5/trunk/bt5/tiolive_decouple_instance/bt/template_path_list
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/bt/template_path_list?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/bt/template_path_list (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/bt/template_path_list [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1 @@
+portal_alarms/tiolive_decouple_user_authentication
\ No newline at end of file

Added: erp5/trunk/bt5/tiolive_decouple_instance/bt/template_portal_type_workflow_chain_list
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/bt/template_portal_type_workflow_chain_list?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/bt/template_portal_type_workflow_chain_list (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/bt/template_portal_type_workflow_chain_list [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1,2 @@
+Assignment | -express_person_interaction_workflow
+Person | -express_person_interaction_workflow
\ No newline at end of file

Added: erp5/trunk/bt5/tiolive_decouple_instance/bt/template_skin_id_list
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/bt/template_skin_id_list?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/bt/template_skin_id_list (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/bt/template_skin_id_list [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1 @@
+tiolive_decouple_instance
\ No newline at end of file

Added: erp5/trunk/bt5/tiolive_decouple_instance/bt/title
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_decouple_instance/bt/title?rev=42988&view=auto
==============================================================================
--- erp5/trunk/bt5/tiolive_decouple_instance/bt/title (added)
+++ erp5/trunk/bt5/tiolive_decouple_instance/bt/title [utf8] Thu Feb  3 15:29:13 2011
@@ -0,0 +1 @@
+tiolive_decouple_instance
\ No newline at end of file



More information about the Erp5-report mailing list