コンテンツへスキップ
メニュー
この質問にフラグが付けられました

i am trying to modify a domain but i have first to understand the logic of this prefix expression :

                [('state', '=', 'validate'),
                                            '|', '|',
                                                '&',
                                                    ('supplier', '=', to_supplier), ('customer', '=', to_customer),
                                                '&',
                                                    ('supplier', '=', True), ('customer', '=', True),
                                                ('is_project', '=', True)]
                
i tried to convert it into infix expression (for my own understanding) so i got this :

('state', '=', 'validate'),[[('supplier', '=', to_supplier),'&' ('customer', '=', to_customer)],'|',[('supplier', '=', True),'&', ('customer', '=', True)], '|',
                                                ('is_project', '=', True)]
in a more simple way : prefix : A,|,|,&,B,C,&,D,E,F infix : A,(B&C | D&E| F) i don't know if this is right or no
アバター
破棄
関連投稿 返信 ビュー 活動
2
5月 24
2863
2
4月 15
5480
1
11月 24
2392
1
11月 22
3542
0
6月 21
6113