Commit fdd4abb9 authored by Ivan Tyagov's avatar Ivan Tyagov

Minor naming fix. Use 'your_' not 'my_' prefix for form fields.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12705 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d419c69d
......@@ -44,6 +44,10 @@
<key> <string>id</string> </key>
<value> <string>erp5_session_cache</string> </value>
</item>
<item>
<key> <string>isIndexable</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>last_id</string> </key>
<value> <string>2</string> </value>
......
......@@ -48,6 +48,10 @@
<key> <string>int_index</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>isIndexable</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Ram Cache</string> </value>
......
......@@ -40,6 +40,10 @@
<key> <string>id</string> </key>
<value> <string>portal_sessions</string> </value>
</item>
<item>
<key> <string>isIndexable</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
......
......@@ -77,7 +77,7 @@ form = context.WebSite_newCustomerAccountForm\n
\n
## extract customer details\n
person_kw = {}\n
field_prefix = \'field_my_\'\n
field_prefix = \'field_your_\'\n
person_kw[\'career_role\'] = \'internal\'\n
for key in form_kw.keys():\n
if key.startswith(field_prefix):\n
......@@ -96,7 +96,8 @@ if validated == False:\n
return form(validation_errors)\n
\n
## save customer\n
person_module = context.person_module\n
person_module = context.getPortalObject().person_module\n
\n
person = person_module.newContent(portal_type=\'Person\', **person_kw)\n
person.validate()\n
\n
......
......@@ -81,12 +81,7 @@
<item>
<key> <string>center</string> </key>
<value>
<list>
<string>my_bank_account_holder_name</string>
<string>my_bank_account_number</string>
<string>my_bank_code</string>
<string>my_stop_date</string>
</list>
<list/>
</value>
</item>
<item>
......@@ -94,17 +89,17 @@
<value>
<list>
<string>Title</string>
<string>my_first_name</string>
<string>my_last_name</string>
<string>my_default_email_text</string>
<string>my_default_telephone_text</string>
<string>my_default_fax_text</string>
<string>my_default_address_street_address</string>
<string>my_default_address_city</string>
<string>my_default_address_zip_code</string>
<string>my_default_address_region</string>
<string>my_reference</string>
<string>my_password</string>
<string>your_first_name</string>
<string>your_last_name</string>
<string>your_default_email_text</string>
<string>your_default_telephone_text</string>
<string>your_default_fax_text</string>
<string>your_default_address_street_address</string>
<string>your_default_address_city</string>
<string>your_default_address_zip_code</string>
<string>your_default_address_region</string>
<string>your_reference</string>
<string>your_password</string>
<string>password_confirm</string>
<string>submit</string>
</list>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_default_address_city</string> </value>
<value> <string>your_default_address_city</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_default_address_region</string> </value>
<value> <string>your_default_address_region</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_default_address_street_address</string> </value>
<value> <string>your_default_address_street_address</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_default_address_zip_code</string> </value>
<value> <string>your_default_address_zip_code</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_default_email_text</string> </value>
<value> <string>your_default_email_text</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_default_fax_text</string> </value>
<value> <string>your_default_fax_text</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_default_telephone_text</string> </value>
<value> <string>your_default_telephone_text</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_first_name</string> </value>
<value> <string>your_first_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_last_name</string> </value>
<value> <string>your_last_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_password</string> </value>
<value> <string>your_password</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_reference</string> </value>
<value> <string>your_reference</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......
......@@ -49,7 +49,6 @@
<value> <string encoding="cdata"><![CDATA[
<tal:block tal:define="customer here/SaleOrder_getShoppingCartCustomer">\n
\n
<!-- TO BE IMPLEMENTED\n
Person id: <span tal:content="customer/getId"/> <br/>\n
Name: <span tal:content="customer/getTitle"/> <br/>\n
......
42
\ No newline at end of file
46
\ 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