[Erp5-report] r43839 nicolas - in /erp5/trunk/bt5/erp5_crm: SkinTemplateItem/portal_skins/e...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Mar 1 10:18:33 CET 2011


Author: nicolas
Date: Tue Mar  1 10:18:33 2011
New Revision: 43839

URL: http://svn.erp5.org?rev=43839&view=rev
Log:
Extend script to ease its usage with specific use case (like edit text_content in dialog or pass some workflow transitions)

Modified:
    erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Base_addEvent.xml
    erp5/trunk/bt5/erp5_crm/bt/revision

Modified: erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Base_addEvent.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Base_addEvent.xml?rev=43839&r1=43838&r2=43839&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Base_addEvent.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Base_addEvent.xml [utf8] Tue Mar  1 10:18:33 2011
@@ -109,11 +109,15 @@ event_kw[\'destination\'] = destination_
 event_kw[\'destination_section\'] = destination_section_url\n
 event_kw[\'start_date\'] = start_date\n
 event_kw[\'follow_up\'] = follow_up\n
+event_kw[\'text_content\'] = text_content\n
 \n
 # Create event\n
 module = portal.getDefaultModule(portal_type=portal_type)\n
 event = module.newContent(**event_kw)\n
 \n
+if batch_mode:\n
+  return event\n
+\n
 message = portal.Base_translateString(\'New event created.\')\n
 \n
 event.Base_redirect(keep_items={\'portal_status_message\': message})\n
@@ -121,7 +125,7 @@ event.Base_redirect(keep_items={\'portal
         </item>
         <item>
             <key> <string>_params</string> </key>
-            <value> <string>title, direction, portal_type, resource, **kw</string> </value>
+            <value> <string>title, direction, portal_type, resource, text_content=None, batch_mode=False, **kw</string> </value>
         </item>
         <item>
             <key> <string>id</string> </key>

Modified: erp5/trunk/bt5/erp5_crm/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/revision?rev=43839&r1=43838&r2=43839&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_crm/bt/revision [utf8] Tue Mar  1 10:18:33 2011
@@ -1 +1 @@
-529
\ No newline at end of file
+530
\ No newline at end of file



More information about the Erp5-report mailing list