def __getattr__(self, attr):
        if attr in self.__dict__:
            return self.__dict__[attr]
        else:
            return getattr(self.cursor, attr)
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/db/backends/postgresql_psycopg2/base.py/CursorWrapper.__getattr__/original