[Erp5-dev] own workflow state catalogged in own table, its translation - how to?

Jérome Perrin jerome at nexedi.com
Wed Sep 17 17:30:21 CEST 2008


Le mercredi 17 septembre 2008 à 14:29 +0000, Łukasz Nowak a écrit :
> (...)
> Body:
> 
> <dtml-var table_1>.original_message = <dtml-var table_0>.operation_state
>  AND <dtml-var table_1>.message_context = "operation_state_title"
>  AND <dtml-var table_1>.language = <dtml-sqlvar
> "Localizer.get_selected_language()" type="string">
>  AND <dtml-var table_0>.uid = catalog.uid
> 
> I wasn't able to do it without directly relating to catalog table
> (passing this as argument to not applies). But it is working, query runs
> quite fast and its src__=1 looks corrects.

Hello,

You don't have to hard code "catalog" there, it is passed to the Z SQL
Method as "query_table" argument. This mean you can replace "catalog" by
<dtml-var query_table>.

> So - this is that solution. Thank you Jerome for tip. Is that good
> enough for wikipage, or shall I wait for mentioned somewhere catalog
> configuration change?

Yes, it is good.

Jérome




More information about the Erp5-dev mailing list