Ausertung von schleifen und Helperfunktionen ergänzt in extract.py
This commit is contained in:
@@ -57,6 +57,20 @@
|
||||
"method": "__register__",
|
||||
"line": 92,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_cron"
|
||||
],
|
||||
"line": 100,
|
||||
"args": [
|
||||
"column"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.drop_column(column)",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
|
||||
@@ -236,6 +236,37 @@
|
||||
},
|
||||
"code": "table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit'))",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_identifier"
|
||||
],
|
||||
"line": 793,
|
||||
"args": [
|
||||
"*table.update([table.type], [new], where=table.type == old)"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.type], [new],\n where=table.type == old))",
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_identifier"
|
||||
],
|
||||
"line": 793,
|
||||
"args": [
|
||||
"[table.type]",
|
||||
"[new]"
|
||||
],
|
||||
"kwargs": {
|
||||
"where": "table.type == old"
|
||||
},
|
||||
"code": "table.update(\n [table.type], [new],\n where=table.type == old)",
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -36,6 +36,67 @@
|
||||
"code": "template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template)",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 89,
|
||||
"args": [
|
||||
"*template_lot_type.join(lot_type, condition=template_lot_type.type == lot_type.id).select(lot_type.code, where=template_lot_type.template == template_id)"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "(connection.cursor()).execute(*template_lot_type\n .join(lot_type,\n condition=template_lot_type.type == lot_type.id)\n .select(\n lot_type.code,\n where=template_lot_type.template == template_id))",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
{
|
||||
"object": "template_lot_type.join(lot_type, condition=template_lot_type.type == lot_type.id)",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 89,
|
||||
"args": [
|
||||
"lot_type.code"
|
||||
],
|
||||
"kwargs": {
|
||||
"where": "template_lot_type.template == template_id"
|
||||
},
|
||||
"code": "template_lot_type\n .join(lot_type,\n condition=template_lot_type.type == lot_type.id)\n .select(\n lot_type.code,\n where=template_lot_type.template == template_id)",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_template"
|
||||
],
|
||||
"line": 96,
|
||||
"args": [
|
||||
"*table.update([table.lot_required], [value], where=table.id == template_id)"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "(connection.cursor()).execute(*table.update(\n [table.lot_required], [(cls.lot_required.sql_format([t for t, in cursor]))],\n where=table.id == template_id))",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"product_template"
|
||||
],
|
||||
"line": 96,
|
||||
"args": [
|
||||
"[table.lot_required]",
|
||||
"[value]"
|
||||
],
|
||||
"kwargs": {
|
||||
"where": "table.id == template_id"
|
||||
},
|
||||
"code": "table.update(\n [table.lot_required], [(cls.lot_required.sql_format([t for t, in cursor]))],\n where=table.id == template_id)",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user