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
ac08b8ef
Commit
ac08b8ef
authored
Mar 30, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Last-Modifed header to content-ish objects to support ie5
parent
4d64935a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
lib/python/OFS/DTMLDocument.py
lib/python/OFS/DTMLDocument.py
+3
-1
lib/python/OFS/DTMLMethod.py
lib/python/OFS/DTMLMethod.py
+3
-1
lib/python/OFS/Image.py
lib/python/OFS/Image.py
+3
-1
No files found.
lib/python/OFS/DTMLDocument.py
View file @
ac08b8ef
...
...
@@ -84,12 +84,13 @@
##############################################################################
"""DTML Document objects."""
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
InstanceDict
,
TemplateDict
from
ZPublisher.Converters
import
type_converters
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
from
DTMLMethod
import
DTMLMethod
,
decapitate
from
PropertyManager
import
PropertyManager
from
webdav.common
import
rfc1123_date
from
sgmllib
import
SGMLParser
from
string
import
find
from
urllib
import
quote
...
...
@@ -177,6 +178,7 @@ class DTMLDocument(DTMLMethod, PropertyManager):
raise
sys
.
exc_type
,
sys
.
exc_value
,
sys
.
exc_traceback
return
self
.
raise_standardErrorMessage
(
client
,
REQUEST
)
if
RESPONSE
is
None
:
return
r
RESPONSE
.
setHeader
(
'Last-Modified'
,
rfc1123_date
(
self
.
_p_mtime
))
return
decapitate
(
r
,
RESPONSE
)
...
...
lib/python/OFS/DTMLMethod.py
View file @
ac08b8ef
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""DTML Method objects."""
__version__
=
'$Revision: 1.1
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
,
lower
...
...
@@ -92,6 +92,7 @@ from SimpleItem import Item_w__name__, pretty_tb
from
DocumentTemplate.DT_Util
import
cDocument
from
PropertyManager
import
PropertyManager
from
AccessControl.Role
import
RoleManager
from
webdav.common
import
rfc1123_date
from
urllib
import
quote
import
regex
,
Globals
,
sys
,
Acquisition
...
...
@@ -156,6 +157,7 @@ class DTMLMethod(cDocument, HTML, Acquisition.Implicit, RoleManager,
return
self
.
raise_standardErrorMessage
(
client
,
REQUEST
)
if
RESPONSE
is
None
:
return
r
RESPONSE
.
setHeader
(
'Last-Modified'
,
rfc1123_date
(
self
.
_p_mtime
))
return
decapitate
(
r
,
RESPONSE
)
def
get_size
(
self
):
...
...
lib/python/OFS/Image.py
View file @
ac08b8ef
...
...
@@ -84,12 +84,13 @@
##############################################################################
"""Image object"""
__version__
=
'$Revision: 1.6
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.6
6
$'
[
11
:
-
2
]
import
Globals
,
string
,
struct
,
mimetypes
,
content_types
from
Globals
import
HTMLFile
,
MessageDialog
from
PropertyManager
import
PropertyManager
from
AccessControl.Role
import
RoleManager
from
webdav.common
import
rfc1123_date
from
SimpleItem
import
Item_w__name__
from
cStringIO
import
StringIO
from
Globals
import
Persistent
...
...
@@ -180,6 +181,7 @@ class File(Persistent,Implicit,PropertyManager,
else
:
c
()
RESPONSE
.
setHeader
(
'content-type'
,
self
.
content_type
)
RESPONSE
.
setHeader
(
'Last-Modified'
,
rfc1123_date
(
self
.
_p_mtime
))
return
self
.
data
...
...
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