[Erp5-report] r21102 - in /erp5/trunk/bt5/erp5_web: SkinTemplateItem/portal_skins/erp5_web/...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri May 23 15:44:55 CEST 2008


Author: ivan
Date: Fri May 23 15:44:49 2008
New Revision: 21102

URL: http://svn.erp5.org?rev=21102&view=rev
Log:
Do not immediately reindex newly created person acount.
Add comment why.

Modified:
    erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createWebSiteAccount.xml
    erp5/trunk/bt5/erp5_web/bt/revision

Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createWebSiteAccount.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createWebSiteAccount.xml?rev=21102&r1=21101&r2=21102&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createWebSiteAccount.xml (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_createWebSiteAccount.xml Fri May 23 15:44:49 2008
@@ -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 = 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 @@
 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>

Modified: erp5/trunk/bt5/erp5_web/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/bt/revision?rev=21102&r1=21101&r2=21102&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/bt/revision (original)
+++ erp5/trunk/bt5/erp5_web/bt/revision Fri May 23 15:44:49 2008
@@ -1,1 +1,1 @@
-631
+632




More information about the Erp5-report mailing list