def get_user_id(self, client_id, code):
        """Gets the user ID, given a client application ID and a temporary
        authentication code
        """
        try:
            return self.db.codes(self.db.codes.code_id == code).select(self.db.codes.user_id).first()
        except __HOLE__:
            self.create_tables()
            return None
dataset/ETHPy150Open joaoqalves/web2py-oauth2/modules/oauth/storage/__init__.py/web2pyStorage.get_user_id