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
70057684
Commit
70057684
authored
Jan 24, 2007
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Collector #2269: fixed broken FTP support for ZPT
parent
2b2d7822
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/Products/PageTemplates/ZopePageTemplate.py
lib/python/Products/PageTemplates/ZopePageTemplate.py
+1
-1
lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
...thon/Products/PageTemplates/tests/testZopePageTemplate.py
+8
-0
No files found.
doc/CHANGES.txt
View file @
70057684
...
...
@@ -12,6 +12,8 @@ Zope Changes
- Collector #2261: Acquisition when creating objects via Webdav.
- Collector #2269: fixed broken FTP support for ZPT
Zope 2.10.2 beta 1 (2007/01/14)
Bugs fixed
...
...
lib/python/Products/PageTemplates/ZopePageTemplate.py
View file @
70057684
...
...
@@ -359,7 +359,7 @@ class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable,
security
.
declareProtected
(
ftp_access
,
'manage_FTPget'
)
def
manage_FTPget
(
self
):
"Get source for FTP download"
result
=
self
.
pt_render
()
result
=
self
.
read
()
return
result
.
encode
(
self
.
output_encoding
)
security
.
declareProtected
(
view_management_screens
,
'html'
)
...
...
lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
View file @
70057684
...
...
@@ -249,6 +249,14 @@ class ZPTRegressions(unittest.TestCase):
pt
=
self
.
app
.
pt1
self
.
assertEqual
(
pt
.
document_src
(),
self
.
text
)
def
testFTPGet
(
self
):
# check for bug #2269
request
=
self
.
app
.
REQUEST
text
=
'<span tal:content="string:foobar"></span>'
self
.
_addPT
(
'pt1'
,
text
=
text
,
REQUEST
=
request
)
result
=
self
.
app
.
pt1
.
manage_FTPget
()
self
.
assertEqual
(
result
,
text
)
class
ZPTMacros
(
zope
.
component
.
testing
.
PlacelessSetup
,
unittest
.
TestCase
):
...
...
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