Table Relationship Options (Python)

Table Relationship Options (Python)
 1ot = impact.gui.output_toolbox
 2
 3ot.clear()
 4db = impact.active_database
 5opts = db.settings.table_relationship_options
 6
 7ot.add("Using customer Groups: " + str(opts.use_customer_groups))
 8
 9if opts.use_customer_groups:
10
11    ot.add("  Relationship: " + opts.customer_group_relationship.formatted_name)
12    ot.add("  Display Column: " + opts.customer_group_display_column.name)
13    ot.add("  IsGroup SQL: " + opts.customer_group_is_group_sql)
14    ot.add("  Terminology: '" + opts.customer_group_terminology + "'")
15
16    ot.add("  Terminology (fr): '" + opts.customer_group_terminology_translated("fr", True) + "'")