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