Zim

How to get zim.cgi running?

Asked by Dan Connolly

I installed zim-0.44 a la: python setup.py install --home=~

and then got a simple hello.cgi working on my server and
then copied zim.cgi right next to it. It failed numerous ways.

First, it couldn't find the template. I figured that out:

os.environ['XDG_DATA_DIRS']='/u/2/connolly/share'

oh... and the template name is 'Default', not 'Default.html'

then it wanted write access to ~/.cache .
I reluctantly set that directory to world-writeable for testing.

Then it wanted an X connection:

[Mon Feb 22 20:56:41 2010] [error] [client 70.94.4.81] File "/u/2/connolly/lib
/python/zim/gui/pageview.py", line 1862, in <module>
[Mon Feb 22 20:56:41 2010] [error] [client 70.94.4.81] CURSOR_TEXT = gtk.gdk
.Cursor(gtk.gdk.XTERM)
[Mon Feb 22 20:56:41 2010] [error] [client 70.94.4.81] RuntimeError: could not c
reate GdkCursor object
[Mon Feb 22 20:56:41 2010] [error] [client 70.94.4.81] /u/2/connolly/lib/python/
zim/gui/pageview.py:1862: GtkWarning: gdk_cursor_new_for_display: assertion `GDK
_IS_DISPLAY (display)' failed

I think there were other problems I worked around, but I never did get the thing
running.

I searched for documentation on how to use zim.cgi without luck.

Has anybody else gotten it running?

Question information

Language:
English Edit question
Status:
Answered
For:
Zim Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#1

I'm afraid the CGI script included in the source package is just a prove of concept, it hasn't been tested extensively. Please open a bug report with the details of what issues you see and I'll look into it.

Can you help with this problem?

Provide an answer of your own, or ask Dan Connolly for more information if necessary.

To post a message you must log in.