[Erp5-report] r40931 jerome - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplat...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Nov 30 15:33:10 CET 2010


Author: jerome
Date: Tue Nov 30 15:33:09 2010
New Revision: 40931

URL: http://svn.erp5.org?rev=40931&view=rev
Log:
set value in request with real key

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

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_editRelation.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_editRelation.xml?rev=40931&r1=40930&r2=40931&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_editRelation.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_editRelation.xml [utf8] Tue Nov 30 15:33:09 2010
@@ -55,10 +55,7 @@
 # Updates relation of an ERP5 document\n
 from Products.ERP5Type.Message import Message\n
 from Products.Formulator.Errors import ValidationError\n
-\n
-# XXX: Harcoded value, which must be taken from RelationField.py\n
-# XXX why not import it then ???\n
-SUB_FIELD_ID = \'relation\'\n
+from Products.ERP5Form.MultiRelationField import SUB_FIELD_ID\n
 \n
 if listbox_uid is not None:\n
   selection_tool = context.getPortalObject().portal_selections\n
@@ -79,7 +76,7 @@ else:\n
   # XXX Not very dynamic...\n
   sub_field_key = field.generate_subfield_key(SUB_FIELD_ID, key=field_key)\n
   old_request[sub_field_key] = uids\n
-\n
+  old_request[field_key] = uids\n
 \n
 request = container.REQUEST\n
 request_form = request.form\n
@@ -143,6 +140,7 @@ return edit_method(form_id,\n
                             <string>Message</string>
                             <string>Products.Formulator.Errors</string>
                             <string>ValidationError</string>
+                            <string>Products.ERP5Form.MultiRelationField</string>
                             <string>SUB_FIELD_ID</string>
                             <string>None</string>
                             <string>_getattr_</string>

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=40931&r1=40930&r2=40931&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Tue Nov 30 15:33:09 2010
@@ -1 +1 @@
-40817
\ No newline at end of file
+40818
\ No newline at end of file



More information about the Erp5-report mailing list