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
d0afb92a
Commit
d0afb92a
authored
Aug 29, 2004
by
Christian Theune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- UI improvement for the catalog contents tab
parent
335e194d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
10 deletions
+30
-10
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/Products/ZCatalog/dtml/catalogView.dtml
lib/python/Products/ZCatalog/dtml/catalogView.dtml
+27
-10
No files found.
doc/CHANGES.txt
View file @
d0afb92a
...
@@ -26,6 +26,9 @@ Zope Changes
...
@@ -26,6 +26,9 @@ Zope Changes
Features added
Features added
- UI improvement for the ZCatalog. The "catalog contents" allow
you to filter the cataloged objects by path now.
- Made test.py follow symbolic links on POSIX systems.
- Made test.py follow symbolic links on POSIX systems.
- added utilities/reindex_catalog.py to perform ZCatalog maintenance
- added utilities/reindex_catalog.py to perform ZCatalog maintenance
...
...
lib/python/Products/ZCatalog/dtml/catalogView.dtml
View file @
d0afb92a
<dtml-var manage_page_header>
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<dtml-var manage_tabs>
<dtml-if searchResults>
<dtml-let filterpath="REQUEST.get('filterpath', '/')"
results="searchResults(path=filterpath)">
<dtml-if results>
<script type="text/javascript">
<script type="text/javascript">
<!--
<!--
...
@@ -28,25 +30,40 @@ function toggleSelect() {
...
@@ -28,25 +30,40 @@ function toggleSelect() {
//-->
//-->
</script>
</script>
<form action="&dtml-URL1;" name="objectItems">
<h1 class="form-label section-bar">Path filter</h1>
<dtml-if "'path' in this().Indexes.objectIds()">
<form action="&dtml-URL;">
<p class="form-text">
Path: <input type="text" name="filterpath" value="&dtml-filterpath;"/> <input type="submit" value="Set Filter"/>
</p>
</form>
<dtml-else>
<p class="form-text">
The path filter is <span style="color:red;">disabled</span>. To enable the path filter, add a PathIndex called "path" to this catalog.
</p>
</dtml-if>
<h1 class="form-label section-bar">Objects in this catalog</h1>
<form action="&dtml-URL1;" name="objectItems">
<p class="form-text">
<p class="form-text">
&dtml-id; contains <dtml-var searchResults fmt=collection-length thousands_commas> record(s)
.
The catalog "&dtml-id;" contains <dtml-var results fmt=collection-length thousands_commas> record(s) in the path "&dtml-filterpath;"
.
</p>
</p>
<div class="form-text">
<div class="form-text">
<dtml-in
searchR
esults previous size=20 start=query_start >
<dtml-in
r
esults previous size=20 start=query_start >
<a href="&dtml-URL;?query_start=&dtml-previous-sequence-start-number
;">
<a href="&dtml-URL;?query_start=&dtml-previous-sequence-start-number;&filterpath=&dtml-filterpath
;">
[Previous <dtml-var previous-sequence-size> entries]
[Previous <dtml-var previous-sequence-size> entries]
</a>
</a>
</dtml-in>
</dtml-in>
<dtml-in
searchR
esults next size=20 start=query_start >
<dtml-in
r
esults next size=20 start=query_start >
<a href="&dtml-URL;?query_start=&dtml-next-sequence-start-number;">
<a href="&dtml-URL;?query_start=&dtml-next-sequence-start-number;
&filterpath=&dtml-filterpath;
">
[Next <dtml-var next-sequence-size> entries]
[Next <dtml-var next-sequence-size> entries]
</a>
</a>
</dtml-in>
</dtml-in>
</div>
</div>
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<dtml-in
searchR
esults size=20 start=query_start >
<dtml-in
r
esults size=20 start=query_start >
<dtml-if name="sequence-start">
<dtml-if name="sequence-start">
<tr class="list-header">
<tr class="list-header">
<td width="5%" align="right" colspan="2" valign="top"> </td>
<td width="5%" align="right" colspan="2" valign="top"> </td>
...
@@ -100,7 +117,7 @@ if (document.forms[0]) {
...
@@ -100,7 +117,7 @@ if (document.forms[0]) {
There are no objects in the Catalog.
There are no objects in the Catalog.
</p>
</p>
</dtml-if>
</dtml-if>
</dtml-let>
<dtml-var manage_page_footer>
<dtml-var manage_page_footer>
...
...
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