Re: [Zope-dev] More ZCatalog Stuff.

2001-02-24 Thread Christopher Petrilli
Chris Withers [[EMAIL PROTECTED]] wrote: > "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 :-)

[Zope-dev] Re: [Zope] Re: DirtyWordsFilter

2001-02-24 Thread Erik Enge
[Jason, I'm CCing the Zope-dev, someone might have another solution] On Sat, 24 Feb 2001, Jason wrote: > hi I have a Script now with this: > > > aString = 'lots and lots of angry-customer-bad-words' > > > > for word in string.split(aString, ' '): > > for catalog_brain in self.Catalog.s

Re: [Zope-dev] ZCatalog madness. (Must log in as emergencyuser.)

2001-02-24 Thread Chris McDonough
If you're using getobject to retrieve bog-standard indexed DTML methods, Python Scripts, etc., you should never get an unauthorized from getobject (although you *will* later get an unauthorized if youy try to do anything with that object if you don't have an adequate set of roles). It's only if y

Re: [Zope-dev] ZCatalog madness. (Must log in as emergencyuser.)

2001-02-24 Thread Erik Enge
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

Re: [Zope-dev] ZCatalog madness. (Must log in as emergencyuser.)

2001-02-24 Thread Chris McDonough
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 emerg

Re: [Zope-dev] More ZCatalog Stuff.

2001-02-24 Thread Chris Withers
"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 ___ Z

[Zope-dev] setup Idle to debug Zope

2001-02-24 Thread Jan Murre
Hi all, Has anybody tried to set up Idle as a Zope debugger? Is it possible, is it of any use? If so, how to set it up? Regards, Jan ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HT

Re: [Zope-dev] Storing lots of big objects in containers

2001-02-24 Thread Steve Alexander
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

Re: [Zope-dev] Storing lots of big objects in containers

2001-02-24 Thread Erik Enge
On 24 Feb 2001, Morten W. Petersen wrote: > I've tried subclassing BTreeFolder, but then, whenever the object is > accessed, zope falls flat on its face. :-\ Hm. That's usually a sign of a method being called that doesn't exist in my experience. __

Re: [Zope-dev] Storing lots of big objects in containers

2001-02-24 Thread Morten W. Petersen
[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. :-\

Re: [Zope-dev] Minor typos/changes to ZCatalog.

2001-02-24 Thread Morten W. Petersen
[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 hand

[Zope-dev] Storing lots of big objects in containers

2001-02-24 Thread Spicklemire, Jerry
Morten asked: > ..I can't really use any external storages, as the reason for > bringing these objects into the ZODB was to structure them > and make then indexable by ZCatalog This sounds like the sort of thing ExtFile was made for. Your metadata still lives in the ZODB, but points to the file

Re: [Zope-dev] Storing lots of big objects in containers

2001-02-24 Thread Erik Enge
On 24 Feb 2001, Morten W. Petersen wrote: > Someone suggested using BTreeFolder, but the documentation > and examples for it are rather scarce. Does anyone know > of products that make a good example use of BTreeFolder? Can't you just subclass the BTree Folder as you would with OFS.Folder? I

[Zope-dev] Storing lots of big objects in containers

2001-02-24 Thread Morten W. Petersen
Hi guys, A product I'm currently developing has a rather big (in many ways) problem. A product instance may store many, (thousands) of big objects, ranging from 1-50 MB in size. Now, whenever the product instance is accessed, with say for example 100 objects with a size of 2MB each, Zope slows

Re: [Zope-dev] Minor typos/changes to ZCatalog.

2001-02-24 Thread Steve Alexander
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

Re: [Zope-dev] ZCatalog madness. (Must log in as emergencyuser.)

2001-02-24 Thread Erik Enge
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 insta

Re: [Zope-dev] Minor typos/changes to ZCatalog.

2001-02-24 Thread Erik Enge
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 attri