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

ZSQLBrain: Drop reference to "string" module.

parent 644ea989
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
# #
############################################################################## ##############################################################################
import string
import Acquisition import Acquisition
import sys import sys
import traceback import traceback
...@@ -116,7 +115,7 @@ class ZSQLBrain(Acquisition.Implicit): ...@@ -116,7 +115,7 @@ class ZSQLBrain(Acquisition.Implicit):
No exceptions are raised. No exceptions are raised.
""" """
script=REQUEST.script script=REQUEST.script
if string.find(path, script) != 0: if not path.startswith(script):
path='%s/%s' % (script, path) path='%s/%s' % (script, path)
try: try:
return REQUEST.resolve_url(path) 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