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
1e7c17f8
Commit
1e7c17f8
authored
Oct 20, 2007
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved two implements declarations from Five into the proper classes.
parent
f08beab6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+3
-1
lib/python/Products/Five/configure.zcml
lib/python/Products/Five/configure.zcml
+0
-9
lib/python/ZPublisher/HTTPRequest.py
lib/python/ZPublisher/HTTPRequest.py
+5
-0
No files found.
doc/CHANGES.txt
View file @
1e7c17f8
...
...
@@ -9,6 +9,8 @@ Zope Changes
Restructuring
- Moved two implements declarations from Five into the proper classes.
- Document.sequence: replaced by zope.sequencesort
- All Products folders as well as the zope and zope.app folders are
...
...
lib/python/OFS/ObjectManager.py
View file @
1e7c17f8
...
...
@@ -55,6 +55,8 @@ from zope.event import notify
from
zope.app.container.contained
import
ObjectAddedEvent
from
zope.app.container.contained
import
ObjectRemovedEvent
from
zope.app.container.contained
import
notifyContainerModified
from
zope.app.container.interfaces
import
IContainer
from
zope.interface
import
implements
from
OFS.event
import
ObjectWillBeAddedEvent
from
OFS.event
import
ObjectWillBeRemovedEvent
import
OFS.subscribers
...
...
@@ -140,7 +142,7 @@ class ObjectManager(
This class provides core behavior for collections of heterogeneous objects.
"""
implements
(
IObjectManager
)
implements
(
IObjectManager
,
IContainer
)
security
=
ClassSecurityInfo
()
security
.
declareObjectProtected
(
access_contents_information
)
...
...
lib/python/Products/Five/configure.zcml
View file @
1e7c17f8
...
...
@@ -16,13 +16,4 @@
<include package=".utilities" />
<include package=".viewlet" />
<!-- this is really lying, but it's to please checkContainer -->
<five:implements class="OFS.ObjectManager.ObjectManager"
interface="zope.app.container.interfaces.IContainer" />
<!-- make Zope 2's REQUEST implement the right thing -->
<five:implements class="ZPublisher.HTTPRequest.HTTPRequest"
interface="zope.publisher.interfaces.browser.IBrowserRequest"
/>
</configure>
lib/python/ZPublisher/HTTPRequest.py
View file @
1e7c17f8
...
...
@@ -27,7 +27,9 @@ xmlrpc=None # Placeholder for module that we'll import if we have to.
from
zope.i18n.interfaces
import
IUserPreferredLanguages
from
zope.i18n.locales
import
locales
,
LoadLocaleError
from
zope.interface
import
implements
from
zope.publisher.base
import
DebugFlags
from
zope.publisher.interfaces.browser
import
IBrowserRequest
# This may get overwritten during configuration
default_encoding
=
'iso-8859-15'
...
...
@@ -119,12 +121,15 @@ class HTTPRequest(BaseRequest):
values will be looked up in the order: environment variables,
other variables, form data, and then cookies.
"""
implements
(
IBrowserRequest
)
_hacked_path
=
None
args
=
()
_file
=
None
_urls
=
()
retry_max_count
=
3
def
supports_retry
(
self
):
if
self
.
retry_count
<
self
.
retry_max_count
:
time
.
sleep
(
random
.
uniform
(
0
,
2
**
(
self
.
retry_count
)))
...
...
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