Łukasz Nowak
2008-04-16 16:21:39 UTC
Hello,
On 2008-04-16, 15:39:16
not to hardcode workflow ids and similar in code?
Would it be possible to have some kind of configuration, like
'default_accounting_workflow' somewhere or fetching possible state
list based on object/portal type? I seen many commits, which was
avoiding workflow id hardcoding after some requests, but right now this
habit is coming back...
Regards,
Luke
On 2008-04-16, 15:39:16
Author: aurel
Date: Wed Apr 16 17:39:15 2008
New Revision: 20588
<dictionary>
<item>
<key> <string>_text</string> </key>
- <value>
<string>preferences/getPreferredAccountingTransactionSimulationStateList</string>
</value>
+ <value>
<string>python:here.Base_getTranslatedWorkflowStateItemList(wf_id=\'accounting_workflow\')</string>
</value> </item> </dictionary>
</pickle>
I'd like to know, if is it possible to have some kind of convention, toDate: Wed Apr 16 17:39:15 2008
New Revision: 20588
<dictionary>
<item>
<key> <string>_text</string> </key>
- <value>
<string>preferences/getPreferredAccountingTransactionSimulationStateList</string>
</value>
+ <value>
<string>python:here.Base_getTranslatedWorkflowStateItemList(wf_id=\'accounting_workflow\')</string>
</value> </item> </dictionary>
</pickle>
not to hardcode workflow ids and similar in code?
Would it be possible to have some kind of configuration, like
'default_accounting_workflow' somewhere or fetching possible state
list based on object/portal type? I seen many commits, which was
avoiding workflow id hardcoding after some requests, but right now this
habit is coming back...
Regards,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.