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
bb3c5d9f
Commit
bb3c5d9f
authored
Oct 02, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge fixes from 1.4.0 branch
parent
972a61c2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
19 deletions
+27
-19
lib/python/Products/PageTemplates/CHANGES.txt
lib/python/Products/PageTemplates/CHANGES.txt
+2
-14
lib/python/Products/PageTemplates/HISTORY.txt
lib/python/Products/PageTemplates/HISTORY.txt
+18
-0
lib/python/Products/PageTemplates/PageTemplate.py
lib/python/Products/PageTemplates/PageTemplate.py
+2
-2
lib/python/Products/PageTemplates/TALES.py
lib/python/Products/PageTemplates/TALES.py
+3
-1
lib/python/Products/PageTemplates/ZopePageTemplate.py
lib/python/Products/PageTemplates/ZopePageTemplate.py
+2
-2
No files found.
lib/python/Products/PageTemplates/CHANGES.txt
View file @
bb3c5d9f
...
...
@@ -4,20 +4,8 @@ Page Template changes
Change information for previous versions can be found in the
file HISTORY.txt.
Version 1.4.0
Features Added
- ZPTs are now cache-enabled
- Added property sheet to ZPT
Version 1.4.1
Bugs Fixed
- Expressions with embedded newlines were broken
- History comparison tried to expand macros
- Iterator exceptions weren't converted
- 'Unauthorized' exception couldn't be handled by on-error
- Tracebacks were often truncated.
lib/python/Products/PageTemplates/HISTORY.txt
View file @
bb3c5d9f
...
...
@@ -4,6 +4,24 @@ Page Template history
PageTemplates. Change information for the current release can be found
in the file CHANGES.txt.
Version 1.4.0
Features Added
- ZPTs are now cache-enabled
- Added property sheet to ZPT
Bugs Fixed
- Expressions with embedded newlines were broken
- History comparison tried to expand macros
- Iterator exceptions weren't converted
- 'Unauthorized' exception couldn't be handled by on-error
Version 1.3.3
Features Added
...
...
lib/python/Products/PageTemplates/PageTemplate.py
View file @
bb3c5d9f
...
...
@@ -87,7 +87,7 @@
HTML- and XML-based template objects using TAL, TALES, and METAL.
"""
__version__
=
'$Revision: 1.1
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
import
os
,
sys
,
traceback
,
pprint
from
TAL.TALParser
import
TALParser
...
...
@@ -105,7 +105,7 @@ class MacroCollection(Base):
def
__of__
(
self
,
parent
):
return
parent
.
_v_macros
class
PageTemplate
:
class
PageTemplate
(
Base
)
:
"Page Templates using TAL, TALES, and METAL"
content_type
=
'text/html'
...
...
lib/python/Products/PageTemplates/TALES.py
View file @
bb3c5d9f
...
...
@@ -87,7 +87,7 @@
An implementation of a generic TALES engine
"""
__version__
=
'$Revision: 1.2
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
1
$'
[
11
:
-
2
]
import
re
,
sys
,
ZTUtils
from
MultiMapping
import
MultiMapping
...
...
@@ -294,6 +294,8 @@ class Context:
try
:
v
=
expression
(
self
)
if
isinstance
(
v
,
Exception
):
if
hasattr
(
v
,
'traceback'
):
raise
v
,
None
,
v
.
traceback
raise
v
except
self
.
_nocatch
:
raise
...
...
lib/python/Products/PageTemplates/ZopePageTemplate.py
View file @
bb3c5d9f
...
...
@@ -87,7 +87,7 @@
Zope object encapsulating a Page Template.
"""
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
import
os
,
AccessControl
,
Acquisition
,
sys
from
Globals
import
DTMLFile
,
MessageDialog
,
package_home
...
...
@@ -267,7 +267,7 @@ class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable,
result
=
self
.
pt_render
(
extra_context
=
bound_names
)
except
TALESError
,
err
:
if
err
.
type
==
'Unauthorized'
:
raise
err
.
type
,
err
.
value
raise
err
.
type
,
err
.
value
,
err
.
traceback
raise
if
keyset
is
not
None
:
# Store the result in the cache.
...
...
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