Commit 18f7fe38 authored by Yusei Tahara's avatar Yusei Tahara

2008-01-21 yusei

* Add tests for section selection box.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18805 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2357b698
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Test Section Selection for Accounting Transaction</title></head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="4">\n
Test Section Selection for Accounting Transaction.\n
</td></tr>\n
<!-- XXX we do not need init method here ! -->\n
</thead><tbody tal:define="init_method string:">\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
\n
<!-- Setup {{{ -->\n
<!-- Reset Preference -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/AccountingZuite_setDocumentSectionPreference</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>(\'group/demo_group\', \'group/demo_group\')</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounting</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Add an accounting transaction and select an orgaisation as section {{{ -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
<td>label=Add Accounting Transaction</td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Object Created.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>field_my_source_section</td>\n
<td>label=My Organisation</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>field_my_title</td>\n
<td>My Accounting Transaction</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>document.forms[0].elements[\'Base_edit:method\'][1]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Data Updated.</td>\n
<td></td>\n
</tr>\n
<!-- Modify Preference -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/AccountingZuite_unsetDocumentSectionPreference</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>(None, None)</td>\n
<td></td>\n
</tr>\n
<!-- Activity -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/Zuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<!-- Open the transaction view and check section value. -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>label=Accounting</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=My Accounting Transaction</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>field_my_source_section</td>\n
<td>organisation_module/my_organisation</td>\n
</tr>\n
\n
<!-- Reset Preference -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/AccountingZuite_setDocumentSectionPreference</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>(\'group/demo_group\', \'group/demo_group\')</td>\n
<td></td>\n
</tr>\n
\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test_accounting_transaction_section_selection_check.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Test Section Selection for Payment Transaction</title></head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="4">\n
Test Section Selection for Payment Transaction.\n
</td></tr>\n
<!-- XXX we do not need init method here ! -->\n
</thead><tbody tal:define="init_method string:">\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
\n
<!-- Setup {{{ -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/AccountingZuite_setDocumentSectionPreference</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>(\'group/demo_group\', \'group/demo_group\')</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounting</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Add an accounting transaction and select an orgaisation as section {{{ -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
<td>label=Add Payment Transaction</td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Object Created.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>field_my_destination_section</td>\n
<td>label=My Organisation</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>field_my_title</td>\n
<td>My Payment Transaction</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>document.forms[0].elements[\'Base_edit:method\'][1]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Data Updated.</td>\n
<td></td>\n
</tr>\n
<!-- Modify Preference -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/AccountingZuite_unsetDocumentSectionPreference</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>(None, None)</td>\n
<td></td>\n
</tr>\n
<!-- Activity -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/Zuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<!-- Open the transaction view and check section value. -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>label=Accounting</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=My Payment Transaction</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>field_my_destination_section</td>\n
<td>organisation_module/my_organisation</td>\n
</tr>\n
\n
<!-- Reset Preference -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/AccountingZuite_setDocumentSectionPreference</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>(\'group/demo_group\', \'group/demo_group\')</td>\n
<td></td>\n
</tr>\n
\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test_payment_transaction_section_selection_check.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Test Section Selection for Purchase Invoice Transaction</title></head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="4">\n
Test Section Selection for Purchase Invoice Transaction.\n
</td></tr>\n
<!-- XXX we do not need init method here ! -->\n
</thead><tbody tal:define="init_method string:">\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
\n
<!-- Setup {{{ -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/AccountingZuite_setDocumentSectionPreference</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>(\'group/demo_group\', \'group/demo_group\')</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounting</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Add an accounting transaction and select an orgaisation as section {{{ -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
<td>label=Add Purchase Invoice Transaction</td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Object Created.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>field_my_destination_section</td>\n
<td>label=My Organisation</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>field_my_title</td>\n
<td>My Purchase Invoice Transaction</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>document.forms[0].elements[\'Base_edit:method\'][1]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Data Updated.</td>\n
<td></td>\n
</tr>\n
<!-- Modify Preference -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/AccountingZuite_unsetDocumentSectionPreference</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>(None, None)</td>\n
<td></td>\n
</tr>\n
<!-- Activity -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/Zuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<!-- Open the transaction view and check section value. -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>label=Accounting</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=My Purchase Invoice Transaction</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>field_my_destination_section</td>\n
<td>organisation_module/my_organisation</td>\n
</tr>\n
\n
<!-- Reset Preference -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/AccountingZuite_setDocumentSectionPreference</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>(\'group/demo_group\', \'group/demo_group\')</td>\n
<td></td>\n
</tr>\n
\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test_purchase_invoice_transaction_section_selection_check.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Test Section Selection for Sale Invoice Transaction</title></head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="4">\n
Test Section Selection for Sale Invoice Transaction.\n
</td></tr>\n
<!-- XXX we do not need init method here ! -->\n
</thead><tbody tal:define="init_method string:">\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
\n
<!-- Setup {{{ -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/AccountingZuite_setDocumentSectionPreference</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>(\'group/demo_group\', \'group/demo_group\')</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounting</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Add an accounting transaction and select an orgaisation as section {{{ -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
<td>label=Add Sale Invoice Transaction</td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Object Created.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>field_my_source_section</td>\n
<td>label=My Organisation</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>field_my_title</td>\n
<td>My Sale Invoice Transaction</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>document.forms[0].elements[\'Base_edit:method\'][1]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Data Updated.</td>\n
<td></td>\n
</tr>\n
<!-- Modify Preference -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/AccountingZuite_unsetDocumentSectionPreference</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>(None, None)</td>\n
<td></td>\n
</tr>\n
<!-- Activity -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/Zuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<!-- Open the transaction view and check section value. -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>label=Accounting</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=My Sale Invoice Transaction</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>field_my_source_section</td>\n
<td>organisation_module/my_organisation</td>\n
</tr>\n
\n
<!-- Reset Preference -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/AccountingZuite_setDocumentSectionPreference</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>(\'group/demo_group\', \'group/demo_group\')</td>\n
<td></td>\n
</tr>\n
\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test_sale_invoice_transaction_section_selection_check.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<string>Products.PageTemplates.ZopePageTemplate</string> <tuple/>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -72,6 +69,8 @@ ...@@ -72,6 +69,8 @@
<td>Reset Successfully.</td>\n <td>Reset Successfully.</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tal:block tal:condition="init_method">\n
<tr>\n <tr>\n
<td>open</td>\n <td>open</td>\n
<td tal:content="string:$base_url/accounting_module/$init_method" />\n <td tal:content="string:$base_url/accounting_module/$init_method" />\n
...@@ -82,7 +81,6 @@ ...@@ -82,7 +81,6 @@
<td>Accounting Transactions Created.</td>\n <td>Accounting Transactions Created.</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>open</td>\n <td>open</td>\n
<td>${base_url}/Zuite_waitForActivities</td>\n <td>${base_url}/Zuite_waitForActivities</td>\n
...@@ -93,6 +91,8 @@ ...@@ -93,6 +91,8 @@
<td>Done.</td>\n <td>Done.</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
</tal:block>\n
\n
<tr>\n <tr>\n
<td>open</td>\n <td>open</td>\n
<td>${base_url}</td>\n <td>${base_url}</td>\n
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>preference = context.portal_preferences.accounting_zuite_preference\n
preference.setPreferredAccountingTransactionSectionCategory(\'group/demo_group\')\n
preference.setPreferredSectionCategory(\'group/demo_group\')\n
\n
return str((preference.getPreferredSectionCategory(), preference.getPreferredAccountingTransactionSectionCategory()))\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>preference</string>
<string>str</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountingZuite_setDocumentSectionPreference</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>preference = context.portal_preferences.accounting_zuite_preference\n
preference.setPreferredAccountingTransactionSectionCategory(None)\n
preference.setPreferredSectionCategory(None)\n
\n
return str((preference.getPreferredSectionCategory(), preference.getPreferredAccountingTransactionSectionCategory()))\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>preference</string>
<string>None</string>
<string>str</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountingZuite_unsetDocumentSectionPreference</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2008-01-21 yusei
* Add tests for section selection box.
2006-09-25 jerome 2006-09-25 jerome
* Add tests for bank accounts * Add tests for bank accounts
* Add tests for accounting transaction inputing * Add tests for accounting transaction inputing
......
60 61
\ 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