-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- modify z.a.folder.browser to use browser:containerViews
(for conciseness and to set a good example) - fix <browser:containerViews index="..."/> to create an index page instead of a contents page (merged from Zope3 trunk revision 27485)
- Loading branch information
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
The containerViews directive lets us associate some standard forms | ||
for containers with an interface. There's an "index.html" view that | ||
provides a listing of the contained objects without provinding any way | ||
to manage them (though it allows us to visit them by clicking on | ||
links). | ||
|
||
We can get this view from the root folder easily:: | ||
|
||
>>> response = http(r""" | ||
... GET / HTTP/1.1 | ||
... """) | ||
|
||
And we can check that there isn't a form (where the management | ||
operations would have buttons):: | ||
|
||
>>> body = response.getBody().lower() | ||
>>> "<form" in body | ||
False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters