Commit d71d728c authored by Romain Courteaud's avatar Romain Courteaud

Modify Base_editRelation in order to reduce URL lenght.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6432 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1a9de5a9
......@@ -73,6 +73,10 @@
from Products.ERP5Type.Message import Message\n
from Products.Formulator.Errors import ValidationError, FormValidationError\n
\n
# XXX Hardcoded value\n
# from Products.ERP5Form.SelectionTool import PREVIOUS_REQUEST_COOKIE_NAME\n
PREVIOUS_REQUEST_COOKIE_NAME = "previous_request" \n
\n
# Harcoded value, which must be taken from RelationField.py\n
SUB_FIELD_ID = \'relation\'\n
\n
......@@ -108,9 +112,14 @@ if relation_setter_id: \n
\n
portal_type = [x[0] for x in field.get_value(\'portal_type\')]\n
\n
old_request = context.portal_selections.getObjectFromPickleAndSignature(\n
request.form_pickle, \n
request.form_signature)\n
# old_request = context.portal_selections.getObjectFromPickleAndSignature(\n
# request.form_pickle, \n
# request.form_signature)\n
\n
old_request = context.portal_selections.getCookieInfo(\n
request,\n
PREVIOUS_REQUEST_COOKIE_NAME)\n
# \'GreatCookieNameXXX\')\n
\n
field_key = field.generate_field_key()\n
if old_request.has_key(\'sub_index\'):\n
......@@ -217,6 +226,7 @@ return context.Base_edit(form_id, \n
<string>Products.Formulator.Errors</string>
<string>ValidationError</string>
<string>FormValidationError</string>
<string>PREVIOUS_REQUEST_COOKIE_NAME</string>
<string>SUB_FIELD_ID</string>
<string>_getattr_</string>
<string>context</string>
......
2006-04-03 Romain
* Modify Base_editRelation, in order to reduce URL lenght.
2006-03-31 Kevin
* Add section_portal_type_list parameter to Resource_zGetInventory. This addition is here to help us break acquisition of 'group' property from Person to Organisation. The latter behaviour break accounting calculations.
2006-03-27 Kevin
* Recreate "parent" Base Category to make the indexing of this category working.
2006-03-27 romain
* Fix Base_editRelation.
2006-03-23 aurel
* move assignment workflow to erp5_base
2006-03-23 jerome
* Remove preferred visible modules.
2006-03-22 Kevin
* Get dynamiccaly the list of translated simulation state in AccountingPreferences_view.
* Change title of my_preferred_accounting_transaction_gap for consistency.
2006-03-21 Seb
* moved catalog methods here
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment