Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
adbcd6d5
Commit
adbcd6d5
authored
Aug 09, 2005
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up imports to reduce differences with the Zope 3 version
parent
4c439783
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
lib/python/TAL/TALInterpreter.py
lib/python/TAL/TALInterpreter.py
+2
-4
No files found.
lib/python/TAL/TALInterpreter.py
View file @
adbcd6d5
...
...
@@ -17,9 +17,7 @@ $Id$
"""
import
cgi
import
sys
import
getopt
import
re
from
cgi
import
escape
# Do not use cStringIO here! It's not unicode aware. :(
from
StringIO
import
StringIO
...
...
@@ -392,7 +390,7 @@ class TALInterpreter:
elif
evalue
is
self
.
Default
:
value
=
attrEscape
(
value
)
else
:
value
=
escape
(
value
,
quote
=
1
)
value
=
cgi
.
escape
(
value
,
quote
=
1
)
value
=
'%s="%s"'
%
(
name
,
value
)
return
ok
,
name
,
value
bytecode_handlers
[
"<attrAction>"
]
=
attrAction
...
...
@@ -507,7 +505,7 @@ class TALInterpreter:
if
isinstance
(
text
,
MessageID
):
# Translate this now.
text
=
self
.
engine
.
translate
(
text
.
domain
,
text
,
text
.
mapping
)
s
=
escape
(
text
)
s
=
cgi
.
escape
(
text
)
self
.
_stream_write
(
s
)
i
=
s
.
rfind
(
'
\
n
'
)
if
i
<
0
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment