def _traverse_command(self, name, *args, **kwargs):
        """
        Add the key to the args and call the Redis command.
        """
        if not name in self.available_commands:
            raise AttributeError("%s is not an available command for %s" %
                                 (name, self.__class__.__name__))
        attr = getattr(self.connection, "%s" % name)
        key = self.key
        log.debug(u"Requesting %s with key %s and args %s" % (name, key, args))
        result = attr(key, *args, **kwargs)
        result = self.post_command(
            sender=self,
            name=name,
            result=result,
            args=args,
            kwargs=kwargs
        )
        return result
def _traverse_command ( self , name , * args , ** kwargs ) : if not name in self . available_commands : raise AttributeError ( "%s is not an available command for %s" % ( name , self . __class__ . __name__ ) ) attr = getattr ( self . connection , "%s" % name ) key = self . key log . debug ( u"Requesting %s with key %s and args %s" % ( name , key , args ) ) result = attr ( key , * args , ** kwargs ) result = self . post_command ( sender = self , name = name , result = result , args = args , kwargs = kwargs ) return result
Add the key to the args and call the Redis command.