[Zope] Integer on portal_catalog.searchResults
Meilicke, Scott
scott.meilicke@intp.com
Wed, 16 Jan 2002 15:55:10 -0800
So you can pass numberpumps as an integer with something like:
_string.atoi(numberpumps)
Maybe:
<dtml-in "portal_catalog.searchResults(Type='engine',
number='"_string.atoi(numberpumps)"',
review_state='published' )" >
-Scott
-----Original Message-----
From: TrashMan [mailto:trashman@httconsulting.com]
Sent: Wednesday, January 16, 2002 3:51 PM
To: zope@zope.org
Subject: [Zope] Integer on portal_catalog.searchResults
Hi,
I want to do a search on the portal_catalog where a key is an
integer....but.....i don't find the solution!
If i do
<dtml-var numberpumps>
I have
32500
If i do
<dtml-in "portal_catalog.searchResults(Type='engine',
number='numberpumps',
review_state='published' )" >
...
</dtml-in>
I found all the engine-object.
The problem is i pass to searchResults '32500' and not 32500
I've tried with
<dtml-call REQUEST.set('Type', 'engine')>
<dtml-call REQUEST.set('number', numberpumps)>
<dtml-in "portal_catalog.searchResults()">
...
</dtml-in>
But i've the same results!
Pratically number in REQUEST is a string and not an integer!!
Do you have some solutions??
Thanks
Massimiliano
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
The information contained in this email message may be privileged and is
confidential information intended only for the use of the recipient or any
employee or agent responsible for delivering it to the intended recipient.
Any unauthorized use, distribution or copying of this information is
strictly prohibited and may be unlawful. If you have received this
communication in error, please notify the sender immediately and destroy the
original message and all attachments from your electronic files.