Differences between revisions 5 and 6
Revision 5 as of 2008-07-06 00:57:32
Size: 1580
Editor: mk2s@digitalcommute
Comment:
Revision 6 as of 2008-07-06 21:29:42
Size: 1657
Editor: mk2s@digitalcommute
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma page-filename DEV/versions/4816968 #pragma page-filename DEV/versions/4816969
Line 9: Line 9:

setuptools was also already installed as rpm python-setuptools-0.6c8-1.fc9.noarch but I needed to install pyhon-setuptools-devel
Line 12: Line 15:
as myself installed as myself installed(these packages could be installed by root)
Line 14: Line 17:
 * Routes  * Routes  using easy_insatll Routes
 * simplejson using easy_install simplejson
 * Mako templates using easy_install Mako
Line 22: Line 27:
<<Verbatim([)>>mk2s@fc9 \,,/restserver<<Verbatim(])>>$&nbsp; mkdir \,,/mailman-runtime
Line 26: Line 33:
* scratch notes below \# once the build and install is complete
Line 28: Line 35:
[[../mk2s@fc9 ~/restserver|mk2s@fc9 ~/restserver]]$ mkdir ~/mailman-runtime
[[../mk2s@fc9 ~/restserver|mk2s@fc9 ~/restserver]]$ ./configure \--(-with-username=mk2s \)----(with-groupname=mk2s \)----(prefix=$HOME/mailman-runtime \)---without-permcheck
[[../mk2s@fc9 ~/restserver|mk2s@fc9 ~/restserver]]$ make install
<<Verbatim([)>>mk2s@fc9 ~/restserver<<Verbatim(])>>$ cd $HOME/mailman-runtime
Line 32: Line 37:
<<Verbatim([)>>x<<Verbatim(])>>$ cd /home/mk2s/mailman/mailman22-restserver/Mailman/rest \# start the rest server
Line 34: Line 39:
<<Verbatim([)>>rest<<Verbatim(])>>$ make install <<Verbatim([)>>mk2s@fc9 ~/mailman-runtime<<Verbatim(])>>$  PYTHONPATH=. python Mailman/rest/server.py
Line 36: Line 41:
<<Verbatim([)>>mailman22runtime<<Verbatim(])>>$ PYTHONPATH=. python Mailman/rest/server.py
<<BR>>
need to figure out what to do about the runtime dir
\# from a different shell make a request
Line 40: Line 43:
need list of dependencies and how to install those <<Verbatim([)>>mk2s@fc9 ~<<Verbatim(])>>$ lynx http://localhost:8000/

and so on

This page describes how to get started trying the RESTful webservice server for mailman.

The code is at https://code.launchpad.net/~mk2s/mailman/restserver

the following is on a clean install of FC9

Python 2.5.1 and Postfix already installed

setuptools was also already installed as rpm python-setuptools-0.6c8-1.fc9.noarch but I needed to install pyhon-setuptools-devel

as root I installed

  • bzr (not bazaar)

as myself installed(these packages could be installed by root)

  • Routes  using easy_insatll Routes

  • simplejson using easy_install simplejson
  • Mako templates using easy_install Mako

\# checkout source

[mk2s@fc9 ~]$ bzr checkout https://code.launchpad.net/~mk2s/mailman/restserver [mk2s@fc9 ~]$ cd restserver
Then as myself(mk2s) I ran configure and make

[mk2s@fc9 \/restserver<<Verbatim(])>>$&nbsp; mkdir \/mailman-runtime

[mk2s@fc9 ~/restserver]$ ./configure \-with-username=$USER \with-groupname=$USER  \prefix=$HOME/mailman-runtime \-without-permcheck

[mk2s@fc9 ~/restserver]$ make install

\# once the build and install is complete

[mk2s@fc9 ~/restserver]$ cd $HOME/mailman-runtime

\# start the rest server

[mk2s@fc9 ~/mailman-runtime]$ PYTHONPATH=. python Mailman/rest/server.py

\# from a different shell make a request

[mk2s@fc9 ~]$ lynx http://localhost:8000/

and so on \\

MailmanWiki: DEV/restserver-branch (last edited 2008-07-06 21:33:40 by mk2s@digitalcommute)