[Erp5-dev] [Erp5-report] r20588 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...

Łukasz Nowak lukasz.nowak at ventis.com.pl
Wed Apr 16 18:21:39 CEST 2008


Hello,

On 2008-04-16, 15:39:16
nobody at svn.erp5.org wrote:

> 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, to
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.



More information about the Erp5-dev mailing list