From: William A.C. <wil...@ca...> - 2004-12-28 17:49:48
|
The code in the patch isn't there any more. On the trunk (tracking WP 1.3 dev work), the code has been changed from an import of the WP-MySQL work and the patch no longer applies. As you point out, the 1.2.1 release didn't contain the file in question. It seems a little strange to reimport a file that was deleted from the parent distribution and add a patch to it all on a release branch for 1.2.1, but maybe that's just me... ;-) The file does exist in 1.2.2 though and we need to get 1.2.2 into wp-pg CVS. The import will likely necessitate a 1.2 branch. My day job calls, but I'll try to get to this soon... On Dec 28, 2004, at 7:24 AM, Ross M Karchner wrote: > Will toni's patch be applied to CVS? > > > On Wed, 15 Dec 2004 02:33:23 +0200, Toni Timonen > <tti...@us...> wrote: >> On Tue, Dec 14, 2004 at 12:01:56AM -0500, Ross M Karchner wrote: >>> Great work on getting WP to work on Postgres-- Thank you! >> >> Thanks. Actually I just happen to be one that has made a debian >> package for the wordpress-pg and hanging around in this mailing list, >> not the original developer. >> >>> >>> I was wondering if someone on the list could point me to what needs >>> to >>> be fixed to get the metaWeblog.getRecentPosts XML-RPC call to work. >>> I'm hoping it's just a matter of tweaking a query written for MySQL. >> >> Sure. >> >>> >>> Here is a trace of the XML-RPC transaction (sorry-- it's long): >>> Great work on getting WP to work on Postgres-- Thank you! >>> >>> [A long output, deleted] >> >> Ok, I don't know which version of xmlrpc/wordpress you happen to use >> here. There is no xmlrpc.php in the 1.2.1 version, but I managed to >> generate similar error messages by using (debianized) >> wordpress-pg-1.2.1+1.0-2 and including xmlrpc.php from earlier >> packaging wordpress-1.2.0-1.1 (available from >> http://ftp.debian.org/debian/pool/main/w/wordpress/ or directly from >> http://ftp.debian.org/debian/pool/main/w/wordpress/ >> wordpress_1.2.0.orig.tar.gz >> ) >> >> Here is a patch against it to make the metaWeblog.getRecentPosts >> work. >> >> diff -ub xmlrpc.php /usr/share/wordpress/xmlrpc.php >> --- xmlrpc.php 2004-05-22 01:17:51.000000000 +0300 >> +++ /usr/share/wordpress/xmlrpc.php 2004-12-15 02:06:02.000000000 >> +0200 >> @@ -1554,10 +1554,10 @@ >> >> $post = get_extended($entry['post_content']); >> >> - $postid = new xmlrpcval($entry['ID']); >> + $postid = new xmlrpcval($entry['id']); >> $title = new >> xmlrpcval(stripslashes($entry['post_title'])); >> $description = new >> xmlrpcval(stripslashes($post['main'])); >> - $link = new >> xmlrpcval(post_permalink($entry['ID'])); >> + $link = new >> xmlrpcval(post_permalink($entry['id'])); >> $permalink = $link; >> >> $extended = new >> xmlrpcval(stripslashes($post['extended'])); >> >> ---------------- >> >> A sample usage/test session: >> >> toni@mario:~/source/wp$ python >> Python 2.3.4 (#2, Dec 3 2004, 13:53:17) >> [GCC 3.3.5 (Debian 1:3.3.5-2)] on linux2 >> Type "help", "copyright", "credits" or "license" for more information. >>>>> import xmlrpclib >>>>> server = xmlrpclib.Server("http://localhost/blog/xmlrpc.php") >>>>> server.metaWeblog.getRecentPosts("0","*****","*****",5) >> [{'permalink': 'http://mario.datanet/blog/index.php?m=200411#post-2', >> 'description': 'joo..', 'title': 'Hmm..', 'mt_excerpt': '', 'userid': >> '1', 'dateCreated': <DateTime u'20041130T16:20:20' at 403decec>, >> 'link': 'http://mario.datanet/blog/index.php?m=200411#post-2', >> 'mt_text_more': '', 'mt_allow_comments': 1, 'postid': '2', >> 'categories': [''], 'mt_allow_pings': 1}, {'permalink': >> 'http://mario.datanet/blog/index.php?m=200411#post-1', 'description': >> 'Welcome to WordPress. This is the first post. Edit or delete it, >> then start blogging!', 'title': 'Hello world!', 'mt_excerpt': '', >> 'userid': '1', 'dateCreated': <DateTime u'20041129T00:22:06' at >> 403fc52c>, 'link': >> 'http://mario.datanet/blog/index.php?m=200411#post-1', >> 'mt_text_more': '', 'mt_allow_comments': 1, 'postid': '1', >> 'categories': ['General'], 'mt_allow_pings': 1}] >>>>> >> toni@mario:~/source/wp$ >> >> Seems to work fine now. >> >> -- >> Toni Timonen "toni dot timonen at iki dot fi" >> NP Solutions Ltd >> Helsinki University of Technology >> Department of Engineering Physics and Mathematics >> >> >> > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real > users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Wordpress-pg-devel mailing list > Wor...@li... > https://lists.sourceforge.net/lists/listinfo/wordpress-pg-devel |