From aaf8bdbee7fdc1d4721f43307fc824c373c69ec4 Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Mon, 10 Jan 2011 23:24:02 -0500 Subject: some improvements to behavior chain. A "Square" Behavior --- LightInstallation.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'LightInstallation.py') diff --git a/LightInstallation.py b/LightInstallation.py index aaedcf2..2726005 100644 --- a/LightInstallation.py +++ b/LightInstallation.py @@ -79,12 +79,8 @@ class LightInstallation: self.renderers = self.initializeComponent(rendererConfig) def registerComponents(self, components): for component in components: - cid = component['Id'] - if cid == None: #TODO: determine if componenent is critical, and if so, die - main_log.error('Components must be registered with Ids. Component not registered') - else: - compReg.registerComponent(component) - main_log.debug(cid + ' registered') + cid = compReg.registerComponent(component) + main_log.debug(cid + ' registered') def initializeComponent(self, config): components = [] if config != None: -- cgit v1.2.3