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
3f0c42d3
Commit
3f0c42d3
authored
Jan 16, 2006
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced used of deprecated 'OFS.content_types' module with cognates from 'zope.app.content_types'.
parent
ef6057a4
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
11 deletions
+15
-11
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/App/ImageFile.py
lib/python/App/ImageFile.py
+1
-1
lib/python/OFS/DTMLDocument.py
lib/python/OFS/DTMLDocument.py
+1
-1
lib/python/OFS/DTMLMethod.py
lib/python/OFS/DTMLMethod.py
+1
-1
lib/python/OFS/Image.py
lib/python/OFS/Image.py
+1
-1
lib/python/ZClasses/Method.py
lib/python/ZClasses/Method.py
+2
-2
lib/python/Zope2/Startup/handlers.py
lib/python/Zope2/Startup/handlers.py
+2
-2
lib/python/webdav/NullResource.py
lib/python/webdav/NullResource.py
+4
-3
No files found.
doc/CHANGES.txt
View file @
3f0c42d3
...
...
@@ -32,6 +32,9 @@ Zope Changes
- officially deprecated the zLOG module (to be removed in Zope 2.11).
Use the logging module of Python instead.
- Replaced used of deprecated 'OFS.content_types' module with cognates
from 'zope.app.content_types'.
Zope 2.9.0 (2006/01/09)
Bugs fixed
...
...
lib/python/App/ImageFile.py
View file @
3f0c42d3
...
...
@@ -18,7 +18,7 @@ import os
import
time
from
App.config
import
getConfiguration
from
OFS
.content_types
import
guess_content_type
from
zope.app
.content_types
import
guess_content_type
from
Globals
import
package_home
from
Common
import
rfc1123_date
from
DateTime
import
DateTime
...
...
lib/python/OFS/DTMLDocument.py
View file @
3f0c42d3
...
...
@@ -16,7 +16,7 @@ $Id$
"""
from
ZPublisher.Converters
import
type_converters
from
Globals
import
HTML
,
DTMLFile
,
MessageDialog
from
OFS
.content_types
import
guess_content_type
from
zope.app
.content_types
import
guess_content_type
from
DTMLMethod
import
DTMLMethod
,
decapitate
from
PropertyManager
import
PropertyManager
from
webdav.common
import
rfc1123_date
...
...
lib/python/OFS/DTMLMethod.py
View file @
3f0c42d3
...
...
@@ -17,7 +17,7 @@ $Id$
import
History
from
Globals
import
HTML
,
DTMLFile
,
MessageDialog
from
SimpleItem
import
Item_w__name__
,
pretty_tb
from
OFS
.content_types
import
guess_content_type
from
zope.app
.content_types
import
guess_content_type
from
PropertyManager
import
PropertyManager
from
AccessControl.Role
import
RoleManager
from
webdav.common
import
rfc1123_date
...
...
lib/python/OFS/Image.py
View file @
3f0c42d3
...
...
@@ -15,7 +15,7 @@
$Id$
"""
import
Globals
,
struct
from
OFS
.content_types
import
guess_content_type
from
zope.app
.content_types
import
guess_content_type
from
Globals
import
DTMLFile
from
PropertyManager
import
PropertyManager
from
AccessControl.Role
import
RoleManager
...
...
lib/python/ZClasses/Method.py
View file @
3f0c42d3
...
...
@@ -19,7 +19,7 @@ import App.Dialogs, ZClasses, App.Factory, App.ProductRegistry
import
ZClassOwner
from
AccessControl.PermissionMapping
import
aqwrap
,
PermissionMapper
import
OFS.content_types
from
zope.app.content_types
import
guess_content_type
from
OFS.DTMLMethod
import
DTMLMethod
from
Products.PythonScripts.PythonScript
import
PythonScript
from
zExceptions
import
BadRequest
...
...
@@ -189,7 +189,7 @@ class ZClassMethodsSheet(
new item uploaded via FTP/WebDAV.
"""
if
typ
is
None
:
typ
,
enc
=
OFS
.
content_types
.
guess_content_type
()
typ
,
enc
=
guess_content_type
()
if
typ
==
'text/x-python'
:
return
PythonScript
(
name
)
if
typ
[
:
4
]
==
'text'
:
...
...
lib/python/Zope2/Startup/handlers.py
View file @
3f0c42d3
...
...
@@ -175,8 +175,8 @@ def root_handler(config):
# Augment the set of MIME types:
if
config
.
mime_types
:
import
OFS
.content_types
OFS
.
content_types
.
add_files
(
config
.
mime_types
)
import
zope.app
.content_types
zope
.
app
.
content_types
.
add_files
(
config
.
mime_types
)
# if no servers are defined, create default http server and ftp server
if
not
config
.
servers
:
...
...
lib/python/webdav/NullResource.py
View file @
3f0c42d3
...
...
@@ -17,7 +17,7 @@ $Id$
import
sys
import
Acquisition
,
OFS
.
content_types
import
Acquisition
import
Globals
import
OFS.SimpleItem
from
AccessControl
import
getSecurityManager
...
...
@@ -25,6 +25,7 @@ from Globals import Persistent, DTMLFile
from
OFS.CopySupport
import
CopyError
from
zExceptions
import
MethodNotAllowed
from
zExceptions
import
Unauthorized
,
NotFound
,
Forbidden
,
BadRequest
from
zope.app.content_types
import
guess_content_type
import
davcmds
from
common
import
aq_base
,
tokenFinder
,
IfParser
...
...
@@ -141,7 +142,7 @@ class NullResource(Persistent, Acquisition.Implicit, Resource):
typ
=
REQUEST
.
get_header
(
'content-type'
,
None
)
if
typ
is
None
:
typ
,
enc
=
OFS
.
content_types
.
guess_content_type
(
name
,
body
)
typ
,
enc
=
guess_content_type
(
name
,
body
)
factory
=
getattr
(
parent
,
'PUT_factory'
,
self
.
_default_PUT_factory
)
ob
=
factory
(
name
,
typ
,
body
)
...
...
@@ -407,7 +408,7 @@ class LockNullResource(NullResource, OFS.SimpleItem.Item_w__name__):
body
=
REQUEST
.
get
(
'BODY'
,
''
)
typ
=
REQUEST
.
get_header
(
'content-type'
,
None
)
if
typ
is
None
:
typ
,
enc
=
OFS
.
content_types
.
guess_content_type
(
name
,
body
)
typ
,
enc
=
guess_content_type
(
name
,
body
)
factory
=
getattr
(
parent
,
'PUT_factory'
,
self
.
_default_PUT_factory
)
ob
=
(
factory
(
name
,
typ
,
body
)
or
...
...
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