Commit db9669a0 authored by Alexandre Boeglin's avatar Alexandre Boeglin

2006-01-23 Alex

* simplified Bank Accounts


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5270 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 74178717
......@@ -58,7 +58,7 @@
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>4.0</float> </value>
<value> <float>1.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -48,7 +48,7 @@
</item>
<item>
<key> <string>optional</string> </key>
<value> <int>1</int> </value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>permissions</string> </key>
......
......@@ -58,7 +58,7 @@
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>5.0</float> </value>
<value> <float>1.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -58,7 +58,7 @@
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>2.0</float> </value>
<value> <float>1.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -48,7 +48,7 @@
</item>
<item>
<key> <string>optional</string> </key>
<value> <int>1</int> </value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>permissions</string> </key>
......
......@@ -58,7 +58,7 @@
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>2.0</float> </value>
<value> <float>1.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -58,7 +58,7 @@
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>3.0</float> </value>
<value> <float>1.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -42,7 +42,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>print</string> </value>
<value> <string>print_pdf</string> </value>
</item>
<item>
<key> <string>optional</string> </key>
......@@ -58,7 +58,7 @@
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>4.0</float> </value>
<value> <float>1.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
......@@ -85,7 +85,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/CreditCard_print</string> </value>
<value> <string>string:${object_url}/Base_printPdf</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -30,6 +30,10 @@
<none/>
</value>
</item>
<item>
<key> <string>acquire_local_roles</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>allowed_content_types</string> </key>
<value>
......@@ -48,15 +52,18 @@
</item>
<item>
<key> <string>content_meta_type</string> </key>
<value> <string>ERP5 BankAccount</string> </value>
<value> <string>ERP5 Bank Account</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string> A bank account number holds a collection of numbers and codes (ex. SWIFT, RIB, etc.) which may be used to identify a bank account.\n
<value> <string> A bank account number holds a collection of numbers and codes\n
(ex. SWIFT, RIB, etc.) which may be used to identify a bank account.\n
\n
A Bank Account is owned by a Person or an Organisation. A Bank Account contain Agents with Agent Privileges used by the owner to delegate the management of the bank account to trusted third-party Persons. \n
A Bank Account is owned by a Person or an Organisation. A Bank Account\n
contain Agents with Agent Privileges used by the owner to delegate the\n
management of the bank account to trusted third-party Persons.\n
\n
BankAccount inherits from Base and from the mix-in Coordinate.\n
BankAccount inherits from Base and from the mix-in Coordinate.\n
</string> </value>
</item>
<item>
......@@ -67,6 +74,12 @@
<key> <string>filter_content_types</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>hidden_content_type_list</string> </key>
<value>
......@@ -87,10 +100,6 @@
<tuple/>
</value>
</item>
<item>
<key> <string>redirect_script</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
......
......@@ -48,55 +48,24 @@
</item>
<item>
<key> <string>content_meta_type</string> </key>
<value> <string>ERP5 Coordinate</string> </value>
<value> <string>ERP5 Bank Account</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string> Coordinates is a mix-in class which is used to store elementary\n
coordinates of an Entity (ex. Person, Organisation)\n
<value> <string>\n
A bank account number holds a collection of numbers and codes\n
(ex. SWIFT, RIB, etc.) which may be used to identify a bank account.\n
\n
UNKNOWN Coordinates are treated as a document\n
with a subject (to find a given type of coordinate).\n
A Bank Account is owned by a Person or an Organisation. A Bank Account\n
contain Agents with Agent Privileges used by the owner to delegate the\n
management of the bank account to trusted third-party Persons.\n
\n
Coordinates use a URL approach. Any coordinate can\n
be rendered in a URL style. For example::\n
\n
- tel:+33(0)662057614\n
\n
- fax:+33(0)153010929\n
\n
- mailto:jp@nexedi.com\n
\n
- naf:722Z\n
\n
- smail://Nexedi/Jean-Paul Smets/943, av de la R\xe9publique/59700\n
Marcq-en-Baroeul/France\n
\n
Coordinates are stored as content within an Entity. Coordinate ids\n
are generated as a combination of a so-called role (ex. shipping,\n
billing, etc.) and a class string. This way, coordinates can\n
be accessed as attributes of the containing Entity::\n
\n
- default_phone\n
\n
- default_fax\n
\n
- billing_address\n
\n
- shipping_address\n
\n
In order to be able to list all coordinates of an Entity,\n
a list of Coordinate metatypes has to be defined and\n
stored somewhere. (TODO)\n
</string> </value>
BankAccount inherits from Base and from the mix-in Coordinate.\n
</string> </value>
</item>
<item>
<key> <string>factory</string> </key>
<value> <string>addCoordinate</string> </value>
</item>
<item>
<key> <string>filter_content_types</string> </key>
<value> <int>1</int> </value>
<value> <string>addBankAccount</string> </value>
</item>
<item>
<key> <string>hidden_content_type_list</string> </key>
......@@ -108,20 +77,12 @@
<key> <string>id</string> </key>
<value> <string>Credit Card</string> </value>
</item>
<item>
<key> <string>init_script</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>property_sheet_list</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
......
......@@ -99,7 +99,6 @@
<key> <string>left</string> </key>
<value>
<list>
<string>my_id</string>
<string>my_title</string>
<string>my_source_title</string>
<string>my_start_date</string>
......@@ -113,14 +112,11 @@
<key> <string>right</string> </key>
<value>
<list>
<string>my_iban_text_format</string>
<string>my_iban_key</string>
<string>my_bank_country_code</string>
<string>my_bban_text_format</string>
<string>my_bban_key</string>
<string>my_bank_code</string>
<string>my_branch</string>
<string>my_bank_account_number</string>
<string>my_bank_account_key</string>
</list>
</value>
</item>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_iban_key</string> </value>
<value> <string>my_bank_account_key</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -211,11 +211,11 @@
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>10</int> </value>
<value> <int>5</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value> <string encoding="base64">O/INCg==</string> </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>card_number = context.getCardNumber()\n
\n
if not card_number:\n
return\n
\n
text = \' \'.join(context.getRegularExpressionFindAll(\'.{1,4}\', card_number))\n
\n
return text\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/nexedi/portal_skins/erp5_core/CreditCard_asText</string> </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>card_number</string>
<string>text</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>CreditCard_asText</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>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value> <string encoding="base64">O/INCg==</string> </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>if not text:\n
return context.setCardNumber(\'\')\n
\n
filtered_card_number = \'\'.join(context.getRegularExpressionFindAll(\'[0-9]+\', text))\n
\n
context.setCardNumber(filtered_card_number)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/nexedi/portal_skins/erp5_core/CreditCard_fromText</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>text</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>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>text</string>
<string>_getattr_</string>
<string>context</string>
<string>filtered_card_number</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>CreditCard_fromText</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -45,6 +45,12 @@
<tuple/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string>Base_edit</string> </value>
......@@ -61,11 +67,11 @@
<key> <string>group_list</string> </key>
<value>
<list>
<string>Left</string>
<string>Right</string>
<string>Center</string>
<string>Bottom</string>
<string>Hidden</string>
<string>left</string>
<string>right</string>
<string>center</string>
<string>bottom</string>
<string>hidden</string>
</list>
</value>
</item>
......@@ -74,13 +80,13 @@
<value>
<dictionary>
<item>
<key> <string>Bottom</string> </key>
<key> <string>bottom</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>Center</string> </key>
<key> <string>center</string> </key>
<value>
<list>
<string>my_description</string>
......@@ -88,29 +94,31 @@
</value>
</item>
<item>
<key> <string>Hidden</string> </key>
<key> <string>hidden</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>Left</string> </key>
<key> <string>left</string> </key>
<value>
<list>
<string>my_id</string>
<string>my_title</string>
<string>my_cardholder_name</string>
<string>my_source_title</string>
<string>my_start_date</string>
<string>my_stop_date</string>
<string>my_price_currency</string>
</list>
</value>
</item>
<item>
<key> <string>Right</string> </key>
<key> <string>right</string> </key>
<value>
<list>
<string>my_text</string>
<string>my_security_key</string>
<string>my_stop_date</string>
<string>my_creditcard_type</string>
<string>my_bank_code</string>
<string>my_bank_account_number</string>
<string>my_bank_account_key</string>
<string>my_bank_account_holder_name</string>
</list>
</value>
</item>
......@@ -127,12 +135,16 @@
</item>
<item>
<key> <string>name</string> </key>
<value> <string>CreditCard_view</string> </value>
<value> <string>Bank Account</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_view</string> </value>
</item>
<item>
<key> <string>rid</string> </key>
<value> <int>-1722436585</int> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
......@@ -143,7 +155,13 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Credit Card</string> </value>
<value> <string>Bank Account</string> </value>
</item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_cardholder_name</string> </value>
<value> <string>my_bank_account_holder_name</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_security_key</string> </value>
<value> <string>my_bank_account_key</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -211,7 +211,7 @@
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>10</int> </value>
<value> <int>5</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_text</string> </value>
<value> <string>my_bank_account_number</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -211,7 +211,7 @@
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>30</int> </value>
<value> <int>20</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_id</string> </value>
<value> <string>my_bank_code</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -207,15 +207,15 @@
</item>
<item>
<key> <string>display_maxwidth</string> </key>
<value> <string></string> </value>
<value> <int>5</int> </value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>30</int> </value>
<value> <int>8</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
......@@ -239,11 +239,11 @@
</item>
<item>
<key> <string>required</string> </key>
<value> <int>1</int> </value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>ID</string> </value>
<value> <string>Credit Card Type</string> </value>
</item>
<item>
<key> <string>truncate</string> </key>
......
......@@ -239,7 +239,7 @@
</item>
<item>
<key> <string>height</string> </key>
<value> <int>5</int> </value>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>hidden</string> </key>
......@@ -275,7 +275,7 @@
</item>
<item>
<key> <string>width</string> </key>
<value> <int>40</int> </value>
<value> <int>60</int> </value>
</item>
</dictionary>
</value>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_creditcard_type</string> </value>
<value> <string>my_price_currency</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -238,20 +238,7 @@
<item>
<key> <string>items</string> </key>
<value>
<list>
<tuple>
<string></string>
<string></string>
</tuple>
<tuple>
<string>Master Card</string>
<string>master_card</string>
</tuple>
<tuple>
<string>Visa</string>
<string>visa</string>
</tuple>
</list>
<list/>
</value>
</item>
<item>
......@@ -264,7 +251,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Credit Card Type</string> </value>
<value> <string>Currency</string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
......@@ -294,7 +281,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>here/portal_categories/creditcard_type/getCategoryChildLogicalPathItemList</string> </value>
<value> <string>python:here.CurrencyModule_getCurrencyItemList()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -124,7 +124,9 @@
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -211,7 +213,7 @@
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>20</int> </value>
<value> <int>30</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
......@@ -263,4 +265,23 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>here/Title</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -77,7 +77,6 @@
<value>
<list>
<string>listbox</string>
<string>credit_card_listbox</string>
</list>
</value>
</item>
......
......@@ -338,7 +338,7 @@
<string>ID</string>
</tuple>
<tuple>
<string>bban_text_format</string>
<string>bank_account_number</string>
<string>Number</string>
</tuple>
<tuple>
......@@ -468,6 +468,10 @@
<string>Bank Account</string>
<string>Bank Account</string>
</tuple>
<tuple>
<string>Credit Card</string>
<string>Credit Card</string>
</tuple>
</list>
</value>
</item>
......
2006-01-23 Alex
* simplified Bank Accounts
* added support for Portal Type Role Definitions
2006-01-23 JPS
......
......@@ -68,7 +68,7 @@ ChatAddress | translate
ChatAddress | view
Credit Card | history
Credit Card | metadata
Credit Card | print
Credit Card | print_pdf
Credit Card | view
Currency Exchange Line | history
Currency Exchange Line | metadata
......
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