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
4185a999
Commit
4185a999
authored
Jun 08, 2012
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- updated imports
parent
4e48e5ca
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
8 deletions
+11
-8
src/OFS/interfaces.py
src/OFS/interfaces.py
+2
-2
src/Products/Five/component/__init__.py
src/Products/Five/component/__init__.py
+3
-2
src/Products/Five/component/component.txt
src/Products/Five/component/component.txt
+1
-1
src/Products/Five/component/configure.zcml
src/Products/Five/component/configure.zcml
+1
-1
src/Products/Five/component/interfaces.py
src/Products/Five/component/interfaces.py
+3
-1
src/Products/Five/component/makesite.txt
src/Products/Five/component/makesite.txt
+1
-1
No files found.
src/OFS/interfaces.py
View file @
4185a999
...
@@ -13,10 +13,10 @@
...
@@ -13,10 +13,10 @@
"""OFS interfaces.
"""OFS interfaces.
"""
"""
from
zope.component.interfaces
import
IPossibleSite
from
zope.container.interfaces
import
IContainer
from
zope.container.interfaces
import
IContainer
from
zope.interface
import
Attribute
from
zope.interface
import
Attribute
from
zope.interface
import
Interface
from
zope.interface
import
Interface
from
zope.location.interfaces
import
IPossibleSite
from
zope.location.interfaces
import
IRoot
from
zope.location.interfaces
import
IRoot
from
zope.schema
import
Bool
,
BytesLine
,
Tuple
from
zope.schema
import
Bool
,
BytesLine
,
Tuple
...
@@ -567,7 +567,7 @@ class IObjectManager(IZopeObject, ICopyContainer, INavigation, IManageable,
...
@@ -567,7 +567,7 @@ class IObjectManager(IZopeObject, ICopyContainer, INavigation, IManageable,
"""
"""
def
manage_exportObject
(
id
=
''
,
download
=
None
,
toxml
=
None
,
def
manage_exportObject
(
id
=
''
,
download
=
None
,
toxml
=
None
,
RESPONSE
=
None
,
REQUEST
=
None
):
RESPONSE
=
None
,
REQUEST
=
None
):
"""Exports an object to a file and returns that file."""
"""Exports an object to a file and returns that file."""
def
manage_importObject
(
file
,
REQUEST
=
None
,
set_owner
=
1
):
def
manage_importObject
(
file
,
REQUEST
=
None
,
set_owner
=
1
):
...
...
src/Products/Five/component/__init__.py
View file @
4185a999
...
@@ -14,11 +14,12 @@
...
@@ -14,11 +14,12 @@
"""Five local component look-up support
"""Five local component look-up support
"""
"""
import
zope.interface
import
zope.component
import
zope.component
import
zope.event
import
zope.event
import
zope.interface
from
zope.component.interfaces
import
IComponentLookup
from
zope.component.interfaces
import
IComponentLookup
from
zope.location.interfaces
import
ISite
,
IPossibleSite
from
zope.component.interfaces
import
IPossibleSite
from
zope.component.interfaces
import
ISite
from
zope.traversing.interfaces
import
BeforeTraverseEvent
from
zope.traversing.interfaces
import
BeforeTraverseEvent
import
ExtensionClass
import
ExtensionClass
...
...
src/Products/Five/component/component.txt
View file @
4185a999
...
@@ -19,8 +19,8 @@ First, we register Five's adapter:
...
@@ -19,8 +19,8 @@ First, we register Five's adapter:
Now we create a site object with a stub component registry:
Now we create a site object with a stub component registry:
>>> from OFS.ObjectManager import ObjectManager
>>> from OFS.ObjectManager import ObjectManager
>>> from zope.component.interfaces import ISite
>>> from zope.interface import alsoProvides
>>> from zope.interface import alsoProvides
>>> from zope.location.interfaces import ISite
>>> components = object()
>>> components = object()
>>> site = ObjectManager()
>>> site = ObjectManager()
...
...
src/Products/Five/component/configure.zcml
View file @
4185a999
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<adapter factory=".siteManagerAdapter" />
<adapter factory=".siteManagerAdapter" />
<subscriber
<subscriber
for="zope.
location
.interfaces.ISite
for="zope.
component
.interfaces.ISite
zope.traversing.interfaces.IBeforeTraverseEvent"
zope.traversing.interfaces.IBeforeTraverseEvent"
handler="zope.site.site.threadSiteSubscriber"
handler="zope.site.site.threadSiteSubscriber"
/>
/>
...
...
src/Products/Five/component/interfaces.py
View file @
4185a999
...
@@ -14,8 +14,10 @@
...
@@ -14,8 +14,10 @@
"""Component interfaces
"""Component interfaces
"""
"""
from
zope.
location
.interfaces
import
ISite
from
zope.
component
.interfaces
import
ISite
from
OFS.interfaces
import
IObjectManager
from
OFS.interfaces
import
IObjectManager
class
IObjectManagerSite
(
IObjectManager
,
ISite
):
class
IObjectManagerSite
(
IObjectManager
,
ISite
):
"""Object manager that is also a site."""
"""Object manager that is also a site."""
src/Products/Five/component/makesite.txt
View file @
4185a999
...
@@ -48,7 +48,7 @@ We can turn it into a site by using the ``components.html`` view:
...
@@ -48,7 +48,7 @@ We can turn it into a site by using the ``components.html`` view:
Now we ensure that the folder has been turned into a site:
Now we ensure that the folder has been turned into a site:
>>> from zope.
location
.interfaces import ISite
>>> from zope.
component
.interfaces import ISite
>>> ISite.providedBy(app.folder)
>>> ISite.providedBy(app.folder)
True
True
...
...
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