@classmethod
def get_by_name(self, component_name):
    'Fetch blink component with given name.'
    q = self.all()
    q.filter('name =', component_name)
    component = q.fetch(1)
    if (not component):
        logging.error(('%s is an unknown BlinkComponent.' % component_name))
        return None
    return component[0]
Fetch blink component with given name.
@classmethod
def get_by_name(self, component_name):
    
    q = self.all()
    q.filter('name =', component_name)
    component = q.fetch(1)
    if (not component):
        logging.error(('%s is an unknown BlinkComponent.' % component_name))
        return None
    return component[0]