Commit 0c06dfe5 authored by Jérome Perrin's avatar Jérome Perrin

2007-10-24 Jerome

* rename career workflow state variable in 'validation_state'

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17169 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1c143ee4
......@@ -106,7 +106,7 @@
<string>my_salary_coefficient</string>
<string>my_salary_level</string>
<string>my_skill_list</string>
<string>my_state_title</string>
<string>my_translated_validation_state_title</string>
</list>
</value>
</item>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.ProxyField</string>
<string>ProxyField</string>
</tuple>
<none/>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -20,7 +17,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_state_title</string> </value>
<value> <string>my_translated_validation_state_title</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.DCWorkflow</string>
<string>DCWorkflowDefinition</string>
</tuple>
<none/>
<global name="DCWorkflowDefinition" module="Products.DCWorkflow.DCWorkflow"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -70,7 +67,7 @@
</item>
<item>
<key> <string>state_var</string> </key>
<value> <string>state</string> </value>
<value> <string>validation_state</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -80,10 +77,11 @@ active_careers = []\n
\n
# Count the number of opened career\n
for career in person_object.contentValues(filter={\'portal_type\': \'Career\'}):\n
if career.getState() == \'open\':\n
if career.getValidationState() == \'open\':\n
active_careers.append(career.getTitleOrId())\n
\n
# There is at least one open career, so we can\'t open a new one until the current one is inactive (closed or cancelled)\n
# XXX is this check really needed ?\n
if len(active_careers) > 0:\n
raise ValidationFailed, "Error : current active career (\'" + "\', \'".join(active_careers) + "\') must be inactive"\n
......
2007-10-24 Jerome
* rename career workflow state variable in 'validation_state'
2007-10-10 Kazuhiko
* add a read-only field of filename in File view and Image view.
......
208
\ No newline at end of file
210
\ 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