Yes, that worked. I apologize for not following the instructions on
the linux download page more closely. However there still must be
something not quite right with my basic system setup...

# /home/w/com/motd/Wiki-2-0 /usr/local/bin/tg-admin sql create
Using database URI sqlite:///home/w/com/motd/Wiki-2-0/wiki.sqlite

# /home/w/com/motd/Wiki-2-0 /usr/local/bin/tg-admin shell
Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> Page(pagename="FrontPage", data="Welcome to my front page")
<Page 1 pagename='FrontPage' data="'Welcome to my fr...'">
>>> quit
'Use Ctrl-D (i.e. EOF) to exit.'
>>>

# /home/w/com/motd/Wiki-2-0 sqlite3 wiki.sqlite
SQLite version 3.2.1
Enter ".help" for instructions
sqlite> .dump
BEGIN TRANSACTION;
CREATE TABLE page (
    id INTEGER PRIMARY KEY,
    pagename VARCHAR(30) NOT NULL UNIQUE,
    data TEXT
);
COMMIT;
sqlite>

It seems that using the shell did not insert any data into the table.
However, when I added a default FrontPage record manually the page
then appears at localhost:8080 as per the tutorial. I could then
proceed
with the rest of the wiki20 tutorial but ran into another problem with
the AJAX section at the end.

2006/01/03 01:26:28 HTTP INFO xx.xx.xx.xx - GET
/pagelist?tg_format=json HTTP/1.1
2006/01/03 01:26:28  INFO Traceback (most recent call last):
  File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
line 271, in run
    main()
  File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
line 502, in main
    body = page_handler(*args, **cherrypy.request.paramMap)
  File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a0dev_r438-py2.4.egg/turbogears/controllers.py",
line 237, in newfunc
    raise BadFormatError("JSON output is not allowed for that method")
BadFormatError: JSON output is not allowed for that method

220.245.107.188 - - [2006/01/03 01:26:28] "GET /pagelist?tg_format=json
HTTP/1.1" 500 1289

I also tried the wiki20.tgz download but that would not work at all
(not even a FrontPage, and yes, I changed the SQLite path in dev.py).

--markc

Reply via email to