List Info

Thread: cherrypy 2.0.0




cherrypy 2.0.0
user name
2006-11-22 15:53:12
---------- Forwarded message ----------
From: s|s <supreet.sethigmail.com>
Date: Nov 22, 2006 8:48 PM
Subject: cherrypy 2.0.0
To: jython-devlists.sourceforge.net


I have been trying to use jpython. My work mostly involves
web and
hence I am trying to run django on jpython.

As a stepping stone, I have gotten cherrypy 2.0.0 to work on
jpython.

As an example

[sslocalhost tutorial]$ java -jar
~/dev/jython/trunk/jython/dist/jython.jar
05_derived_objects.py
2006/11/22 20:34:07 CONFIG INFO Reading infos from
configFile: tutorial.conf
2006/11/22 20:34:07 CONFIG INFO Server parameters:
2006/11/22 20:34:07 CONFIG INFO   logToScreen: 1
2006/11/22 20:34:07 CONFIG INFO   logFile:
2006/11/22 20:34:07 CONFIG INFO   protocolVersion: HTTP/1.0
2006/11/22 20:34:07 CONFIG INFO   socketHost:
2006/11/22 20:34:07 CONFIG INFO   socketPort: 8080
2006/11/22 20:34:07 CONFIG INFO   socketFile:
2006/11/22 20:34:07 CONFIG INFO   reverseDNS: 0
2006/11/22 20:34:07 CONFIG INFO   socketQueueSize: 5
2006/11/22 20:34:07 CONFIG INFO   threadPool: 10
2006/11/22 20:34:07 CONFIG INFO   sslKeyFile:
2006/11/22 20:34:07 CONFIG INFO   sessionStorageType: ram
2006/11/22 20:34:07 CONFIG INFO   sessionTimeout: 60 min
2006/11/22 20:34:07 CONFIG INFO   cleanUpDelay: 60 min
2006/11/22 20:34:07 CONFIG INFO   sessionCookieName:
CherryPySession
2006/11/22 20:34:07 CONFIG INFO   sessionStorageFileDir:
2006/11/22 20:34:07 CONFIG INFO   staticContent: []
2006/11/22 20:34:07 HTTP INFO Serving HTTP on socket: ('',
8080)
2006/11/22 20:34:12 HTTP INFO localhost.localdomain - GET /
HTTP/1.1


For this stuff to work, need to patch distutils. I modified
distutils
from python 2.4. It works with some changes.

cherrypy 2.0.0 mostly required "from __future__ import
generators".

Also I would like to know why this error occurs

('_local__key', 'thread.local.2') {}
Traceback (innermost last):
  File "05_derived_objects.py", line 75, in ?
  File
"/home/ss/dev/jython/trunk/jython/dist/Lib/cherrypy/_cp
server.py",
line 74, in start
  File
"/home/ss/dev/jython/trunk/jython/dist/Lib/cherrypy/_cp
threadinglocal.py",
line 158, in __new__
TypeError: keys in namespace must be strings

regards

Supreet

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )