All of a sudden at starting a Zope instance, I get this error message on the console: File "/usr/local/zope/z2.py", line 476, in ? zdaemon.run(sys.argv, os.path.join(CLIENT_HOME, Zpid)) NameError: name 'CLIENT_HOME' is not defined It worked before. I installed some CMF Content types and stuff, but can't remember changing anything above of the Products directory. Stephan
Stephan Göldi wrote:
All of a sudden at starting a Zope instance, I get this error message on the console:
File "/usr/local/zope/z2.py", line 476, in ? zdaemon.run(sys.argv, os.path.join(CLIENT_HOME, Zpid)) NameError: name 'CLIENT_HOME' is not defined
It worked before. I installed some CMF Content types and stuff, but can't remember changing anything above of the Products directory.
You might need to let us know more about the Zope install. What version of Zope? What products do you have installed? What version of Python? What do you have in your start scripts? cheers, Chris
Stephan Göldi wrote:
File "/usr/local/zope/z2.py", line 476, in ? zdaemon.run(sys.argv, os.path.join(CLIENT_HOME, Zpid)) NameError: name 'CLIENT_HOME' is not defined
You might need to let us know more about the Zope install. What version of Zope?
2.5.1 binary version
What products do you have installed?
CMF 1.2 DocumentLibrary Plone_lite
What version of Python?
2.1.3
What do you have in your start scripts?
#! /bin/sh reldir=`dirname $0` INST_HOME=`cd $reldir; pwd` CLEINT_HOME=`cd $reldir; pwd` export INST_HOME export CLIENT_HOME exec /usr/local/zope/bin/python \ $INST_HOME/z2.py \ "$@" start (END) This is a local installation on a Redhat 7.3 Desktop Stephan
Stephan Göldi wrote:
Stephan Göldi wrote:
File "/usr/local/zope/z2.py", line 476, in ? zdaemon.run(sys.argv, os.path.join(CLIENT_HOME, Zpid)) NameError: name 'CLIENT_HOME' is not defined
You might need to let us know more about the Zope install. What version of Zope?
2.5.1 binary version
What products do you have installed?
CMF 1.2 DocumentLibrary Plone_lite
What version of Python?
2.1.3
What do you have in your start scripts?
#! /bin/sh reldir=`dirname $0` INST_HOME=`cd $reldir; pwd` CLEINT_HOME=`cd $reldir; pwd` export INST_HOME export CLIENT_HOME exec /usr/local/zope/bin/python \ $INST_HOME/z2.py \ "$@" start (END)
This is a local installation on a Redhat 7.3 Desktop
Is it maybe the CLEINT_HOME in the init script? -- Jim Washington
Stephan Göldi <goeldi@goeldi.com> writes:
I want to let a user confirm the submit button, before it is really submitted. What is the suggested way to let a dtml form be confirmed before submit?
You can simply use a checkbox on the same form, or use a second form on another page. The values of the variables travel with the flow using "hidden" input variables.
Stephan =?ISO-8859-1?Q?G=F6ldi?= writes:
All of a sudden at starting a Zope instance, I get this error message on the console:
File "/usr/local/zope/z2.py", line 476, in ? zdaemon.run(sys.argv, os.path.join(CLIENT_HOME, Zpid)) NameError: name 'CLIENT_HOME' is not defined "CLIENT_HOME" (and the other homes) are usually inserted into "__builtins__" by "App/find_homes".
You might want to debug the code (either with a debugger (e.g. "pdb") or with print statements) to understand why it no longer works. Dieter
participants (5)
-
Chris Withers -
Dieter Maurer -
Jim Washington -
Nils Kassube -
Stephan Göldi