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
b8849ab2
Commit
b8849ab2
authored
Jul 29, 2007
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test failures in forms.txt.
parent
104751ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
lib/python/Products/Five/browser/adding.py
lib/python/Products/Five/browser/adding.py
+11
-0
lib/python/Products/Five/form/tests/forms.txt
lib/python/Products/Five/form/tests/forms.txt
+0
-1
No files found.
lib/python/Products/Five/browser/adding.py
View file @
b8849ab2
...
@@ -35,6 +35,7 @@ from zope.app.container.interfaces import IContainerNamesContainer
...
@@ -35,6 +35,7 @@ from zope.app.container.interfaces import IContainerNamesContainer
from
zope.app.container.constraints
import
checkFactory
,
checkObject
from
zope.app.container.constraints
import
checkFactory
,
checkObject
from
zope.app.publisher.browser.menu
import
getMenu
from
zope.app.publisher.browser.menu
import
getMenu
from
Acquisition
import
aq_inner
from
zExceptions
import
BadRequest
from
zExceptions
import
BadRequest
from
OFS.SimpleItem
import
SimpleItem
from
OFS.SimpleItem
import
SimpleItem
...
@@ -205,6 +206,16 @@ class ContentAdding(Adding, SimpleItem):
...
@@ -205,6 +206,16 @@ class ContentAdding(Adding, SimpleItem):
menu_id
=
"add_content"
menu_id
=
"add_content"
def
__getParent
(
self
):
# This class is based on Acquisition and accesses self.context
# We need to call aq_inner on it, or we get a funky aq_chain
return
getattr
(
self
,
'_parent'
,
aq_inner
(
self
.
context
))
def
__setParent
(
self
,
parent
):
self
.
_parent
=
parent
__parent__
=
property
(
__getParent
,
__setParent
)
class
ObjectManagerNameChooser
:
class
ObjectManagerNameChooser
:
"""A name chooser for a Zope object manager.
"""A name chooser for a Zope object manager.
"""
"""
...
...
lib/python/Products/Five/form/tests/forms.txt
View file @
b8849ab2
...
@@ -24,7 +24,6 @@ Let's set up a testbrowser:
...
@@ -24,7 +24,6 @@ Let's set up a testbrowser:
>>> from Products.Five.testbrowser import Browser
>>> from Products.Five.testbrowser import Browser
>>> browser = Browser()
>>> browser = Browser()
>>> browser.handleErrors = False
>>> browser.addHeader('Accept-Language', 'en-US')
>>> browser.addHeader('Accept-Language', 'en-US')
Add forms
Add forms
...
...
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