[Erp5-report] r22465 - /erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Even...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jul 14 21:00:02 CEST 2008


Author: jp
Date: Mon Jul 14 21:00:01 2008
New Revision: 22465

URL: http://svn.erp5.org?rev=22465&view=rev
Log:
Make outgoing clone events editable - quick fix
(maybe better implementation should be made)

Modified:
    erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary/my_text_content.xml

Modified: erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary/my_text_content.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary/my_text_content.xml?rev=22465&r1=22464&r2=22465&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary/my_text_content.xml (original)
+++ erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary/my_text_content.xml Mon Jul 14 21:00:01 2008
@@ -307,7 +307,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python:(here.hasFile() and \'page\') or \'\'</string> </value>
+            <value> <string>python:((here.hasFile() and here.getSimulationState() not in (\'draft\', \'outgoing\', \'pending\')) and \'page\') or \'\'</string> </value>
         </item>
       </dictionary>
     </pickle>
@@ -323,7 +323,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python:here.Event_getTextContentCorrespondToFormat(editable=not here.hasFile())</string> </value>
+            <value> <string>python:here.Event_getTextContentCorrespondToFormat(editable=(not here.hasFile() or here.getSimulationState() in (\'draft\', \'outgoing\', \'pending\')))</string> </value>
         </item>
       </dictionary>
     </pickle>
@@ -339,7 +339,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>not:here/hasFile</string> </value>
+            <value> <string>python:not here.hasFile() or here.getSimulationState() in (\'draft\', \'outgoing\', \'pending\')</string> </value>
         </item>
       </dictionary>
     </pickle>




More information about the Erp5-report mailing list