[Zope] Re: ZCatalog indexing help request
Casey Duncan
casey@zope.com
Tue, 17 Dec 2002 14:11:12 -0500
Then:
_.has_key('noindex') and not noindex or 0
Alternately you can set a boolean noindex property in the root folder to =
false=20
and use the previous expression.
hth,
-Casey
On Tuesday 17 December 2002 01:56 pm, Kamal Gill wrote:
> Casey,
>=20
> "not noindex" appears to only index objects that have a noindex=20
> property set as false. What I need is an expression that will not=20
> index objects that have a noindex property set as true. Objects that=20
> have the noindex property set as false *and* objects that do not have a=
=20
> noindex property should be indexed.
>=20
> This is the sort of rule I need...
>=20
> Filename=09=09Properties=09=09Index?
> file1.html=09=09noindex=3Dtrue=09=09no
> file2.html=09=09noindex=3Dfalse=09yes
> file3.html=09=09(none)=09=09=09yes
>=20
> - Kamal
>=20
> On Tuesday, December 17, 2002, at 09:42 AM, Casey Duncan wrote:
>=20
> > Did you try:
> >
> > not noindex
> >
> > hth,
> >
> > -Casey
> >
> > On Monday 16 December 2002 07:25 pm, Kamal Gill wrote:
> >>> not getattr(_.this(),'noindex')
> >>
> >> I'm afraid this did not work for me. There are no error messages
> >> returned, but there are no items added to the catalog as there shoul=
d
> >> be.
> >> Any other ideas?
> >>
> >>
> >> On Monday, December 16, 2002, at 03:30 PM, Maik Jablonski wrote:
> >>
> >>> Kamal Gill wrote:
> >>>>> not this().getProperty('noindex')
> >>>> This works for individual page template objects, but I was hoping =
to
> >>>> ignore collections of objects contained in a folder that contains =
a
> >>>> 'noindex' property.
> >>>
> >>> Ok, I didn't got your problem. Next try...:) You'll have to use
> >>> acquisition:
> >>>
> >>> not getattr(_.this(),'noindex')
> >>>
> >>> this one should do the magic you'll need...
> >>>
> >>> -mj
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> 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-announ=
ce
> >>> http://lists.zope.org/mailman/listinfo/zope-dev )
> >>
> >>
> >> _______________________________________________
> >> 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 )
> >>
> >
>=20
>=20