The solution is: <dtml-call "REQUEST.set('number',_.string.atoi(numberpumps))"> -----Messaggio originale----- Da: Meilicke, Scott [mailto:scott.meilicke@intp.com] Inviato: giovedì 17 gennaio 2002 1.15 A: 'TrashMan' Oggetto: RE: [Zope] Integer on portal_catalog.searchResults Try it without the quotes around _string.atoi... You shouldn't need them since REQUEST is already in quotes. -Scott -----Original Message----- From: TrashMan [mailto:trashman@httconsulting.com] Sent: Wednesday, January 16, 2002 4:10 PM To: 'Meilicke, Scott' Subject: R: [Zope] Integer on portal_catalog.searchResults Invalid attribute name, "_string.atoi(numberpumps)", for tag <dtml-call "REQUEST.set('number','"_string.atoi(numberpumps)"')"> , on line 45 of engine_view I've tried all the combination..... Massimiliano -----Messaggio originale----- Da: Meilicke, Scott [mailto:scott.meilicke@intp.com] Inviato: giovedì 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: <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. 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.