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
6bdeaba7
Commit
6bdeaba7
authored
Apr 26, 2008
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed even more deprecated stuff
parent
f05dfa8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
lib/python/Products/PageTemplates/Expressions.py
lib/python/Products/PageTemplates/Expressions.py
+4
-15
No files found.
lib/python/Products/PageTemplates/Expressions.py
View file @
6bdeaba7
...
...
@@ -20,12 +20,11 @@ $Id$
import
logging
from
zope.component
import
getUtility
from
zope.component.interfaces
import
ComponentLookupError
from
zope.component
import
queryUtility
from
zope.interface
import
implements
from
zope.tales.tales
import
Context
,
Iterator
from
zope.tales.expressions
import
PathExpr
,
StringExpr
,
NotExpr
from
zope.tales.expressions
import
DeferExpr
,
SubPathExpr
,
Undefs
from
zope.tales.expressions
import
DeferExpr
,
Undefs
from
zope.tales.pythonexpr
import
PythonExpr
from
zope.traversing.interfaces
import
ITraversable
from
zope.traversing.adapters
import
traversePathElement
...
...
@@ -47,15 +46,6 @@ SecureModuleImporter = ZRPythonExpr._SecureModuleImporter()
LOG
=
logging
.
getLogger
(
'Expressions'
)
# BBB 2005/05/01 -- remove after 12 months
import
zope.deprecation
from
zope.deprecation
import
deprecate
zope
.
deprecation
.
deprecated
(
(
"StringExpr"
,
"NotExpr"
,
"PathExpr"
,
"SubPathExpr"
,
"Undefs"
),
"Zope 2 uses the Zope 3 ZPT engine now. Expression types can be "
"imported from zope.tales.expressions."
)
# In Zope 2 traversal semantics, NotFound or Unauthorized (the Zope 2
# versions) indicate that traversal has failed. By default, Zope 3's
# TALES engine doesn't recognize them as such which is why we extend
...
...
@@ -223,9 +213,8 @@ class ZopeContext(Context):
# This should not be a problem since it won't change the old
# default behavior
try
:
resolver
=
getUtility
(
IUnicodeEncodingConflictResolver
)
except
ComponentLookupError
:
resolver
=
queryUtility
(
IUnicodeEncodingConflictResolver
)
if
resolver
is
None
:
return
unicode
(
text
)
try
:
...
...
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