# __ASG_myTest.py_____________________________________________________ from ASG import * from ATOM3Type import * from ATOM3String import * class ASG_myTest(ASG, ATOM3Type): def __init__(self, parent= None, ASGroot = None): ASG.__init__(self, 'myTest', ASGroot, ['ASG_myTest' ,'aTest']) ATOM3Type.__init__(self) self.parent = parent self.author=ATOM3String('') self.name=ATOM3String('') self.generatedAttributes = {'author': ('ATOM3String', ), 'name': ('ATOM3String', ) } self.realOrder = ['author','name'] def clone(self): return self def copy(self, other): ATOM3Type.copy(self, other) for atr in self.realOrder: self.setAttrValue(atr, other.getAttrValue(atr) ) def open(self, parent, topWindowParent): from ATOM3 import * a = ATOM3(topWindowParent, 'myTest', 0, 1, self) #self.writeContents(a) return a def preCondition (self, actionID, * params): if self.graphObject_: return self.graphObject_.preCondition(actionID, params) else: return None def postCondition (self, actionID, * params): if self.graphObject_: return self.graphObject_.postCondition(actionID, params) else: return None