Re: [Zope-dev] Minor typos/changes to ZCatalog.
On Fri, 23 Feb 2001, Chris McDonough wrote: The short answer is "you can't, easily". I'm a bit confused. Will FieldIndexes also behave like TextIndex, in that they remove stop words, digits and so forth? I think I've picked up somewhere that FieldIndexes treats the whole content of the attribute it indexes as one big chunk of .. erm... characters, and doesn't remove anythink? Correct? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZCatalog madness. (Must log in as emergencyuser.)
On Fri, 23 Feb 2001, Erik Enge wrote: Feedback and debug information coming your way as soon as possible :) Ok, I index DTML Methods, Python objects, and all different kind of things. Then I did a search, meta_type set to 'DTML Method' and it gave me an unauthorized. Strangeness. I've installed the latest Hotfix, but that didn't make any difference either. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Minor typos/changes to ZCatalog.
Erik Enge wrote: Will FieldIndexes also behave like TextIndex, in that they remove stop words, digits and so forth? No. I think I've picked up somewhere that FieldIndexes treats the whole content of the attribute it indexes as one big chunk of .. erm... characters, and doesn't remove anythink? Correct? Yes. But it's not just characters. A field index indexes an object, and uses the overloaded comparison operators for that object to put it in an appropriate place. So, you can index DateTime objects, tuples, strings, numbers, floats... -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Minor typos/changes to ZCatalog.
[Steve Alexander] | But it's not just characters. A field index indexes an object, and uses | the overloaded comparison operators for that object to put it in an | appropriate place. So, you can index DateTime objects, tuples, strings, | numbers, floats... Could a field index succesfully handle the example you posted some time ago, storing the relative path of each object? -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Storing lots of big objects in containers
[Erik Enge] | Can't you just subclass the BTree Folder as you would with OFS.Folder? | | I think you might be confusing the Zope BTree implementation with the | BTree Folder Product? I've tried subclassing BTreeFolder, but then, whenever the object is accessed, zope falls flat on its face. :-\ Tried again, now this error is raised: """ Zope Error Zope has encountered an error while publishing this resource. TypeError Sorry, a Zope error occurred. Traceback (innermost last): File /home/morten/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/morten/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/morten/Zope-2.3.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: CatalogAware) File /home/morten/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/morten/Zope-2.3.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: retrieve_messages) File /home/morten/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: retrieve_messages) File /home/morten/Zope-2.2.4-src/lib/python/Products/GUM/gum.py, line 579, in retrieve_messages (Object: CatalogAware) File /home/morten/Zope-2.2.4-src/lib/python/Products/GUM/gum.py, line 655, in _retrieve_messages (Object: CatalogAware) File /home/morten/Zope-2.2.4-src/lib/python/Products/GUM/gum.py, line 986, in drop_message (Object: CatalogAware) File /home/morten/Zope/lib/python/Products/RFC822Message/util.py, line 86, in store_message (Object: CatalogAware) File /home/morten/Zope/lib/python/Products/RFC822Message/rfc822_message.py, line 66, in manage_add_rfc822_message (Object: CatalogAware) File /home/morten/Zope-2.3.0-src/lib/python/OFS/ObjectManager.py, line 285, in _setObject (Object: CatalogAware) File /home/morten/Zope/lib/python/Products/BTreeFolder/BTreeFolder.py, line 187, in _setOb (Object: CatalogAware) TypeError: object does not support item assignment """ *sound of headscratching* -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Storing lots of big objects in containers
Morten W. Petersen wrote: [Erik Enge] | Can't you just subclass the BTree Folder as you would with OFS.Folder? | | I think you might be confusing the Zope BTree implementation with the | BTree Folder Product? I've tried subclassing BTreeFolder, but then, whenever the object is accessed, zope falls flat on its face. :-\ If you're deriving from BTree, make sure that the class BTree's __init__ method gets called. Otherwise, there will be no BTree obeject to store your data in. Does your class have an __init__ method? If so, you need to put as its first line: MyClass.inheritedAttribute('__init__')(self) Where MyClass is the name of your class. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] More ZCatalog Stuff.
"Michael R. Bernstein" wrote: Hmm. this seems like there ought to be a checkbox next to the 'Add Index' form field labeled 'index numbers?'. Or maybe a 'Text and Numbers' index as an additional index type. I like these ideas :-) Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZCatalog madness. (Must log in as emergencyuser.)
I can't replicate this behavior with normal objects. :-( - Original Message - From: "Erik Enge" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, February 24, 2001 4:58 AM Subject: Re: [Zope-dev] ZCatalog madness. (Must log in as emergencyuser.) On Fri, 23 Feb 2001, Erik Enge wrote: Feedback and debug information coming your way as soon as possible :) Ok, I index DTML Methods, Python objects, and all different kind of things. Then I did a search, meta_type set to 'DTML Method' and it gave me an unauthorized. Strangeness. I've installed the latest Hotfix, but that didn't make any difference either. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZCatalog madness. (Must log in as emergencyuser.)
On Sat, 24 Feb 2001, Chris McDonough wrote: I can't replicate this behavior with normal objects. :-( Riiight... *thinking very hard* I just realized how it all started. Me and a collegue was indexing objects, searching, doing regular development (probably changing classes, attributes etc.) and suddenly we were asked for the (then) SuperUser password. This was under 2.2.5. I remember thinking: "hm. that's odd...". But I had more important things on my mind (and this wasn't really my field of expertice) so I didn't dwell much on it. I'm trying to remember what we did when it happend, but I'm sorry to say I can't (it's been two, three weeks now). But, the good point - I guess - is that it hasn't got anything to do with Zope 2.3.1b1 in perticular. The sad thing, is that the problem is probably due to some of Python classes begin set up correctly, or accordingly to the Product API. That's what I'm guessing anyways. I'll run some more tests to make sure these assumptions are correct. More feedback, and hopefully a solution, to come this week. Sorry for not realizing this sooner, it would've saved us all lots of time. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )