Package Pootle :: Package storage :: Module demoserver
[show private | hide private]
[frames | no frames]

Module Pootle.storage.demoserver

A proof of concept XML-RPC server that exposes Pootle's backend storage.

After starting the server you can use it like this:

    from xmlrpclib import ServerProxy
    server = ServerProxy('http://localhost:23123')
    server.translate('pootle', 'lt', '', 'pootle', 'Project')

Function Summary
  main()
  translate(project, lang, country, module, msgid)
Translate a given msgid.

Variable Summary
str STORAGE_ROOT = '../po'

Function Details

translate(project, lang, country, module, msgid)

Translate a given msgid.

You may pass '' instead of None as the country code.

Variable Details

STORAGE_ROOT

Type:
str
Value:
'../po'                                                                

Generated by Epydoc 2.1 on Tue Aug 22 04:29:46 2006 http://epydoc.sf.net