Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zope-container
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
Boxiang Sun
zope-container
Commits
616009fe
Commit
616009fe
authored
Jan 28, 2009
by
Wolfgang Schnerring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove IAdding, it is ZMI-specific and will be kept in zope.app.container
parent
6c75c342
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
50 deletions
+1
-50
src/zope/container/interfaces.py
src/zope/container/interfaces.py
+1
-50
No files found.
src/zope/container/interfaces.py
View file @
616009fe
...
@@ -18,7 +18,7 @@ $Id$
...
@@ -18,7 +18,7 @@ $Id$
__docformat__
=
'restructuredtext'
__docformat__
=
'restructuredtext'
from
zope.interface
import
Interface
,
Attribute
,
Invalid
from
zope.interface
import
Interface
,
Attribute
,
Invalid
from
zope.component.interfaces
import
I
View
,
I
ObjectEvent
from
zope.component.interfaces
import
IObjectEvent
from
zope.interface.common.mapping
import
IItemMapping
from
zope.interface.common.mapping
import
IItemMapping
from
zope.interface.common.mapping
import
IReadMapping
,
IEnumerableMapping
from
zope.interface.common.mapping
import
IReadMapping
,
IEnumerableMapping
from
zope.location.interfaces
import
ILocation
from
zope.location.interfaces
import
ILocation
...
@@ -218,55 +218,6 @@ class IObjectAddedEvent(IObjectMovedEvent):
...
@@ -218,55 +218,6 @@ class IObjectAddedEvent(IObjectMovedEvent):
"""An object has been added to a container."""
"""An object has been added to a container."""
class
IAdding
(
IView
):
def
add
(
content
):
"""Add content object to container.
Add using the name in `contentName`. Returns the added object
in the context of its container.
If `contentName` is already used in container, raises
``DuplicateIDError``.
"""
contentName
=
Attribute
(
"""The content name, as usually set by the Adder traverser.
If the content name hasn't been defined yet, returns ``None``.
Some creation views might use this to optionally display the
name on forms.
"""
)
def
nextURL
():
"""Return the URL that the creation view should redirect to.
This is called by the creation view after calling add.
It is the adder's responsibility, not the creation view's to
decide what page to display after content is added.
"""
def
nameAllowed
():
"""Return whether names can be input by the user."""
def
addingInfo
():
"""Return add menu data as a sequence of mappings.
Each mapping contains 'action', 'title', and possibly other keys.
The result is sorted by title.
"""
def
isSingleMenuItem
():
"""Return whether there is single menu item or not."""
def
hasCustomAddView
():
"This should be called only if there is `singleMenuItem` else return 0"
class
INameChooser
(
Interface
):
class
INameChooser
(
Interface
):
def
checkName
(
name
,
object
):
def
checkName
(
name
,
object
):
...
...
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