@property
    def columns(self):
        if not hasattr(self, '_columns'):
            self._columns = self.query.get_columns()

            # Adjust any column names which don't match field names
            for (query_name, model_name) in self.translations.items():
                try:
                    index = self._columns.index(query_name)
                    self._columns[index] = model_name
                except ValueError:
                    # Ignore translations for non-existant column names
                    pass

        return self._columns
Checks whether a user has access to a local site given in the URL.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/db/models/query.py/RawQuerySet.columns--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/decorators.py/webapi_check_local_site