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
34bde320
Commit
34bde320
authored
May 13, 2009
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ``IAdding`` interface from ``zope.browser``
(rather than ``zope.app.container``).
parent
ca086062
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
7 deletions
+9
-7
doc/CHANGES.rst
doc/CHANGES.rst
+3
-0
src/Products/Five/browser/adding.py
src/Products/Five/browser/adding.py
+3
-3
src/Products/Five/doc/products/ViewsTutorial/configure.zcml
src/Products/Five/doc/products/ViewsTutorial/configure.zcml
+1
-1
src/Products/Five/form/metaconfigure.py
src/Products/Five/form/metaconfigure.py
+1
-1
versions.cfg
versions.cfg
+1
-2
No files found.
doc/CHANGES.rst
View file @
34bde320
...
...
@@ -11,6 +11,9 @@ Trunk (unreleased)
Restructuring
+++++++++++++
- Use ``IAdding`` interface from ``zope.browser``, rather than
``zope.app.container``.
- No longer depend on ``zope.app.appsetup``; use the event implementations
from ``zope.processlifetime`` instead.
...
...
src/Products/Five/browser/adding.py
View file @
34bde320
...
...
@@ -42,7 +42,7 @@ from zope.traversing.browser.absoluteurl import absoluteURL
from
zope.exceptions.interfaces
import
UserError
from
zope.lifecycleevent
import
ObjectCreatedEvent
from
zope.
app.contain
er.interfaces
import
IAdding
from
zope.
brows
er.interfaces
import
IAdding
from
zope.app.publisher.browser.menu
import
getMenu
from
zExceptions
import
BadRequest
...
...
@@ -55,7 +55,7 @@ class BasicAdding(BrowserView):
implements
(
IAdding
,
IPublishTraverse
)
def
add
(
self
,
content
):
"""See zope.
app.contain
er.interfaces.IAdding
"""See zope.
brows
er.interfaces.IAdding
"""
container
=
self
.
context
name
=
self
.
contentName
...
...
@@ -90,7 +90,7 @@ class BasicAdding(BrowserView):
contentName
=
None
# usually set by Adding traverser
def
nextURL
(
self
):
"""See zope.
app.contain
er.interfaces.IAdding"""
"""See zope.
brows
er.interfaces.IAdding"""
# XXX this is definitely not right for all or even most uses
# of Five, but can be overridden by an AddView subclass, using
# the class attribute of a zcml:addform directive
...
...
src/Products/Five/doc/products/ViewsTutorial/configure.zcml
View file @
34bde320
...
...
@@ -46,7 +46,7 @@
<!-- .democontent.IDemoContent views -->
<browser:page
for="zope.
app.contain
er.interfaces.IAdding"
for="zope.
brows
er.interfaces.IAdding"
name="addDemoContent.html"
template="addDemoContent.pt"
class=".browser.DemoContentAddView"
...
...
src/Products/Five/form/metaconfigure.py
View file @
34bde320
...
...
@@ -18,6 +18,7 @@ $Id$
from
App.class_init
import
InitializeClass
from
ExtensionClass
import
Base
from
zope.browser.interfaces
import
IAdding
import
zope.component
from
zope.interface
import
Interface
from
zope.i18nmessageid
import
MessageFactory
...
...
@@ -25,7 +26,6 @@ _ = MessageFactory('zope')
from
zope.app.publisher.browser.menumeta
import
menuItemDirective
from
zope.app.form.browser.metaconfigure
import
BaseFormDirective
from
zope.app.container.interfaces
import
IAdding
from
Products.Five.form
import
EditView
,
AddView
from
Products.Five.metaclass
import
makeClass
...
...
versions.cfg
View file @
34bde320
...
...
@@ -35,7 +35,6 @@ zope.app.broken = 3.5.0
zope.app.cache = 3.5.0
zope.app.catalog = 3.8.0
zope.app.component = 3.7.0
zope.app.container = 3.7.2
zope.app.content = 3.4.0
zope.app.dav = 3.5.0
zope.app.debug = 3.4.1
...
...
@@ -73,7 +72,7 @@ zope.app.zopeappgenerations = 3.5.0
zope.app.zptpage = 3.5.0
zope.authentication = 3.7.0
zope.broken = 3.5.0
zope.browser =
0.5.0
zope.browser =
1.1
zope.cachedescriptors = 3.5.0
zope.catalog = 3.8.0
zope.component = 3.6.0
...
...
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