[Zope] Yet another Zcatalog question--PrincipiaSearchSource

Casey Duncan casey@zope.com
Mon, 17 Mar 2003 14:18:42 -0500


PrincipiaSearchSource is a callable method. Instead try:

return "%s %s %s" % (self.PrincipiaSearchSource(), self.title, self.Cutli=
ne)

hth,

-Casey

On Monday 17 March 2003 01:17 pm, Chris Muldrow wrote:
> When I try this, it doesn't actually index the data for the search
> source--I've tried both PrincipiaSearchSource and document_src--but it =
does
> this:=20
> <bound method FLSNewsStory.document_src of <FLSNewsStory at
> /News/FLS/2003/032003/03172003/france>> France calls emergency U.N. mee=
ting
> on Iraq's peaceful disarmament, ignoring U.S. deadline
>=20
> >=20
> > def PrincipiaSearchSource(self):
> > return "%s %s %s" % (self.oldPrincipiaSearchSource, self.title,=20
self.Cutline)
> >=20
> > BTW, according to the general style guide attributes should be writte=
n
> > with lower case. (*C*utline)
> >=20
> > thomas