ZPoPy Version: 2.0.7
Zope Version: (Zope 2.4.0 (binary release, python 2.1, linux2-x86), python
2.1.1, linux2)
Python Version: 2.1.1 (#1, Aug 30 2001, 09:43:56) [GCC 2.95.3 20010315
(SuSE)]
in Function sql_quote__:
def sql_quote__(self, v, escapes={
'\\': '\\\\',
'\"': '\\\"',
'\'': '\\\'',
'\0': '\\0',
'\n': '\\n',
'\t': '\\t',
'\r': '\\r',
'\b': '\\n',
}):
find=string.find
^^^^^^^^^^^^
This causes Zope to exit with an error:
"global name "string" is not defined"
if you have some <dtml-sqlvar ... type="string"> in your
ZSQL-Method.
I added an "import string" in line 28, now it works (for me).
Nobody/Anonymous ( nobody ) - 2001-09-05 09:14
5
Open
None
Nobody/Anonymous
None
None
Public
|
Date: 2002-04-21 14:35 Logged In: NO |
|
Date: 2002-04-21 14:25 Logged In: NO |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use