File: normal.py

package info (click to toggle)
pyxb 1.2.6%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 42,668 kB
  • sloc: python: 239,437; sh: 905; xml: 690; makefile: 60
file content (21 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Demonstrate alternatives for bindings customization
# Traditional customization
from raw.custom import *
import raw.custom as raw_custom

class ta0 (raw_custom.ta0):
    def xa0 (self):
        return 'extend ta0'
raw_custom.ta0._SetSupersedingClass(ta0)

class tc01 (raw_custom.tc01):
    def xc01 (self):
        return 'extend tc01'
raw_custom.tc01._SetSupersedingClass(tc01)

class tc02 (raw_custom.tc02, ta0):
    def xc02 (self):
        return 'extend tc02'
raw_custom.tc02._SetSupersedingClass(tc02)

# class tc03 left as original