[Erp5-report] r10176 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Sep 19 16:05:33 CEST 2006


Author: aurel
Date: Tue Sep 19 16:04:24 2006
New Revision: 10176

URL: http://svn.erp5.org?rev=10176&view=rev
Log:
2006-09-15 Aurel
* remove immediateReindex and pass parameter explicitely in Base_validateRelation

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_validateRelation.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_validateRelation.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_validateRelation.xml?rev=10176&r1=10175&r2=10176&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_validateRelation.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_validateRelation.xml Tue Sep 19 16:04:24 2006
@@ -81,17 +81,7 @@
 #base_category = context.getBaseCategoryId()\n
 base_category = None\n
 \n
-o = context.portal_catalog.getObject(object_uid)\n
-redirect_url = None\n
-\n
-if o is None:\n
-  # we first try to reindex the object, thanks to the object_path\n
-  o = context.restrictedTraverse(object_path)\n
-  if o is not None:\n
-    o.immediateReindexObject()\n
-  else:\n
-    message = N_("Sorrry, Error, the calling object was not catalogued. Do not know how to do ?")\n
-    return ValueError, message\n
+o = context.restrictedTraverse(object_path)\n
 \n
 def checkSameKeys(a , b):\n
   """\n
@@ -185,13 +175,13 @@
       o.setValueUidList(base_category,  (), portal_type=portal_type)\n
     elif same_keys:\n
       uids = getOrderedUids(uids, new_value, my_field.get_value(\'catalog_index\'))\n
-      return o.Base_editRelation( form_id,\n
-                                my_field.id,\n
-                                selection_index,\n
-                                selection_name,\n
-                                uids,\n
-                                object_uid,\n
-                                listbox_uid=None)\n
+      return o.Base_editRelation( form_id = form_id,\n
+                                  field_id = my_field.id,\n
+                                  selection_index = selection_index,\n
+                                  selection_name = selection_name,\n
+                                  uids = uids,\n
+                                  object_uid = object_uid,\n
+                                  listbox_uid=None)\n
     elif len(relation_list) > 0:\n
       # If we have only one in the list, we don\'t want to lose our time by\n
       # selecting it. So we directly do the update\n
@@ -284,6 +274,12 @@
             </value>
         </item>
         <item>
+            <key> <string>_dav_writelocks</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
             <key> <string>_filepath</string> </key>
             <value>
               <none/>
@@ -335,9 +331,6 @@
                             <string>None</string>
                             <string>base_category</string>
                             <string>o</string>
-                            <string>redirect_url</string>
-                            <string>message</string>
-                            <string>ValueError</string>
                             <string>checkSameKeys</string>
                             <string>getOrderedUids</string>
                             <string>getattr</string>
@@ -370,8 +363,10 @@
                             <string>value</string>
                             <string>catalog_index</string>
                             <string>complete_value</string>
+                            <string>redirect_url</string>
                             <string>validation_errors</string>
                             <string>field_errors</string>
+                            <string>message</string>
                           </tuple>
                         </value>
                     </item>
@@ -399,4 +394,25 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Persistence</string>
+          <string>PersistentMapping</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_container</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log?rev=10176&r1=10175&r2=10176&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log Tue Sep 19 16:04:24 2006
@@ -1,3 +1,6 @@
+2006-09-15 Aurel
+* remove immediateReindex and pass parameter explicitely in Base_validateRelation
+
 2006-09-15 Aurel
 * set flag to update bt workflow
 

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=10176&r1=10175&r2=10176&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Tue Sep 19 16:04:24 2006
@@ -1,1 +1,1 @@
-76
+73




More information about the Erp5-report mailing list