def generateChildElements (self) : containerChild = self.element.recordContainer containerName = containerChild.name recordNameChild = self.element.recordName propertyW = pw.Property(self.generated, recordNameChild, (self.parentObjectPath + self.objectPathSuffix + "/" + containerName), self.languageSetName) propertyW.generate() container = cw.Container(self.generated, containerChild, (self.parentObjectPath + self.objectPathSuffix), self.languageSetName) container.generate()
generated.setControlDeviceData(o.root.controlPanelDevice.name, o.root.controlPanelDevice.headerCode) generated.setLanguageSets(o.root.controlPanelDevice.languageSet) ### Get and process HttpControlElements if hasattr(o.root.controlPanelDevice, "url"): httpControl = http.HttpControl(generated, o.root.controlPanelDevice.url) httpControl.generate() ### Get and process all ControlPanels if hasattr(o.root.controlPanelDevice, "controlPanels"): for cp in o.root.controlPanelDevice.controlPanels.controlPanel: generated.addControlPanel(cp.rootContainer) container = cw.Container( generated, cp.rootContainer, generated.ObjectPathPrefix + cp.rootContainer.name + "/REPLACE_LANG", cp.attr["languageSet"], 1) container.generate() ### Get and process all NotificationAction if hasattr(o.root.controlPanelDevice, "notificationActions"): if hasattr(o.root.controlPanelDevice.notificationActions, "dialog"): for notDialog in o.root.controlPanelDevice.notificationActions.dialog: generated.addNotificationAction(notDialog) dialog = dw.Dialog( generated, notDialog, generated.ObjectPathPrefix + notDialog.name + "/REPLACE_LANG", notDialog.attr["languageSet"], 1) dialog.generate() if hasattr(o.root.controlPanelDevice.notificationActions, "container"): for notContainer in o.root.controlPanelDevice.notificationActions.container:
generated.confirmGenerate() generated.initializeFiles() generated.setControlDeviceData(o.root.controlPanelDevice.name, o.root.controlPanelDevice.headerCode) generated.setLanguageSets(o.root.controlPanelDevice.languageSet) ### Get and process HttpControlElements if hasattr(o.root.controlPanelDevice, "url") : httpControl = http.HttpControl(generated, o.root.controlPanelDevice.url) httpControl.generate() ### Get and process all ControlPanels if hasattr(o.root.controlPanelDevice, "controlPanels") : for cp in o.root.controlPanelDevice.controlPanels.controlPanel : generated.addControlPanel(cp.rootContainer, cp.attr["languageSet"]) container = cw.Container(generated, cp.rootContainer, cp.rootContainer.name + "ControlPanel", cp.attr["languageSet"], 1) container.generate() ### Get and process all NotificationAction if hasattr(o.root.controlPanelDevice, "notificationActions") : if hasattr(o.root.controlPanelDevice.notificationActions, "dialog") : for notDialog in o.root.controlPanelDevice.notificationActions.dialog : generated.addNotificationAction(notDialog, notDialog.attr["languageSet"]) dialog = dw.Dialog(generated, notDialog, notDialog.name + "NotificationAction", notDialog.attr["languageSet"], 1) dialog.generate() if hasattr(o.root.controlPanelDevice.notificationActions, "container") : for notContainer in o.root.controlPanelDevice.notificationActions.container : generated.addNotificationAction(notContainer, notContainer.attr["languageSet"]) container = cw.Container(generated, notContainer, notContainer.name + "NotificationAction", notContainer.attr["languageSet"], 1) container.generate()
o.root.controlPanelDevice.headerCode) generated.setLanguageSets(o.root.controlPanelDevice.languageSet) ### Get and process HttpControlElements if hasattr(o.root.controlPanelDevice, "url"): httpControl = http.HttpControl(generated, o.root.controlPanelDevice.url) httpControl.generate() ### Get and process all ControlPanels if hasattr(o.root.controlPanelDevice, "controlPanels"): for cp in o.root.controlPanelDevice.controlPanels.controlPanel: generated.addControlPanel(cp.rootContainer, cp.attr["languageSet"]) parentName = generated.unitName + cp.rootContainer.name[:1].upper( ) + cp.rootContainer.name[1:] + "ControlPanel" container = cw.Container(generated, cp.rootContainer, parentName, cp.attr["languageSet"], 1) container.generate() ### Get and process all NotificationAction if hasattr(o.root.controlPanelDevice, "notificationActions"): if hasattr(o.root.controlPanelDevice.notificationActions, "dialog"): for notDialog in o.root.controlPanelDevice.notificationActions.dialog: generated.addNotificationAction(notDialog, notDialog.attr["languageSet"]) parentName = generated.unitName + notDialog.name[:1].upper( ) + notDialog.name[1:] + "NotificationAction" dialog = dw.Dialog(generated, notDialog, parentName, notDialog.attr["languageSet"], 1) dialog.generate() if hasattr(o.root.controlPanelDevice.notificationActions, "container"): for notContainer in o.root.controlPanelDevice.notificationActions.container: