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
52dc6374
Commit
52dc6374
authored
Jun 27, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged from 2.2 branch
parent
e9f04ae7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
lib/python/ZPublisher/HTTPRequest.py
lib/python/ZPublisher/HTTPRequest.py
+9
-1
No files found.
lib/python/ZPublisher/HTTPRequest.py
View file @
52dc6374
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
#
#
##############################################################################
##############################################################################
__version__
=
'$Revision: 1.3
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
6
$'
[
11
:
-
2
]
import
regex
,
sys
,
os
,
string
,
urllib
import
regex
,
sys
,
os
,
string
,
urllib
from
string
import
lower
,
atoi
,
rfind
,
split
,
strip
,
join
,
upper
,
find
from
string
import
lower
,
atoi
,
rfind
,
split
,
strip
,
join
,
upper
,
find
...
@@ -947,6 +947,10 @@ class FileUpload:
...
@@ -947,6 +947,10 @@ class FileUpload:
containing the name of the uploaded file.
containing the name of the uploaded file.
'''
'''
# Allow access to attributes such as headers and filename so
# that ZClass authors can use DTML to work with FileUploads.
__allow_access_to_unprotected_subobjects__
=
1
def
__init__
(
self
,
aFieldStorage
):
def
__init__
(
self
,
aFieldStorage
):
file
=
aFieldStorage
.
file
file
=
aFieldStorage
.
file
...
@@ -1009,6 +1013,10 @@ def parse_cookie(text,
...
@@ -1009,6 +1013,10 @@ def parse_cookie(text,
# add class
# add class
class record:
class record:
# Allow access to record methods and values from DTML
__allow_access_to_unprotected_subobjects__=1
def __getattr__(self, key, default=None):
def __getattr__(self, key, default=None):
if key in ('get', 'keys', 'items', 'values', 'copy', 'has_key'):
if key in ('get', 'keys', 'items', 'values', 'copy', 'has_key'):
return getattr(self.__dict__, key)
return getattr(self.__dict__, key)
...
...
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