def has_perm(self, perm):
        if not self.is_active:
            return False
        if self.is_superuser:
            return True
        return perm in self.get_all_permissions()
Sets the datacenter and rack for this node. Intended for internal
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/contrib/auth/models.py/User.has_perm--crossover with--dataset/ETHPy150Open datastax/python-driver/cassandra/pool.py/Host.set_location_info