From d25bbdfc1b62a965fb14b50f3f2336db43f55176 Mon Sep 17 00:00:00 2001 From: Ivan Tyagov <ivan@nexedi.com> Date: Fri, 23 May 2008 13:44:49 +0000 Subject: [PATCH] Do not immediately reindex newly created person acount. Add comment why. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21102 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_web/WebSite_createWebSiteAccount.xml | 14 +++++++++++--- bt5/erp5_web/bt/revision | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createWebSiteAccount.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createWebSiteAccount.xml index a3597c76fb..404fce84f2 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createWebSiteAccount.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createWebSiteAccount.xml @@ -65,7 +65,9 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>"""\n + <value> <string encoding="cdata"><![CDATA[ + +"""\n This script is a sample script skeleton (part of erp5_web)\n which can be used to create user (Person object) \n \n @@ -98,7 +100,11 @@ person_module = context.getPortalObject().person_module\n person = person_module.newContent(portal_type = \'Person\', \n **kw)\n person.validate()\n -person.immediateReindexObject()\n +# do not immediate reindex object\n +# this means that when creating an account the new one will *NOT*\n +# be available immediately and we should consider sending two email to user\n +# that 1) his account will be created and when created 2)-> send account info\n +#person.immediateReindexObject()\n \n # Create default career\n career = person.newContent(portal_type = \'Career\',\n @@ -119,7 +125,9 @@ website = context.getWebSiteValue()\n return website.Base_redirect(\'view\', \n keep_items = dict(portal_status_message = msg,\n editable_mode = 0))\n -</string> </value> + + +]]></string> </value> </item> <item> <key> <string>_code</string> </key> diff --git a/bt5/erp5_web/bt/revision b/bt5/erp5_web/bt/revision index 4793663f9f..c5ba36b3c3 100644 --- a/bt5/erp5_web/bt/revision +++ b/bt5/erp5_web/bt/revision @@ -1 +1 @@ -631 \ No newline at end of file +632 \ No newline at end of file -- 2.30.9