DokumetaWeblog

DokumetaWeblog is a DokuWiki action plugin witch provide metaWeblog support via xmlrpc api.

This plugin is still experimental : Feedback and criticism are appreciated. Contact me at Danjer@doudouke.org.

The plugin content is

  • a xmlrpc callback,
  • a stuffing stuffs...

The main goal of this plugin, is to give dokuwiki users the ability to manage their documents via offline editors.

Basic Idea

Control Dokuwiki framework by metaWeblog.

Graph

Installation

Alternatively, see the installation notes by Frisco Rose under http://wiki.splitbrain.org/wiki:debian_notes

Prerequisites

  • Of course you need DokuWiki installed and running.
  • DokumetaWeblog needs a working installation of xmlrpc.
  • If you are on a Debian box, $ apt-get install ?!? should be sufficient to install the required packages

Installation with plugin manager

Installation from command line, without darcs

  $>  cd dokuwiki
  $>  mkdir lib/plugins/dokumetaweblog
  $> cd /tmp
  $> wget http://danjer.doudouke.org/dokumetaweblog.tar.gz
  $> tar zxvf dokumetaweblog.tar.gz
  $> cp -R dokumetaweblog ${YOUR_DOKU_ROOT}/lib/plugins/dokuweblog
  $> chmod +x ${YOUR_DOKU_ROOT}/lib/plugins/dokuweblog
  $> rm -rf dokuweblog

Work in progress

Url de test : http://danjer.doudouke.org/?do=metaweblog&debug=1

http://danjer.doudouke.org/?do=metaweblog

Il ne reste plus qu’a ecrire ces methodes :

metaWeblog.newPost (blogid, username, password, struct, publish) returns string
metaWeblog.editPost (postid, username, password, struct, publish) returns true
metaWeblog.getPost (postid, username, password) returns struct
metaWeblog.newMediaObject (blogid, username, password, struct) returns struct
metaWeblog.getCategories (blogid, username, password) returns struct
metaWeblog.getRecentPosts (blogid, username, password, numberOfPosts) returns array of structs

Pour l’authentification, visiblement le protocole le gere deja, donc c’est cool. Les locks je pense que le parametre publish peut-etre utiliser pour ca non ?

metaWeblog.editPost (postid, username, password, struct, false) -> lock & save
metaWeblog.editPost (postid, username, password, struct, true) -> unlock & save

Pour les revisions il suffirait de bricoler un peu le postid pour y inclure la revision, genre : postid ⇒ wiki:format?rev=1172149394

Par contre pour recuperer la liste il faudrait utiliser getRecentPosts... je suis pas sur... Du coup comment avoir l’index des pages ?!?

RFC metaWeblog : http://www.xmlrpc.com/metaWeblogApi

Exemple XMLRPC : http://xmlrpc-epi.sourceforge.net/xmlrpc_php/index.php?view=server.php

Support

Methode Etat
getPost Debut
getRecentPosts Debut
getCategories Debut
 
tech/dokumetaweblog.txt · Last modified: 2007/03/11 19:46 by danjer
 
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki Powered by Lescampeurs