[Erp5-report] r8676 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/po...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jul 21 17:10:41 CEST 2006
Author: aurel
Date: Fri Jul 21 17:10:37 2006
New Revision: 8676
URL: http://svn.erp5.org?rev=8676&view=rev
Log:
2006-07-21 aurel
* register checked uid in selection in Base_callDialogMethod
* execute Base_setDefaultSecurity when creating new module
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_callDialogMethod.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.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_callDialogMethod.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_callDialogMethod.xml?rev=8676&r1=8675&r2=8676&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_callDialogMethod.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_callDialogMethod.xml Fri Jul 21 17:10:37 2006
@@ -218,6 +218,14 @@
# if dialog_category is object_search, then edit the selection\n
if dialog_category == "object_search" :\n
context.portal_selections.setSelectionParamsFor(request_form[\'selection_name\'], request_form)\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
clean_kw = {}\n
@@ -356,6 +364,11 @@
<string>object_uid_list</string>
<string>error</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>url_params_string</string>
<string>dialog_form</string>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.xml?rev=8676&r1=8675&r2=8676&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.xml Fri Jul 21 17:10:37 2006
@@ -202,10 +202,11 @@
, "object_print"\n
)\n
# Finally add the module to the site\n
-portal.newContent( portal_type = module_portal_type\n
- , id = module_id\n
- , title = module_title\n
- )\n
+module_object = portal.newContent( portal_type = module_portal_type\n
+ , id = module_id\n
+ , title = module_title\n
+ )\n
+module_object.Base_setDefaultSecurity()\n
\n
if not selection_index:\n
redirect_url = \'%s/%s?%s\' % ( context.absolute_url()\n
@@ -231,6 +232,12 @@
<key> <string>_code</string> </key>
<value>
<none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_dav_writelocks</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
@@ -304,6 +311,7 @@
<string>default_groups</string>
<string>group</string>
<string>object_portal_type_value</string>
+ <string>module_object</string>
<string>redirect_url</string>
</tuple>
</value>
@@ -335,4 +343,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=8676&r1=8675&r2=8676&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log Fri Jul 21 17:10:37 2006
@@ -1,3 +1,7 @@
+2006-07-21 aurel
+* register checked uid in selection in Base_callDialogMethod
+* execute Base_setDefaultSecurity when creating new module
+
2006-07-20 aurel
* define priority on action when creating module
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=8676&r1=8675&r2=8676&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Fri Jul 21 17:10:37 2006
@@ -1,1 +1,1 @@
-32
+34
More information about the Erp5-report
mailing list