Subject: [TS] Beginning of a CGI interface
From: Ben Darnell (bgdarnel@unity.ncsu.edu)
Date: Tue Apr 18 2000 - 23:39:25 EDT
I've checked in a very rudimentary CGI interface to ThoughtStream into
CVS. It's very rough; nothing that I'm willing to show to the
non-developing public. Stephen Danic and the people from the Open Idea
Project have expressed interest in working on this project; that's why
I'm making it available in such a not-even-vaguely-finished-or-useful
state. Once they get off the ground, I plan to let them take care of
the web interface and I'll go back to the Palm version (I'm going to
change the data format to WBXML to improve synchronization).
Prerequisites:
* cvs
* ssh (for read/write access to the source repository)
* a web server, probably apache
* python
* MySQL
* the python module MySQLdb
* parts of zope - it's simplest to just install the whole thing (minus
starting the server daemon)
Get all of the above working, then check out module 'thoughtstream' from
the CVS repository - directions at
http://sourceforge.net/cvs/?group_id=327
Create a database in MySQL for thoughtstream. Use the file
thoughtstream/web/initial.sql to create the tables in the database.
Copy/rename thoughtstream-cgi.py as needed to get apache to recognize it
as a CGI script - on my system, that means putting a copy in
/usr/lib/cgi-bin/. Edit the file, adding any necessary paths (I added
'/home/bgdarnel/src/thoughtstream/' and '/usr/lib/zope/lib/python') -
you need to be able to import the modules (i.e. directories)
'thoughtstream' and 'DocumentTemplate' from these paths. Set the
database_options to match your MySQL setup.
Open the location of the script in a web browser. It will ask for a
filename; give it thoughtstream/web/initial.mind. Open the script again
(don't just hit reload - that will attempt to import again). You should
see an almost-empty node, with no way to edit - congratulations! that's
about all there is now. (well, not quite - if you seed the database
with data produced by another version of ThoughtStream or Lucid, you can
navigate around. To do this, go to http://blah/blah?action=import and
upload the xml file).
I have the nagging feeling that I've forgot to mention something, but I
can't think of what it might be. Oh well, I guess it'll come back to me
when people come complaining that they can't get it working ;-)
Good luck,
-Ben
-- Ben Darnell bgdarnel@unity.ncsu.edu http://thoughtstream.org Finger bgdarnel@debian.org for PGP/GPG key 1024D/1F06E509------------------------------------------------------------------------ You can win $1000! Time-limited offer. Enter today at: http://click.egroups.com/1/2864/4/_/6321/_/956115625/ ------------------------------------------------------------------------
This archive was generated by hypermail 2b25 : Wed Aug 30 2000 - 22:01:01 EDT