R: [Zope] Integer on portal_catalog.searchResults

TrashMan trashman@httconsulting.com
Thu, 17 Jan 2002 01:12:35 +0100


Invalid attribute name, "_string.atoi(numberpumps)", for tag=20
<dtml-call "REQUEST.set('number','"_string.atoi(numberpumps)"')">
, on line 45 of engine_view

I've tried all the combination.....=20

Massimiliano

-----Messaggio originale-----
Da: zope-admin@zope.org [mailto:zope-admin@zope.org] Per conto di
Meilicke, Scott
Inviato: gioved=EC 17 gennaio 2002 0.55
A: 'TrashMan'; zope@zope.org
Oggetto: RE: [Zope] Integer on portal_catalog.searchResults


So you can pass numberpumps as an integer with something like:
_string.atoi(numberpumps)

Maybe:=20
  <dtml-in "portal_catalog.searchResults(Type=3D'engine',
=20
number=3D'"_string.atoi(numberpumps)"',
                                          review_state=3D'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=20
 32500

If i do

  <dtml-in "portal_catalog.searchResults(Type=3D'engine',
                                          number=3D'numberpumps',
                                          review_state=3D'published' )" =
>

  ...

  </dtml-in>

I found all the engine-object.

The problem is i pass to searchResults '32500' and not 32500

I've tried with=20

<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 -=20
 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.

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -=20
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )