extractor erstmal fertig

- er findet fast alle tabellen
- quellcode wird entpackt wenn er in einer variable ist
This commit is contained in:
2026-08-09 00:47:23 +02:00
parent 24caf23986
commit d4337ad1a5
116 changed files with 887 additions and 864 deletions
+6 -6
View File
@@ -44,7 +44,7 @@
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))"
],
"kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))",
"code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null)))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -61,7 +61,7 @@
"table.select(table.id, table.main_company, where=table.main_company != Null)"
],
"kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))",
"code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -79,7 +79,7 @@
"kwargs": {
"where": "table.main_company != Null"
},
"code": "table.select(table.id, table.main_company, where=table.main_company != Null)",
"code": "table.select(\n table.id, table.main_company,\n where=table.main_company != Null)",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -95,7 +95,7 @@
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
],
"kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))",
"code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -112,7 +112,7 @@
"table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))"
],
"kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))",
"code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company)))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -130,7 +130,7 @@
"kwargs": {
"where": "(table.company != Null) & (table.company != table.main_company)"
},
"code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))",
"code": "table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
+4 -4
View File
@@ -19,7 +19,7 @@
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
],
"kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))",
"code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super"
},
{
@@ -33,7 +33,7 @@
"kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)"
},
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))",
"code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super"
}
]
@@ -55,7 +55,7 @@
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
],
"kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))",
"code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super"
},
{
@@ -69,7 +69,7 @@
"kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)"
},
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))",
"code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super"
},
{
+2 -2
View File
@@ -19,7 +19,7 @@
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
],
"kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))",
"code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__)))",
"phase": "after_super"
},
{
@@ -33,7 +33,7 @@
"kwargs": {
"where": "(data.module == 'currency') & (data.model == cls.__name__)"
},
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))",
"code": "data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__))",
"phase": "after_super"
},
{
+18 -18
View File
@@ -88,7 +88,7 @@
"*table.update([table.user], [table.create_uid])"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.user], [table.create_uid]))",
"code": "(Transaction().connection.cursor()).execute(*table.update([table.user], [table.create_uid]))",
"phase": "after_super",
"condition": "not user_exists"
},
@@ -159,7 +159,7 @@
"*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id))",
"code": "(transaction.connection.cursor()).execute(*table.update(\n [table.model], [model.model],\n from_=[model],\n where=table._temp_model == model.id))",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
@@ -178,7 +178,7 @@
"from_": "[model]",
"where": "table._temp_model == model.id"
},
"code": "table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)",
"code": "table.update(\n [table.model], [model.model],\n from_=[model],\n where=table._temp_model == model.id)",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
@@ -248,7 +248,7 @@
"*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id))",
"code": "(transaction.connection.cursor()).execute(*table.update(\n [table.model], [model.model],\n from_=[model],\n where=table._temp_model == model.id))",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
@@ -267,7 +267,7 @@
"from_": "[model]",
"where": "table._temp_model == model.id"
},
"code": "table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)",
"code": "table.update(\n [table.model], [model.model],\n from_=[model],\n where=table._temp_model == model.id)",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
@@ -353,7 +353,7 @@
"*table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id))",
"code": "(transaction.connection.cursor()).execute(*table.update(\n [table.model, table.field],\n [field.model, field.name],\n from_=[field],\n where=table._temp_field == field.id))",
"phase": "before_super",
"condition": "table_h.column_exist('field') and table_h.column_is_type('field', 'INTEGER')"
},
@@ -372,7 +372,7 @@
"from_": "[field]",
"where": "table._temp_field == field.id"
},
"code": "table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id)",
"code": "table.update(\n [table.model, table.field],\n [field.model, field.name],\n from_=[field],\n where=table._temp_field == field.id)",
"phase": "before_super",
"condition": "table_h.column_exist('field') and table_h.column_is_type('field', 'INTEGER')"
},
@@ -442,7 +442,7 @@
"*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id))",
"code": "(transaction.connection.cursor()).execute(*table.update(\n [table.model], [model.model],\n from_=[model],\n where=table._temp_model == model.id))",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
@@ -461,7 +461,7 @@
"from_": "[model]",
"where": "table._temp_model == model.id"
},
"code": "table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)",
"code": "table.update(\n [table.model], [model.model],\n from_=[model],\n where=table._temp_model == model.id)",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
@@ -592,7 +592,7 @@
"*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id))",
"code": "(transaction.connection.cursor()).execute(*table.update(\n [table.model], [model.model],\n from_=[model],\n where=table._temp_model == model.id))",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
@@ -611,7 +611,7 @@
"from_": "[model]",
"where": "table._temp_model == model.id"
},
"code": "table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)",
"code": "table.update(\n [table.model], [model.model],\n from_=[model],\n where=table._temp_model == model.id)",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
@@ -674,7 +674,7 @@
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)))",
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)))",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
@@ -691,7 +691,7 @@
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
],
"kwargs": {},
"code": "table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))",
"code": "table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code))",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
@@ -708,7 +708,7 @@
"kwargs": {
"where": "sequence_type.code == table.code"
},
"code": "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)",
"code": "sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
@@ -786,7 +786,7 @@
"kwargs": {
"where": "model.id == sql_table.action_model"
},
"code": "model.select(model.model, where=model.id == sql_table.action_model)",
"code": "model.select(\n model.model, where=model.id == sql_table.(model.select(\n model.model, where=model.id == sql_table.action_model)))",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
@@ -801,7 +801,7 @@
"*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))]))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))]))",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
@@ -817,7 +817,7 @@
"[Concat(action_model, Concat('|', sql_table.action_function))]"
],
"kwargs": {},
"code": "sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])",
"code": "sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))])",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
@@ -832,7 +832,7 @@
"'action_model'"
],
"kwargs": {},
"code": "table_h.drop_column('action_model')",
"code": "table_h.drop_column('(model.select(\n model.model, where=model.id == sql_table.action_model))')",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
+10 -10
View File
@@ -44,7 +44,7 @@
"country.select(country.code, where=country.id == table.country)"
],
"kwargs": {},
"code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))",
"code": "table.update(\n [table.country_code],\n country.select(\n country.code,\n where=country.id == table.country))",
"phase": "after_super",
"condition": "table_h.column_exist('country')"
},
@@ -61,7 +61,7 @@
"kwargs": {
"where": "country.id == table.country"
},
"code": "country.select(country.code, where=country.id == table.country)",
"code": "country.select(\n country.code,\n where=country.id == table.country)",
"phase": "after_super",
"condition": "table_h.column_exist('country')"
},
@@ -74,7 +74,7 @@
"*query"
],
"kwargs": {},
"code": "cursor.execute(*query)",
"code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super",
"condition": "table_h.column_exist('country')"
},
@@ -106,7 +106,7 @@
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
],
"kwargs": {},
"code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))",
"code": "table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))",
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
@@ -123,7 +123,7 @@
"kwargs": {
"where": "language.id == table.language"
},
"code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)",
"code": "language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language)",
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
@@ -136,7 +136,7 @@
"*query"
],
"kwargs": {},
"code": "cursor.execute(*query)",
"code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
@@ -174,7 +174,7 @@
"*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)]))",
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.identifier_types],\n [cls.identifier_types.sql_format(identifier_types)]\n ))",
"phase": "after_super",
"condition": "configuration.identifier_types != identifier_types"
},
@@ -190,7 +190,7 @@
"[cls.identifier_types.sql_format(identifier_types)]"
],
"kwargs": {},
"code": "table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])",
"code": "table.update(\n [table.identifier_types],\n [cls.identifier_types.sql_format(identifier_types)]\n )",
"phase": "after_super",
"condition": "configuration.identifier_types != identifier_types"
}
@@ -237,7 +237,7 @@
"*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))",
"code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit')))",
"phase": "after_super"
},
{
@@ -254,7 +254,7 @@
"kwargs": {
"where": "table.type == 'cn_rit'"
},
"code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')",
"code": "table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit'))",
"phase": "after_super"
}
]
+2 -2
View File
@@ -19,7 +19,7 @@
"*table.update([table.suffix_code], [table.code])"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.suffix_code], [table.code]))",
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.suffix_code],\n [table.code]))",
"phase": "after_super",
"condition": "fill_suffix_code"
},
@@ -35,7 +35,7 @@
"[table.code]"
],
"kwargs": {},
"code": "table.update([table.suffix_code], [table.code])",
"code": "table.update(\n [table.suffix_code],\n [table.code])",
"phase": "after_super",
"condition": "fill_suffix_code"
}
+4 -4
View File
@@ -57,7 +57,7 @@
"*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron'))",
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.method], ['ir.cron|stock_shipment_assign_try'],\n where=table.method == 'production|assign_cron'))",
"phase": "after_super"
},
{
@@ -74,7 +74,7 @@
"kwargs": {
"where": "table.method == 'production|assign_cron'"
},
"code": "table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')",
"code": "table.update(\n [table.method], ['ir.cron|stock_shipment_assign_try'],\n where=table.method == 'production|assign_cron')",
"phase": "after_super"
}
]
@@ -112,7 +112,7 @@
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))",
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel'))",
"phase": "after_super"
},
{
@@ -129,7 +129,7 @@
"kwargs": {
"where": "table.state == 'cancel'"
},
"code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')",
"code": "table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel')",
"phase": "after_super"
}
]
+2 -2
View File
@@ -19,7 +19,7 @@
"*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))"
],
"kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')))",
"code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin')))",
"phase": "after_super"
},
{
@@ -36,7 +36,7 @@
"kwargs": {
"where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')"
},
"code": "model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))",
"code": "model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin'))",
"phase": "after_super"
}
]
+2 -2
View File
@@ -17,7 +17,7 @@
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
],
"kwargs": {},
"code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))",
"code": "(connection.cursor()).execute(*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)"
},
@@ -32,7 +32,7 @@
"kwargs": {
"distinct_on": "template_lot_type.template"
},
"code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)",
"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)"
}