XMLRPC, Taxonomies and/or Python

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
rodmc's picture

Hi I am new to Drupal and hence taxonomies and I need to create a way for articles which are written on a separate system to be posted to Drupal. So far I have been able to do most of what is required via XMLRPC however I am not quite sure how to add a valid taxonomy to an article and post it at the same time. For example can I write the taxonomy to the article at the same time as it is posted or is there another way I should do it, also what is the format of the data which I should use? I am writing the module using Python.

Any pointers are welcome and sorry for the newbie type question :-)

Best,

rod

Comments

Hi, Some one has any

lsancheztapia's picture

Hi,

Some one has any solution? because I also need to post articles with a particular taxonomy term.

Luis.

Not sure i'm clear on the use cases, but

mlncn's picture

You can use FeedAPI to bring in content from a third-party site and if it doesn't have an option for automatic tagging of terms you can probably create actions to do so.

benjamin, Agaric Design Collective

benjamin, agaric

hook_nodeapi

febbraro's picture

FeedAPI may be the most straightforward way.

You can also hook into anytime a node is saved via node_save (if you do that from your client end of the XMLRPC) and add a taxonomy terms that way.

http://api.drupal.org/api/function/hook_nodeapi/6


http://phase2technology.com
http://agileappraoch.com
http://twitter.com/febbraro