tags 338962 + pending thanks On Monday 14 November 2005 04:06, Jonas Smedegaard wrote: > I am testing papbercut with the phpbb_mysql backend. > > reading messages works. Authentication (when patch in separately > filed bugreport is applied) works. But sending messages - either > creating a new message or responding to an existing one - fails.
This will be fixed in next papercut upload. In the meantime, you can apply the attached patch. Regards, -- Jérémy
Thu Nov 24 21:49:50 CET 2005 [EMAIL PROTECTED] * Fix insert_id() usage in phpBB and phpNuke storage Closes: #338962 diff -rN -u old-papercut/storage/phpbb_mysql.py new-papercut/storage/phpbb_mysql.py --- old-papercut/storage/phpbb_mysql.py 2005-11-24 22:22:07.580181272 +0100 +++ new-papercut/storage/phpbb_mysql.py 2005-11-24 21:49:40.000000000 +0100 @@ -677,7 +677,7 @@ 0 )""" % (prefix, forum_id, self.quote_string(subject), poster_id) self.cursor.execute(stmt) - thread_id = self.cursor.insert_id() + thread_id = self.conn.insert_id() stmt = """ INSERT INTO %sposts @@ -705,7 +705,7 @@ 0 )""" % (prefix, thread_id, forum_id, poster_id, self.encode_ip(ip_address), post_username) self.cursor.execute(stmt) - new_id = self.cursor.insert_id() + new_id = self.conn.insert_id() if not new_id: return None else: diff -rN -u old-papercut/storage/phpnuke_phpbb_mysql.py new-papercut/storage/phpnuke_phpbb_mysql.py --- old-papercut/storage/phpnuke_phpbb_mysql.py 2005-11-24 22:22:07.588180056 +0100 +++ new-papercut/storage/phpnuke_phpbb_mysql.py 2005-11-24 21:49:47.000000000 +0100 @@ -657,7 +657,7 @@ 0 )""" % (prefix, forum_id, self.quote_string(subject), poster_id) self.cursor.execute(stmt) - thread_id = self.cursor.insert_id() + thread_id = self.conn.insert_id() stmt = """ INSERT INTO %sposts @@ -685,7 +685,7 @@ 0 )""" % (prefix, thread_id, forum_id, poster_id, self.encode_ip(ip_address), post_username) self.cursor.execute(stmt) - new_id = self.cursor.insert_id() + new_id = self.conn.insert_id() if not new_id: return None else:
pgpCPd1jRh8iQ.pgp
Description: PGP signature