From eeec7f6a48107ae3b21a56947fcad73ba8d4f06b Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Thu, 1 Mar 2018 16:11:58 +0900
Subject: [PATCH] erp5_web: Do not mention immediateReindexObject.

This method must not be used, so do not mention it in an example script.
---
 .../portal_skins/erp5_web/WebSite_createWebSiteAccount.py    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createWebSiteAccount.py b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createWebSiteAccount.py
index eb3502af54..16fb61589a 100644
--- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createWebSiteAccount.py
+++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createWebSiteAccount.py
@@ -48,11 +48,10 @@ if person_list:
 person_module = portal.getDefaultModule(portal_type='Person')
 person = person_module.newContent(portal_type='Person', **kw)
 person.validate()
-# do not immediate reindex object
-# this means that when creating an account the new one will *NOT*
+# Note: object is not immediately indexed.
+# This means that when creating an account the new one will *NOT*
 # be available immediately and we should consider sending two email to user
 # that 1) his account will be created and when created 2)-> send account info
-#person.immediateReindexObject()
 
 # Create default career
 person.newContent(portal_type='Career',
-- 
2.30.9