Commit 5345ebfa authored by Aurel's avatar Aurel

2006-07-21 aurel

* register checked uid in selection in Base_callDialogMethod
* execute Base_setDefaultSecurity when creating new module

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8676 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ad43004d
...@@ -219,6 +219,14 @@ if hasattr(request_form, \'previous_md5_object_uid_list\'):\n ...@@ -219,6 +219,14 @@ if hasattr(request_form, \'previous_md5_object_uid_list\'):\n
if dialog_category == "object_search" :\n if dialog_category == "object_search" :\n
context.portal_selections.setSelectionParamsFor(request_form[\'selection_name\'], request_form)\n context.portal_selections.setSelectionParamsFor(request_form[\'selection_name\'], request_form)\n
\n \n
# if we have checked line in listbox, modify the selection\n
listbox_uid = request.get(\'listbox_uid\', None)\n
if listbox_uid is not None:\n
uids = request.get(\'uids\')\n
selected_uids = context.portal_selections.updateSelectionCheckedUidList(\n
selection_name,\n
listbox_uid, uids)\n
\n
# Remove values which doesn\'t work with make_query.\n # Remove values which doesn\'t work with make_query.\n
clean_kw = {}\n clean_kw = {}\n
for k, v in request_form.items() :\n for k, v in request_form.items() :\n
...@@ -356,6 +364,11 @@ return context.REQUEST.RESPONSE.redirect(redirect_url)\n ...@@ -356,6 +364,11 @@ return context.REQUEST.RESPONSE.redirect(redirect_url)\n
<string>object_uid_list</string> <string>object_uid_list</string>
<string>error</string> <string>error</string>
<string>N_</string> <string>N_</string>
<string>request</string>
<string>listbox_uid</string>
<string>uids</string>
<string>selection_name</string>
<string>selected_uids</string>
<string>clean_kw</string> <string>clean_kw</string>
<string>url_params_string</string> <string>url_params_string</string>
<string>dialog_form</string> <string>dialog_form</string>
......
...@@ -202,10 +202,11 @@ object_portal_type_value.addAction( "print_pdf"\n ...@@ -202,10 +202,11 @@ object_portal_type_value.addAction( "print_pdf"\n
, "object_print"\n , "object_print"\n
)\n )\n
# Finally add the module to the site\n # Finally add the module to the site\n
portal.newContent( portal_type = module_portal_type\n module_object = portal.newContent( portal_type = module_portal_type\n
, id = module_id\n , id = module_id\n
, title = module_title\n , title = module_title\n
)\n )\n
module_object.Base_setDefaultSecurity()\n
\n \n
if not selection_index:\n if not selection_index:\n
redirect_url = \'%s/%s?%s\' % ( context.absolute_url()\n redirect_url = \'%s/%s?%s\' % ( context.absolute_url()\n
...@@ -233,6 +234,12 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n ...@@ -233,6 +234,12 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
<value> <value>
...@@ -304,6 +311,7 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n ...@@ -304,6 +311,7 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<string>default_groups</string> <string>default_groups</string>
<string>group</string> <string>group</string>
<string>object_portal_type_value</string> <string>object_portal_type_value</string>
<string>module_object</string>
<string>redirect_url</string> <string>redirect_url</string>
</tuple> </tuple>
</value> </value>
...@@ -335,4 +343,25 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n ...@@ -335,4 +343,25 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
</dictionary> </dictionary>
</pickle> </pickle>
</record> </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> </ZopeData>
2006-07-21 aurel
* register checked uid in selection in Base_callDialogMethod
* execute Base_setDefaultSecurity when creating new module
2006-07-20 aurel 2006-07-20 aurel
* define priority on action when creating module * define priority on action when creating module
......
32 34
\ No newline at end of file \ No newline at end of file
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