Commit 1c67a489 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

make Base_viewAddEventDialog similar to Ticket_viewNewEventDialog (except...

make Base_viewAddEventDialog similar to Ticket_viewNewEventDialog (except source/destination fields).
parent 9683e229
...@@ -86,12 +86,12 @@ if context.getPortalType() in portal_entity_type_list:\n ...@@ -86,12 +86,12 @@ if context.getPortalType() in portal_entity_type_list:\n
else:\n else:\n
follow_up = context.getRelativeUrl()\n follow_up = context.getRelativeUrl()\n
\n \n
if direction == \'out\':\n if direction == \'outgoing\':\n
source_url = person\n source_url = person\n
source_section_url = organisation\n source_section_url = organisation\n
destination_url = person_relative_url or organisation_relative_url\n destination_url = person_relative_url or organisation_relative_url\n
destination_section_url = organisation_relative_url\n destination_section_url = organisation_relative_url\n
elif direction == \'in\':\n elif direction == \'incoming\':\n
source_url = person_relative_url or organisation_relative_url\n source_url = person_relative_url or organisation_relative_url\n
source_section_url = organisation_relative_url\n source_section_url = organisation_relative_url\n
destination_url = person\n destination_url = person\n
...@@ -110,6 +110,7 @@ event_kw[\'destination_section\'] = destination_section_url\n ...@@ -110,6 +110,7 @@ event_kw[\'destination_section\'] = destination_section_url\n
event_kw[\'start_date\'] = start_date\n event_kw[\'start_date\'] = start_date\n
event_kw[\'follow_up\'] = follow_up\n event_kw[\'follow_up\'] = follow_up\n
event_kw[\'text_content\'] = text_content\n event_kw[\'text_content\'] = text_content\n
event_kw[\'content_type\'] = portal.portal_preferences.getPreferredTextEditor() and \'text/html\' or \'text/plain\',\n
\n \n
# Create event\n # Create event\n
module = portal.getDefaultModule(portal_type=portal_type)\n module = portal.getDefaultModule(portal_type=portal_type)\n
......
...@@ -95,8 +95,9 @@ ...@@ -95,8 +95,9 @@
<list> <list>
<string>your_title</string> <string>your_title</string>
<string>your_portal_type</string> <string>your_portal_type</string>
<string>your_direction</string>
<string>your_resource</string> <string>your_resource</string>
<string>your_direction</string>
<string>your_text_content</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<value> <value>
<list> <list>
<string>items</string> <string>items</string>
<string>required</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -66,6 +67,10 @@ ...@@ -66,6 +67,10 @@
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -88,14 +93,13 @@ ...@@ -88,14 +93,13 @@
<item> <item>
<key> <string>items</string> </key> <key> <string>items</string> </key>
<value> <value>
<list> <list/>
<tuple>
<string>Event</string>
<string>Event</string>
</tuple>
</list>
</value> </value>
</item> </item>
<item>
<key> <string>required</string> </key>
<value> <int>1</int> </value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
...@@ -108,16 +112,13 @@ ...@@ -108,16 +112,13 @@
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: [(here.Base_translateString(x), x) for x in here.getPortalEventTypeList() if here.Base_checkPermission(here.getDefaultModuleId(x), \'Add portal content\')]</string> </value> <value> <string>python: [(\'\', \'\')] + map(lambda x: (here.Base_translateString(x), x), here.getPortalEventTypeList())</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>css_class</string>
<string>default</string>
<string>editable</string>
<string>height</string>
<string>title</string>
<string>width</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>your_text_content</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>css_class</string> </key>
<value> <string>page</string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_text_content</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewCRMFieldLibrary</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>5</int> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Message</string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>40</int> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
570 571
\ 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