[Grok-dev] Catalog/Indexes/Search error

Kathy Manwaring kathy at perfectnotes.com.au
Thu Jan 7 18:01:53 EST 2010


Thank you to everyone who worked out the solution to this while I slept
last night! (Isn't a global community an amazing thing?) :-)

I now have a working example - back in my original Windows environment
(and a test system running Ubuntu if required).

Today's work will be to implement the correct setup in my actual
development environment to confirm that this works, then get back to
making progress with my software!

I really do appreciate the work that was done - including confirmation
that it was a real issue, rather than something that I had done by
mistake. I am way too new to the whole Python/Zope/Grok world to rule that
one out, so this has actually been confidence building in confirming that
I am understanding the basic processes.

Kathy

Thu, 7 Jan 2010 Paul Wilson <paulalexwilson at gmail.com>:
> *Revert all changes to your version.cfg file too*
>
> Rerun buildout and make sure it runs fine. If it doesn't, double check
> everything and come back to the list... we'll help you. Restart the
> server and you can now add applications to the ZODB without system
> error. When visiting:
>
> localhost:8080/newpackage/addobjects
>
> I see the page display:
>
> "Done... 10 objects"
>
> When I visit:
>
> localhost:8080/newpackage/protonsearch?search=where
>
ALL of this now works!

> Oh,  and there was a typo in 'update' within ProtonSearch, it should read:
>
> ------------%<-----------
>  82     def update(self, search=""):
>  83         if len(search) > 1:
>  84             self.field_search, self.text_search =
> self.search_content(search)
> ------------%<-----------
>
> Good luck!
>
> Paul

07 Jan 2010 Martijn Faassen <faassen at startifact.com>:
> Paul Wilson wrote:
>> 2010/1/7 Martijn Faassen <faassen at startifact.com>:
>>> I don't have any versions problems in a Grok 1.0. I get the zc.catalog
>>> 1.2. So it must be hurry.query! hurry.query is *not* locked down in
>>> versions.cfg. You should be using 0.9.2 or 0.9.3, *not* hurry.query
>>> 1.0.
>>
>> *Kathy*:
>>
>> In some reasonable directory on your box you need to get hold of
>> hurry.query version 0.9.3:
>>
>> %> svn co http://codespeak.net/svn/z3/hurry.query/tag/hurry.query-0.9.3/
>> hurry.query
>> %> cd hurry.query
>> %> python setup.py install
>
> You should NEVER have to do this! Buildout takes care of this. This only
> risks getting very confused as you install hurry.query into your site
> packages.
>
> hurry.query 0.9.3 was released! You should just have to do this in
> buildout.cfg to lock down hurry.query:
>
> [buildout]
> ...
> versions = versions
>
> [versions]
> hurry.query = 0.9.3
>
> and re-run buildout.
>
> Regards,
>
> Martijn
Done - with hurry.query = 0.9.2





More information about the Grok-dev mailing list