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
d129f92b
Commit
d129f92b
authored
Apr 21, 1999
by
Michel Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reformatted some parts to 80 columns, purely cosmetic
parent
0debab0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
12 deletions
+34
-12
ZServer/FTPRequest.py
ZServer/FTPRequest.py
+17
-6
lib/python/ZServer/FTPRequest.py
lib/python/ZServer/FTPRequest.py
+17
-6
No files found.
ZServer/FTPRequest.py
View file @
d129f92b
...
...
@@ -125,16 +125,21 @@ class FTPRequest(HTTPRequest):
args
=
command
[
1
:]
command
=
command
[
0
]
if
command
in
(
'LST'
,
'CWD'
,
'PASS'
):
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_FTPlist'
)
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_FTPlist'
)
elif
command
in
(
'MDTM'
,
'SIZE'
):
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_FTPstat'
)
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_FTPstat'
)
elif
command
==
'RETR'
:
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_FTPget'
)
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_FTPget'
)
elif
command
in
(
'RMD'
,
'DELE'
):
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_delObjects'
)
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_delObjects'
)
env
[
'QUERY_STRING'
]
=
'ids=%s'
%
args
[
0
]
elif
command
==
'MKD'
:
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_addFolder'
)
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_addFolder'
)
env
[
'QUERY_STRING'
]
=
'id=%s'
%
args
[
0
]
elif
command
==
'STOR'
:
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
)
...
...
@@ -150,4 +155,10 @@ class FTPRequest(HTTPRequest):
if
os
.
sep
!=
'/'
:
path
=
string
.
replace
(
path
,
os
.
sep
,
'/'
)
return
path
\ No newline at end of file
lib/python/ZServer/FTPRequest.py
View file @
d129f92b
...
...
@@ -125,16 +125,21 @@ class FTPRequest(HTTPRequest):
args
=
command
[
1
:]
command
=
command
[
0
]
if
command
in
(
'LST'
,
'CWD'
,
'PASS'
):
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_FTPlist'
)
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_FTPlist'
)
elif
command
in
(
'MDTM'
,
'SIZE'
):
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_FTPstat'
)
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_FTPstat'
)
elif
command
==
'RETR'
:
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_FTPget'
)
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_FTPget'
)
elif
command
in
(
'RMD'
,
'DELE'
):
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_delObjects'
)
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_delObjects'
)
env
[
'QUERY_STRING'
]
=
'ids=%s'
%
args
[
0
]
elif
command
==
'MKD'
:
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_addFolder'
)
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
,
'manage_addFolder'
)
env
[
'QUERY_STRING'
]
=
'id=%s'
%
args
[
0
]
elif
command
==
'STOR'
:
env
[
'PATH_INFO'
]
=
self
.
_join_paths
(
channel
.
path
,
path
)
...
...
@@ -150,4 +155,10 @@ class FTPRequest(HTTPRequest):
if
os
.
sep
!=
'/'
:
path
=
string
.
replace
(
path
,
os
.
sep
,
'/'
)
return
path
\ No newline at end of file
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