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
54fedc41
Commit
54fedc41
authored
Sep 22, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to use with tag rather than REQUEST.set to avoid
getting the wrong "results".
parent
fb82351a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
lib/python/OFS/findResult.dtml
lib/python/OFS/findResult.dtml
+14
-13
No files found.
lib/python/OFS/findResult.dtml
View file @
54fedc41
...
...
@@ -19,23 +19,23 @@ function new_wnd()
<!--#/in-->
<!--#if btn_submit-->
<!--#
call expr="REQUEST.set('results', PrincipiaFind(this(),
obj_ids=obj_ids
,
obj_metatypes=obj_metatype
s,
obj_searchterm=obj_searchterm
,
obj_expr=obj_expr
,
obj_mtime=obj_mtime
,
obj_mspec=obj_mspec
,
obj_permission=obj_permission
,
obj_roles=obj_roles
,
search_sub=search_sub
,
REQUEST=REQUEST))"-->
<!--#call expr="REQUEST.set('result_len', _.len(results
))"-->
<!--#
with "_.namespace(
results=PrincipiaFind(this()
,
obj_ids=obj_id
s,
obj_metatypes=obj_metatypes
,
obj_searchterm=obj_searchterm
,
obj_expr=obj_expr
,
obj_mtime=obj_mtime
,
obj_mspec=obj_mspec
,
obj_permission=obj_permission
,
obj_roles=obj_roles
,
search_sub=search_sub,
REQUEST=REQUEST
))"-->
<!--#if results-->
<HR>
<STRONG>
Found <!--#var result
_len--> item<!--#if expr="result_len
!= 1"-->s<!--#/if-->.
Found <!--#var result
s fmt=collection-length--> item<!--#if expr="_.len(results)
!= 1"-->s<!--#/if-->.
</STRONG>
<HR>
...
...
@@ -65,6 +65,7 @@ No items were found matching this query.
</STRONG>
<HR>
<!--#/if-->
<!--#/with-->
<!--#/if-->
</BODY>
...
...
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