support python 3.2
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
from __future__ import print_function
|
||||
|
||||
class MySup(object):
|
||||
def __init__(self, rec):
|
||||
print rec, rec.field('VAL').fieldinfo()
|
||||
print 'VAL', rec.VAL
|
||||
print(rec, rec.field('VAL').fieldinfo())
|
||||
print('VAL', rec.VAL)
|
||||
def process(self, rec, reason):
|
||||
rec.VAL = 1+rec.VAL
|
||||
def detach(self, rec):
|
||||
print 'test1 detach',rec.name()
|
||||
print('test1 detach',rec.name())
|
||||
|
||||
def build(rec, args):
|
||||
print 'test1 build for',rec.name()
|
||||
print('test1 build for',rec.name())
|
||||
return MySup(rec)
|
||||
|
||||
Reference in New Issue
Block a user