Commit 0c921888 authored by Vincent Pelletier's avatar Vincent Pelletier

ZSQLBrain: Drop reference to "string" module.

parent 644ea989
......@@ -12,7 +12,6 @@
#
##############################################################################
import string
import Acquisition
import sys
import traceback
......@@ -116,7 +115,7 @@ class ZSQLBrain(Acquisition.Implicit):
No exceptions are raised.
"""
script=REQUEST.script
if string.find(path, script) != 0:
if not path.startswith(script):
path='%s/%s' % (script, path)
try:
return REQUEST.resolve_url(path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment