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
94360b88
Commit
94360b88
authored
May 08, 2006
by
Philipp von Weitershausen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up
parent
e1d05930
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
lib/python/Products/PageTemplates/Engine.py
lib/python/Products/PageTemplates/Engine.py
+8
-10
No files found.
lib/python/Products/PageTemplates/Engine.py
View file @
94360b88
...
...
@@ -11,18 +11,17 @@
#
##############################################################################
from
GlobalTranslationService
import
getGlobalTranslationService
from
zope.tales.tales
import
ExpressionEngine
from
zope.tales.expressions
import
PathExpr
,
StringExpr
,
NotExpr
,
DeferExpr
,
SubPathExpr
from
zope.tales.expressions
import
SimpleModuleImporter
,
_marker
from
zope.tales.expressions
import
PathExpr
,
StringExpr
,
NotExpr
from
zope.tales.expressions
import
DeferExpr
,
SubPathExpr
from
zope.tales.expressions
import
SimpleModuleImporter
from
zope.tales.pythonexpr
import
PythonExpr
from
zope.tales.tales
import
_valid_name
,
_parse_expr
,
NAME_RE
,
Undefined
,
Context
from
zope.i18n
import
translate
GTS
=
getGlobalTranslationService
()
from
Products.PageTemplates.GlobalTranslationService
import
getGlobalTranslationService
_marker
=
object
()
def
BoboTraverseAwareSimpleTraverse
(
object
,
path_items
,
econtext
):
""" a slightly modified version of zope.tales.expressions.simpleTraverse()
...
...
@@ -68,9 +67,9 @@ class PathExpr(PathExpr):
class
Context
(
Context
):
def
translate
(
self
,
msgid
,
domain
=
None
,
mapping
=
None
,
default
=
None
):
return
GTS
.
translate
(
msgid
,
domain
,
mapping
,
return
getGlobalTranslationService
().
translate
(
msgid
,
domain
,
mapping
,
context
=
self
.
contexts
[
'context'
],
default
=
default
)
def
translate
(
self
,
domain
,
msgid
,
mapping
=
None
,
...
...
@@ -108,4 +107,3 @@ def Engine():
return
e
Engine
=
Engine
()
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