PyBlosxomPlugins

xmlrpc_newedit.py

基于 NewEdit 进行PyBlosxom 的内容维护!

This plugin provides some misc method, and it is a xmlrpc plugin, so you need install xmlrpc.py plugin first. This plugin provides these methods, just like:

If you want to use putFile function, you should add parameter as blow:

getSysFile is used to modify some important files just like links.dat, flavour template files, etc. If you want to use this method, you shoud add parameter in config.py as blow:

For example:

config.py

py['newedit_filepath'] = 'files'
py['newedit_filelist'] = 'filelist.dat'

the structure of directory:

      files/
      entries/   #datadir
         |
         +------ filelist.dat

If the content of the filelist.dat is :

links.dat

thus you can use getSysFile to get the content of the links.dat, and modify it on the remote, then use putSysFile to save the modification.

download the plugins: xmlrpc_newedit.py

PyBlosxomPlugins (last edited 2009-12-25 07:18:16 by localhost)