def get(self, part):
        """
        Retrieves a part of the model from redis and stores it.

        :param part: The part of the model to retrieve.
        :raises RedisORMException: If the redis type is different from string
            or list (the only two supported types at this time.)
        """
        redis_key = ':'.join([self.namespace, self.key, part])

        objectType = self.conn.type(redis_key)
        if objectType == "string":
            self._data[part] = self.conn.get(redis_key)

        elif objectType == "list":
            self._data[part] = RedisList(redis_key, self.conn)

        else:
            raise RedisORMException("Other types besides string and list are unsupported at this time.")
def get ( self , part ) : redis_key = ':' . join ( [ self . namespace , self . key , part ] ) objectType = self . conn . type ( redis_key ) if objectType == "string" : self . _data [ part ] = self . conn . get ( redis_key ) elif objectType == "list" : self . _data [ part ] = RedisList ( redis_key , self . conn ) else : raise RedisORMException ( "Other types besides string and list are unsupported at this time." )
Retrieves a part of the model from redis and stores it.

        :param part: The part of the model to retrieve.
        :raises RedisORMException: If the redis type is different from string
            or list (the only two supported types at this time.)