def __init__(self, id=None, name=None, parent=None, parentHandler=None, initScripts=None, **kwargs): ElementControl.__init__(self, id, name, parent, parentHandler, initScripts, **kwargs) templateDefinition = TemplateElement(template=self.template, factory=self.elementFactory) for control in templateDefinition.allChildren(): if isinstance(control, PageControl): self.registerControl(control.__class__)
def _postConnections(self): """ After all connections are made we automatically cache replacement actions where possible. """ templateDefinition = TemplateElement(template=self.template, factory=self.elementFactory) for control in templateDefinition.allChildren(): if isinstance(control, PageControl): self.registerControl(control.__class__) if isinstance(control, PageControlPlacement): self.autoRegister.append((control.id, self._findRelativeControl(control.control)))
def _postConnections(self): """ After all connections are made we automatically cache replacement actions where possible. """ templateDefinition = TemplateElement(template=self.template, factory=self.elementFactory) for control in templateDefinition.allChildren(): if isinstance(control, PageControl): self.registerControl(control.__class__) if isinstance(control, PageControlPlacement): self.autoRegister.append( (control.id, self._findRelativeControl(control.control)))