'Get an integer value for a given attribute.'

def get_int_value(self, name):

    summed_value = 0
    raw_value = self.value(name)
    try:
        for val in raw_value:
            summed_value *= 256
            summed_value += val
    except TypeError:
        pass
    return summed_value
