Re: [Zope] Error Value: 'Set' object has no attribute 'count'
kjcsb wrote at 2007-2-19 22:18 +1300: >I am getting an error message when Zope is trying to evaluate the following: > >elif string.count(product_info['product']['options'],'lookup') == 1: > >The error message is: >Error Value: 'Set' object has no attribute 'count' Apparently "string" is a "Set" object in your context and not the "string" module as you expect. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Error Value: 'Set' object has no attribute 'count'
--On 19. Februar 2007 22:18:38 +1300 kjcsb <[EMAIL PROTECTED]> wrote: I am getting an error message when Zope is trying to evaluate the following: elif string.count(product_info['product']['options'],'lookup') == 1: The error message is: Error Value: 'Set' object has no attribute 'count' How reproduce with an out-of-the-box Zope installation? -aj pgpGHICcp8bMF.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )