Commit 1b5b2386 authored by Fabien Morin's avatar Fabien Morin

2009-01-21 fabien

* remove unused field base_amount_list
* change error messages in PaySheetTransaction_checkParameters to be consistant with other translations
* translate a message in PaySheetModelLine_asCellRange

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25227 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5d9f57b5
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
\'\'\'\n \'\'\'\n
return a list of slice items\n return a list of slice items\n
\'\'\'\n \'\'\'\n
translateString = context.Base_translateString\n
\n \n
def framing(cell, name):\n def framing(cell, name):\n
\'\'\'\n \'\'\'\n
...@@ -68,14 +69,12 @@ def framing(cell, name):\n ...@@ -68,14 +69,12 @@ def framing(cell, name):\n
if cell is None:\n if cell is None:\n
# This error happens when the cell is not found in the parent model or any\n # This error happens when the cell is not found in the parent model or any\n
# inherited model.\n # inherited model.\n
return "%s (slice not defined)" % name\n return "%s (%s)" % (name, translateString(\'slice not defined\'))\n
\n \n
return \'%s <= %s < %s\' % (cell.getQuantityRangeMin(),\n return \'%s <= %s < %s\' % (cell.getQuantityRangeMin(),\n
name,\n name,\n
cell.getQuantityRangeMax())\n cell.getQuantityRangeMax())\n
\n \n
\n
translateString = context.Base_translateString\n
resource = context.getResourceValue()\n resource = context.getResourceValue()\n
cell_range = []\n cell_range = []\n
\n \n
...@@ -110,6 +109,8 @@ else:\n ...@@ -110,6 +109,8 @@ else:\n
list_of_category_list.append(\\\n list_of_category_list.append(\\\n
context.getVariationCategoryList(base_category_list=base_category))\n context.getVariationCategoryList(base_category_list=base_category))\n
return list_of_category_list\n return list_of_category_list\n
\n
return []\n
]]></string> </value> ]]></string> </value>
...@@ -151,10 +152,10 @@ else:\n ...@@ -151,10 +152,10 @@ else:\n
<string>matrixbox</string> <string>matrixbox</string>
<string>base_id</string> <string>base_id</string>
<string>kw</string> <string>kw</string>
<string>framing</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>translateString</string> <string>translateString</string>
<string>framing</string>
<string>resource</string> <string>resource</string>
<string>cell_range</string> <string>cell_range</string>
<string>None</string> <string>None</string>
......
...@@ -115,7 +115,6 @@ ...@@ -115,7 +115,6 @@
<key> <string>right</string> </key> <key> <string>right</string> </key>
<value> <value>
<list> <list>
<string>my_base_amount_list</string>
<string>my_variation_category_list</string> <string>my_variation_category_list</string>
<string>my_base_contribution_list</string> <string>my_base_contribution_list</string>
<string>my_base_application_list</string> <string>my_base_application_list</string>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_base_amount_list</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>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>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_base_amount_list</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>PaySheetTransaction_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -61,6 +61,7 @@ paysheet = context.getObject()\n ...@@ -61,6 +61,7 @@ paysheet = context.getObject()\n
paysheet_type = paysheet.getPortalType()\n paysheet_type = paysheet.getPortalType()\n
employer = paysheet.getDestinationSection()\n employer = paysheet.getDestinationSection()\n
employee = paysheet.getSourceSection()\n employee = paysheet.getSourceSection()\n
quantity_unit = paysheet.getWorkTimeAnnotationLineQuantityUnit()\n
\n \n
Base_translateString = context.Base_translateString\n Base_translateString = context.Base_translateString\n
\n \n
...@@ -69,16 +70,22 @@ def redirect(msg):\n ...@@ -69,16 +70,22 @@ def redirect(msg):\n
keep_items=dict(portal_status_message=Base_translateString(msg)))\n keep_items=dict(portal_status_message=Base_translateString(msg)))\n
\n \n
if not paysheet.getPriceCurrency():\n if not paysheet.getPriceCurrency():\n
return redirect(\'Currency is required\')\n return redirect(\'Currency must be defined\')\n
\n \n
if not paysheet.getStartDate():\n if not paysheet.getStartDate():\n
return redirect(\'Date is required\')\n return redirect(\'Work Period Start must be defined\')\n
\n
if not paysheet.getStopDate():\n
return redirect(\'Work Period End must be defined\')\n
\n \n
if not employee:\n if not employee:\n
return redirect(\'The employee is required\')\n return redirect(\'The employee must be defined\')\n
\n \n
if not employer:\n if not employer:\n
return redirect(\'The employer is required\')\n return redirect(\'The employer must be defined\')\n
\n
if not quantity_unit:\n
return redirect(\'The work duration unit must be defined\')\n
\n \n
employer_obj = paysheet.getDestinationSectionValue()\n employer_obj = paysheet.getDestinationSectionValue()\n
employee_obj = paysheet.getSourceSectionValue()\n employee_obj = paysheet.getSourceSectionValue()\n
...@@ -136,6 +143,7 @@ return context.PaySheetTransaction_viewPreview(container.REQUEST)\n ...@@ -136,6 +143,7 @@ return context.PaySheetTransaction_viewPreview(container.REQUEST)\n
<string>paysheet_type</string> <string>paysheet_type</string>
<string>employer</string> <string>employer</string>
<string>employee</string> <string>employee</string>
<string>quantity_unit</string>
<string>Base_translateString</string> <string>Base_translateString</string>
<string>redirect</string> <string>redirect</string>
<string>employer_obj</string> <string>employer_obj</string>
......
2009-01-21 fabien
* remove unused field base_amount_list
* change error messages in PaySheetTransaction_checkParameters to be consistant with other translations
* translate a message in PaySheetModelLine_asCellRange
2009-01-16 fabien 2009-01-16 fabien
* add a checkbox on Pay Sheet Model Line to create or not the related Pay Sheet Line * add a checkbox on Pay Sheet Model Line to create or not the related Pay Sheet Line
......
337 339
\ 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