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
8ad3a49b
Commit
8ad3a49b
authored
Jul 29, 2007
by
Philipp von Weitershausen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of our custom ProviderExpression class, just alias the name to the
implementation from Zope 3.
parent
8dfd7442
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
lib/python/Products/Five/browser/providerexpression.py
lib/python/Products/Five/browser/providerexpression.py
+5
-9
lib/python/Products/PageTemplates/Expressions.py
lib/python/Products/PageTemplates/Expressions.py
+2
-2
No files found.
lib/python/Products/Five/browser/providerexpression.py
View file @
8ad3a49b
...
...
@@ -13,14 +13,10 @@
##############################################################################
"""Provider expression.
$Id$
This module solely exists for backwards-compatibility. Please import
TALESProviderExpression from zope.contentprovider.tales.
"""
from
zope.contentprovider
import
interfaces
as
cp_interfaces
from
zope.contentprovider.tales
import
TALESProviderExpression
from
zope.interface
import
implements
class
Z2ProviderExpression
(
TALESProviderExpression
):
"""This legacy provider was needed before to add acquisition wrappers to
the providers in order for security to work."""
implements
(
cp_interfaces
.
ITALESProviderExpression
)
# BBB
from
zope.contentprovider.tales
import
TALESProviderExpression
\
as
Z2ProviderExpression
lib/python/Products/PageTemplates/Expressions.py
View file @
8ad3a49b
...
...
@@ -30,6 +30,7 @@ from zope.tales.pythonexpr import PythonExpr
from
zope.traversing.interfaces
import
ITraversable
from
zope.traversing.adapters
import
traversePathElement
from
zope.proxy
import
removeAllProxies
from
zope.contentprovider.tales
import
TALESProviderExpression
import
zope.app.pagetemplate.engine
import
OFS.interfaces
...
...
@@ -37,7 +38,6 @@ from MultiMapping import MultiMapping
from
Acquisition
import
aq_base
from
zExceptions
import
NotFound
,
Unauthorized
from
Products.Five.browser.providerexpression
import
Z2ProviderExpression
from
Products.PageTemplates
import
ZRPythonExpr
from
Products.PageTemplates.DeferExpr
import
LazyExpr
from
Products.PageTemplates.GlobalTranslationService
import
getGlobalTranslationService
...
...
@@ -345,7 +345,7 @@ def createZopeEngine():
e
.
registerType
(
'not'
,
NotExpr
)
e
.
registerType
(
'defer'
,
DeferExpr
)
e
.
registerType
(
'lazy'
,
LazyExpr
)
e
.
registerType
(
'provider'
,
Z2
ProviderExpression
)
e
.
registerType
(
'provider'
,
TALES
ProviderExpression
)
e
.
registerBaseName
(
'modules'
,
SecureModuleImporter
)
return
e
...
...
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