Use of wxPython in cgi-scrips?

Hi all,
I'm trying to "abuse" wxPython in a server sided cgi-script. Mainly i need
the functionalities of the wxDateTime and wxTimeStamp objects. Unfortunately
i always get a 'Cannot open gtk-display' error although wxPython is properly
installed on the server. Working with wxPython on the server interactively
works fine but ssh-sessions as well as defined imports like 'from
wxPython.wx import wxDateTime' result in the same error message. My question
is whether there is a way to use wxPython preventing to open any display
connections?
Kind regards,
Oliver

Perhaps you could use mxDateTime from eGenix instead.

It'd be a lot less overhead and reduce start-up times for yur CGI script.

Oliver Walczak wrote:

···

Hi all,
I'm trying to "abuse" wxPython in a server sided cgi-script. Mainly i need
the functionalities of the wxDateTime and wxTimeStamp objects. Unfortunately
i always get a 'Cannot open gtk-display' error although wxPython is properly
installed on the server. Working with wxPython on the server interactively
works fine but ssh-sessions as well as defined imports like 'from
wxPython.wx import wxDateTime' result in the same error message. My question
is whether there is a way to use wxPython preventing to open any display
connections?
Kind regards,
Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

Oliver Walczak wrote:

Hi all,
I'm trying to "abuse" wxPython in a server sided cgi-script.

Ouch!

Mainly i need
the functionalities of the wxDateTime and wxTimeStamp objects.

Is the new datetime module in Python 2.3 not enough?

Unfortunately
i always get a 'Cannot open gtk-display' error although wxPython is properly
installed on the server. Working with wxPython on the server interactively
works fine but ssh-sessions as well as defined imports like 'from
wxPython.wx import wxDateTime' result in the same error message. My question
is whether there is a way to use wxPython preventing to open any display
connections?

wxPython 2.5 will allow the package to be imported without requiring access to the DISPLAY, and you can probably use wxDateTime and such without the DISPLAY, but it still seems like overkill for a CGI.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!