Get the value

def get(self):
        """Get the value"""
        val = self.db.get_attributes(self.id, consistent_read=True)
        if val:
            if val.has_key('timestamp'):
                self.timestamp = val['timestamp']
            if val.has_key('current_value'):
                self._value = self.item_type(val['current_value'])
            if val.has_key("last_value") and val['last_value'] != None:
                self.last_value = self.item_type(val['last_value'])
        return self._value