Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: XML-RPC for Textpattern 4.0 - test release
Well, by virtue of Simon Willison’s excellent IXR library, XML/RPC already is in the core, it’s just a matter of tuning some functions to interact with Txp publishing events.
I certainly don’t want multiple versions of rpc support floating around, and I expect Pedro (just today back from yet another week lazing about on holiday) and Kurt will be able to pool their various projects into a nice unified core feature set.
text*
Offline
Re: XML-RPC for Textpattern 4.0 - test release
Man, this has been “in the can” for a while— can’t wait to stop looking forward to it :)
Dammit Jim, I’m a poet, not a programmer…
Joined the TXP Obsessed 2/25/04: http://www.chrislott.org/
Offline
#33 2005-09-03 18:50:38
- pidge
- New Member
- Registered: 2005-09-03
- Posts: 5
Re: XML-RPC for Textpattern 4.0 - test release
Hi,
I am a newbie to TextPattern. I wanted to see if our Wintel client editor application can post to TP 4.0 with Kurt’s xmlrpcs.php plug-in.
So, I have a couple of questions wrt to this plug-in:
1) If the client application is sending formatted html (as opposed to texttile), is it possible to for the post content sent via xml-rpc to accept it the without applying texttile (TextTileThis) . (I have already set ‘Leave text untouched’ in the admin console).
2) The post date is always set to current time (in the xmlrpc php) – is this as designed ? (BlogHarbor.com for example, by design, does not allow the post time to be changed via xml-rpc).
Thanks, – pidge
Offline
#34 2005-09-04 02:31:36
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: XML-RPC for Textpattern 4.0 - test release
If the client application is sending formatted html (as opposed to texttile), is it possible to for the post content sent via xml-rpc to accept it the without applying texttile (TextTileThis) . (I have already set ‘Leave text untouched’ in the admin console).
Sure, it’s theoretically possible; the code for that hasn’t been written yet. Also bear in mind that not every XML-RPC weblog API provides an option to set text filters. In fact, I am fairly sure that the MT API is the only API which offers that functionality.
The post date is always set to current time (in the xmlrpc php) – is this as designed ? (BlogHarbor.com for example, by design, does not allow the post time to be changed via xml-rpc).
This is as designed. As with the point above, some APIs don’t even have a field for the post time, but for those that do, it’s presently ignored.
Of course, patches to resolve either of these issues will be accepted.
-Kurt
kurt@kurtraschke.com
Offline
Re: XML-RPC for Textpattern 4.0 - test release
This doesn’t seem to be working for me on Mac OS X. From both Ecto and MarsEdit, I get an error when trying to download the list of posts. The error reads:
getRecentPosts() error: couldn’t retrieve list of recent posts.
I’m using the latest version of Textpattern, with your php file installed into the textpattern directory as per the instructions.
Any ideas?
Offline
Re: XML-RPC for Textpattern 4.0 - test release
same here. i’ve been unable to access my posts using mars edit or ecto. ecto displays my category list but returns an error when each category is clicked.
i followed the instructions and uploaded the file to my /textpattern folder.
i am using tp 4.0.1.
thanks in advance for any forthcoming help.
Offline
#37 2005-09-07 10:44:42
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: XML-RPC for Textpattern 4.0 - test release
Hmm. I can’t reproduce this exact problem, but I’ll keep working on it. Are either of you getting any PHP errors in your server’s error log?
-Kurt
kurt@kurtraschke.com
Offline
Re: XML-RPC for Textpattern 4.0 - test release
Unfortunately, my error logs have been set on “log critical errors only” for some time. I have reset them and I’ll test again this evening.
Offline
Re: XML-RPC for Textpattern 4.0 - test release
same here. i’ll see what i find, if anything. thanks for looking into it.
Offline
#40 2005-09-08 02:15:37
- pidge
- New Member
- Registered: 2005-09-03
- Posts: 5
Re: XML-RPC for Textpattern 4.0 - test release
Kurt,
I tested your xml-rpc plugin with our Wintel client (www.zoundry.com) – so far it works fine using MT api i.e. categories, new post, get recent post etc. and our unit test (CRUDs) etc. seem to be fine.
The only problem (short on our side) is our client currently does not allow one to modify the html (its currently read-only) – so, currently, I have to go to the TP admin page, choose advance-options on the posted artical and uncheck the ‘apply textile’ checkbox (since our clients sends html instead of texttile).
I can understand that a pure wysiwyg html editor is not the best client for writing in texttile. Anyway, your xml-rpc plug-in seems to work fine.
ps:
If anyone else plans to contribute to this plug-in, a couple of “feature requests” that would be nice to have are:
1) Not apply texttitle (TextTileThis) – if the client sends a flag indicating this. E.g. ‘apply_texttile’ = false.
2) If the client sends the creation-date, then use it instead of the current time.
- pidge
Offline
#41 2005-09-08 02:27:36
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: XML-RPC for Textpattern 4.0 - test release
pidge,
Thanks for the positive report. At the moment I am not sure where the plugin is going from here—the code which Pedro (and maybe others on the dev team?) has put together has some architectural differences from this version of XRT (his code uses IXR with the object-oriented introspection API and also has a wrapper class for accessing TXP functions), so moving code back and forth is not always a direct port.
On the other hand, Pedro’s code does support both creation date and turning off Textile; you may want to ask him for a copy?
-Kurt
Last edited by KurtRaschke (2005-09-08 02:31:30)
kurt@kurtraschke.com
Offline
Re: XML-RPC for Textpattern 4.0 - test release
> KurtRaschke wrote:
> Hmm. I can’t reproduce this exact problem, but I’ll keep working on it. Are either of you getting any PHP errors in your server’s error log?
-Kurt
i just checked, and apparently there have been no errors at all in its apache error log. any further ideas?
Offline
#43 2005-10-02 08:56:52
- davidm
- Member

- From: Paris, France
- Registered: 2004-04-27
- Posts: 719
Re: XML-RPC for Textpattern 4.0 - test release
This is way cool !
I’ll test and report :-)
.: Retired :.
Offline