'Retrieves the value for a given key associated with a channel.'

def get_channel_value(self, channel, key):

    channel = Identifier(channel).lower()
    result = self.execute(u'SELECT    value    FROM    channel_values    WHERE    channel    =    ?    AND    key    =    ?', [channel, key]).fetchone()
    if (result is not None):
        result = result[0]
    return _deserialize(result)
