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 @@ ...@@ -106,7 +106,7 @@
<string>my_salary_coefficient</string> <string>my_salary_coefficient</string>
<string>my_salary_level</string> <string>my_salary_level</string>
<string>my_skill_list</string> <string>my_skill_list</string>
<string>my_state_title</string> <string>my_translated_validation_state_title</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<string>Products.ERP5Form.ProxyField</string> <tuple/>
<string>ProxyField</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -20,7 +17,7 @@ ...@@ -20,7 +17,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_state_title</string> </value> <value> <string>my_translated_validation_state_title</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="DCWorkflowDefinition" module="Products.DCWorkflow.DCWorkflow"/>
<string>Products.DCWorkflow.DCWorkflow</string> <tuple/>
<string>DCWorkflowDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -70,7 +67,7 @@ ...@@ -70,7 +67,7 @@
</item> </item>
<item> <item>
<key> <string>state_var</string> </key> <key> <string>state_var</string> </key>
<value> <string>state</string> </value> <value> <string>validation_state</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -80,10 +77,11 @@ active_careers = []\n ...@@ -80,10 +77,11 @@ active_careers = []\n
\n \n
# Count the number of opened career\n # Count the number of opened career\n
for career in person_object.contentValues(filter={\'portal_type\': \'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 active_careers.append(career.getTitleOrId())\n
\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 # 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 if len(active_careers) > 0:\n
raise ValidationFailed, "Error : current active career (\'" + "\', \'".join(active_careers) + "\') must be inactive"\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 2007-10-10 Kazuhiko
* add a read-only field of filename in File view and Image view. * add a read-only field of filename in File view and Image view.
......
208 210
\ 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