Re: [Zope-dev] Operation Properties.

2001-09-19 Thread Erik Enge
[Dieter Maurer] | Have a look at Date properties. They are already objects. Yes, you are correct. WarpFramework, which I'm using for this project has support for the type of properties I'm talking about. Rather, a framework for using properties. Getting similar behaviour into Zope was the

[Zope-dev] Operation Properties.

2001-09-17 Thread Erik Enge
'Evening, Zopistas. I'm developing an accounting product right now, and one of the more interesting aspects of how to solve this issue is how do handle currencies. I've decided to let each entry (transaction) know about the currency it was in. At a later stage, the user is given the option to

Re: [Zope-dev] Operation Properties.

2001-09-17 Thread Erik Enge
[Chris Withers] | Go look at ComputedAttributes... Yupp. But are you suggesting that ComputedAttributes are the end-all be-all solution to the problem I proposed, or only a part of it? As I see it, they hardly specify a framework for attributes.

Re: [Zope-dev] Getting Unauthorized from __bobo_traverse__.

2001-09-13 Thread Erik Enge
[Michael R. Bernstein] | On Wed, 2001-09-12 at 22:45, Erik Enge wrote: | | *scabbers off to the CVS* Thanks! :) | | Eeew! | | I hope you meant 'scampers', as I have horrific visions of what | 'scabbering off' would look like... Hehe! Oops... Yeah, that's what I meant. Ever since I

Re: [Zope-dev] Getting Unauthorized from __bobo_traverse__.

2001-09-12 Thread Erik Enge
[Evan Simpson] | If you grab OFS/Traversal.py (I think) from the CVS root, it should | fix the problem. *scabbers off to the CVS* Thanks! :) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross

[Zope-dev] Getting Unauthorized from __bobo_traverse__.

2001-09-11 Thread Erik Enge
Hi! I've have this custom __bobo_traverse__ hook: def __bobo_traverse__(self, REQUEST, name): Intercept the traversal if name: if hasattr(self, name): return getattr(self, name) When I call the object like this: /objecta ie. using __call__ (I

Re: [Zope-dev] Pre-process a REQUEST before Zope does anything else

2001-09-11 Thread Erik Enge
[Dario Lopez-Kästen] | I need to be able do some processing for each and every request that | is sent to zope to determine some enviromental thingies, *before* | the request is processed by the main zope mechanisms. I'm not entirely sure, but you might be looking for something like this:

Re: [Zope-dev] Getting Unauthorized from __bobo_traverse__.

2001-09-11 Thread Erik Enge
[Erik Enge] | def index_html(self): | we have a doc string | return DTMLFile('index_html', globals()) | | And that worked [...] Actually it doesn't. Don't know why I thought it did. This however does work: index_html__roles__ = ['Manager'] def index_html(self): we

[Zope-dev] PersistentMapping

2001-07-13 Thread Erik Enge
Hi, I'm trying to use PersistentMapping instead of a regular mapping object, but I'm running into some problems. When I add and remove stuff from the mapping it sometimes fail or removes the wrong thing. Do I need adapt my code to it, or should it be straight forward?

Re: [Zope-dev] How long below the radar?

2001-07-10 Thread Erik Enge
[alan runyan] | I believe that before ZOPE can truely take off it will need a | miniVend like solution to get the PHP/CF/ASPers to ZOPE. What is miniVend? | I would like to see a Roadmap for ZOPE. Aye! ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] How long below the radar?

2001-07-10 Thread Erik Enge
[[EMAIL PROTECTED]] | Other than: http://dev.zope.org/Resources/ZopeDirections.html? Well, it is from February. And besides, it describes what we have/semi-have now, and not what is planned for the future (for example, where do DC think Zope is in three, four or five years?)

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-29 Thread Erik Enge
On Thu, 28 Jun 2001, Stephan Richter wrote: I think we need to setup a separate mailing list for this project. Can you do that? I think the discussion is getting too specific now. We can use the mk-zprod-devel mailinglist at thingamy.com:

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-29 Thread Erik Enge
On Thu, 28 Jun 2001, Stephan Richter wrote: All what the wizard will do is provide the user with a nice interface/GUI to enter the information. I will then pass the information to the above mentioned management methods and the MakeZProduct Product will then generate the code and save it to

Re: [Zope-dev] help with external method

2001-06-29 Thread Erik Enge
On Fri, 29 Jun 2001, Edgardo Zulian wrote: I'm just new with Zope, and I m trying to make an external method with python that return me the names of the files that are in an especific folder of the Zope i.e:the folder: Root Folder/function_repository.. I'm not quite sure what you want to

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge
On Thu, 28 Jun 2001, Tino Wildenhain wrote: Hm. a simple collection of questions? Certainly not. I talking of a whole mechanism, where you group input and output into contexts. From application view it would be an API, it schould work no matter if the input/ output is generated from and to

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge
On Thu, 28 Jun 2001, Stephan Richter wrote: Here my list of questions: 1. Will we create ZClass or Python Products? Python Products. Product-name 2. I think it should ask some more meta-data information here, such as License, Author(s), Description Yepp :) A list of images

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge
On Thu, 28 Jun 2001, Erik Enge wrote: name: attrib1 default value: None name: attrib2 default value: something No, that wouldn't work, because you might want None as the default for that attribute. Maybe Nothing, or somesuch

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge
On Thu, 28 Jun 2001, Stephan Richter wrote: Well, but where are the images coming from. The Wizard is a Web Frontend, so we would need to upload the images or copy them from somewhere else from the file system. From the filesystem of the user? BTW, the /img directory is non-standard.

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge
On Thu, 28 Jun 2001, Stephan Richter wrote: For example we would need: manage_make_initializeProduct(...) manage_make_addClass(...) manage_make_addProperty(...) manage_make_addIcon(...) manage_make_addSubClass(mainClass, ...) I just realised something. How do you need this to work?

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-27 Thread Erik Enge
On Tue, 26 Jun 2001, Stephan Richter wrote: Okay, okay...I stayed up and typed it down pretty quick (2 hours). I attached it to this mail. It is plain text, since I was too lazy to do it in HTML. It might be a little unstructured, but I am too tired to fix that now. So what does it do? :)

Re: [Zope-dev] ZPL and GPL

2001-06-27 Thread Erik Enge
On Wed, 27 Jun 2001, Paul Everitt wrote: It is a *desire* of ours to be GPL-compatible. Not a requirement, as it can be awfully tricky, complicated, and time-consuming to get there. But we've told people that we're intending to give it a shot. That's much appretiated :)

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-27 Thread Erik Enge
On Wed, 27 Jun 2001, Tino Wildenhain wrote: if there are always many objects to create, may be it would be better to have a generic mechanism for asking users and represent app-/management interfaces rather then copying all the stuff over and over? That's what mk-zprod does. Or rather,

Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?)

2001-06-26 Thread Erik Enge
On Tue, 26 Jun 2001, Giovanni Maruzzelli wrote: I'm not so picky about bloating, but adding a document of 1K adds some 400K, and keeps growing. : How much eat for you (I know you cataloged some 50K documents)? I can't remember, but surely not that much. I had some 30.000 documents that

Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?)

2001-06-26 Thread Erik Enge
On Tue, 26 Jun 2001, Eric Roby wrote: The bottom line to all this venting (and I am not trying to shoot the messenger here) is that I need to understand where my efforts should be focused. If I need to abandon ZClasses in lieu of pure Python, then I need to know that now so I don't waste

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalogbloat problem (berkeleydb is a solution?))

2001-06-26 Thread Erik Enge
On Tue, 26 Jun 2001, Morten W. Petersen wrote: How about meta-programming (designing) via the Zope interface, with UML or somesuch; automatically generating Python code, then enable designers to use a ZFormulator-ish product to edit the interface while a programmer can work on the 'backend'

Re: [Zope-dev] ZPL and GPL

2001-06-26 Thread Erik Enge
On 26 Jun 2001, Michael R. Bernstein wrote: DC has been up-fron about how they make money. They do so by selling development services using Zope as a toolkit/platform. Yes, and forcing those paying customers to use GPL is very hard (and not very nice, either). Well, I guess the issue is

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalogbloat problem (berkeleydb is a solution?))

2001-06-26 Thread Erik Enge
On Tue, 26 Jun 2001, Stephan Richter wrote: I looked at the code pretty quick. I like it from the first view. It is very clean and easy to see the functionality. I think, if you can define an ZPI for your communication, then it will be no problem to put a SmartWizard Class Generator

Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?)

2001-06-26 Thread Erik Enge
Giovanni, which Zope version are you running? On Tue, 26 Jun 2001, Chris McDonough wrote: How many indexes do you have, what are the index types, and what do they index? Likewise, what about metadata? In your last message, you said there's about 20. That's a heck of a lot of indexes. Do

[Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?)

2001-06-25 Thread Erik Enge
(I removed [EMAIL PROTECTED].) On Mon, 25 Jun 2001, Giovanni Maruzzelli wrote: Any hints on how to manage something like? We use both textindexes, fieldindexes, and keywordsindexes (textindex on string properties, fieldindexes on boolean and datetime, keywordindex on strings). Maybe one

Re: [Zope-dev] ZPL and GPL

2001-06-25 Thread Erik Enge
On 25 Jun 2001, Michael R. Bernstein wrote: Other than keeping the door open for this eventuality, is there any other reason to choose a BSD style license over the GPL? Yes. A commercial one; an imperative one. If I make a Zope Python Product, I must license it as GPL to be able to

Re: [Zope-dev] ZPL and GPL

2001-06-25 Thread Erik Enge
On Mon, 25 Jun 2001, Shane Hathaway wrote: (Paul says:) I think the goal should be for Zope and Python to converge on the same license, with perhaps the new license being some off-the-shelf license like Apache's. Wow, lobbying the management team at DC is pretty easy ;-). It's good to see

Re: [Zope-dev] Re: [Zope-dev]ZPL and GPL licensing issues

2001-06-23 Thread Erik Enge
[Simon Michael] | Now you're talking. Seconded. Me too! And if the management team really needs alot of serious breakdowns as to why this is a problem (GPL-incompatability, that is) let me know and I'll drum up a nice little mail of my own. :) ___

Re: [Zope-dev] ZPL and GPL licensing issues

2001-06-22 Thread Erik Enge
On Fri, 22 Jun 2001, Shane Hathaway wrote: Now, if the ZPL were GPL compatible, the GPL would be in full effect for products. Digital Creations would automatically have the rights to redistribute derivatives of ZWiki. I believe DC would even be able to distribute ZWiki with Zope as long as

Re: [Zope-dev] ZPL and GPL licensing issues

2001-06-22 Thread Erik Enge
On Fri, 22 Jun 2001, Morten W. Petersen wrote: Yes, you can distribute a GPL-compatible licensed code with GPL licensed code without licencing the former under GPL. Take a look in the Linux-kernel source tree for example. Ok, good. Then Thingamy's intermediate solution will be to create a

Re: [Zope-dev] ZPL and GPL licensing issues

2001-06-21 Thread Erik Enge
On Wed, 20 Jun 2001, Gregor Hoffleit wrote: You're not allowed to distribute a derived work of GPL code with proprietary code incorporated. Ok, this is the situation. We in Thingamy usually create all our products under the GPL. Then we give the whole shebang to the client we have been

Re: [Zope-dev] ZPL and GPL licensing issues

2001-06-21 Thread Erik Enge
On 21 Jun 2001, Federico Di Gregorio wrote: if your product derives from GUM or uses internal interfaces, no, you can't. if your product uses only well the defined external api or access gum through zope, then, imho, yes. Ok, that's good. Then it means we can potentially use GPL Zope Python

Re: [Zope-dev] ZPL and GPL licensing issues

2001-06-21 Thread Erik Enge
On Thu, 21 Jun 2001, Nils Kassube wrote: * Jim Penny [EMAIL PROTECTED] [2001-06-20 19:12]: As far as I can tell you are wrong, but there are certainly gray areas. The last time this came up I wrote such a scenario up and tried to get FSF clarification. Nothing ever came back. I

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-20 Thread Erik Enge
On Tue, 19 Jun 2001, Chris Withers wrote: I'm guessing this is the point at which your problems become mine? ;-) *evil laughter* Yes :-) We should write about it and publish it to the community... ___ Zope-Dev maillist - [EMAIL PROTECTED]

RE: [Zope-dev] ZPL and GPL licensing issues

2001-06-20 Thread Erik Enge
On 20 Jun 2001, Federico Di Gregorio wrote: i am sure that the QPL and the ZPL are completely incompatible but nobody cares because nobody really thinks that one is better than the other... I might be misunderstanding here, if that's the case I appologies. Just to clarify, for us at

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-19 Thread Erik Enge
On Mon, 18 Jun 2001, Andreas Jung wrote: These are good ideas to improve the TextIndex. I already encouraged Erik to put alltogether into a Fishbowl proposal, Which I would do, if I had time. Which I will have, but not for another two weeks. :-)

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-17 Thread Erik Enge
On Sat, 16 Jun 2001 [EMAIL PROTECTED] wrote: Lexis-Nexis: Sean w/2 Upton (where w/2 is within 2 words) This wouldn't be hard to make happen. I don't know if it is better to do it before of after the parsers, though. Maybe a more userfriendly alias would be best as a default?

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-17 Thread Erik Enge
On Fri, 15 Jun 2001, Chris McDonough wrote: Once you're satisfied with the implementation, would you be willing submit the module to the collector? Do you think you (or someone else for that matter) could have a look at [1] the method that returns the position in the document -

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-16 Thread Erik Enge
explicitly with adjoinedby in the query) is to insert adjoinedby in phrased searches: erik enge- erik adjoinedby enge erik ... enge - erik near enge What do you think? I'll be submitting PositionIndex.py and ResultList.py in a day or two

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-15 Thread Erik Enge
On Thu, 14 Jun 2001, Chris McDonough wrote: Excellent! I haven't looked at it in detail, but thanks very much for contributing it! Maybe we can roll some of this work into a position-aware Text Index It is actually a TextIndex on steoroids. Remove the _proximity attribute and a couple of

[Zope-dev] SearchIndex/ZCatalog comments.

2001-06-15 Thread Erik Enge
When writing the PossitionIndex, a bunch of questions arrised (Zope 2.3.2): This is from UnTextIndex.py Zope 2.3.2 line 250 (or there abouts). Why is the wordMap needed? def getEntryForObject(self, rid, default=None): Get all information contained for a specific object.

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-15 Thread Erik Enge
On Thu, 14 Jun 2001, Erik Enge wrote: To be really useful I think the PossitionIndex' _proximity dictionary needs to be turned into a BTree of some sort, but apart from that I don't know what is missing. It's now using BTrees. And I renamed it to PositionIndex (thanks to Chris Withers

Re: [Zope-dev] Advanced REQUEST inside Python Class Problem

2001-06-11 Thread Erik Enge
On Sun, 10 Jun 2001, Stephan Richter wrote: But, if I try: dtml-var ObjectInstance, then I cannot use self.REQUEST, since the namespace is somehow not passed. Don't you have to use dtml-var ObjectInstance()? ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] multiple servers!

2001-06-11 Thread Erik Enge
On Mon, 11 Jun 2001, Stian Jenssen wrote: I wan't to run two webservers on the same machine one, zope/apache an one apache. Can I set it up with 2 ports eg. 8080 and 80 but how do I do it? Edit the z2.py file in your zope/ directory, look for HTTP_PORT and adjust that to your needs.

Re: [Zope-dev] ANN: ReplacingDateTime proposal

2001-06-08 Thread Erik Enge
On Thu, 7 Jun 2001, Andreas Jung wrote: Feel free to review and comment the propsal to replace the current DateTime module of Zope by the mxDateTime module: From the proposal: License issues mxDateTime stands under the EGENIX Public License that is considered to be an Open Source license.

Re: [Zope-dev] ANN: ReplacingDateTime proposal

2001-06-08 Thread Erik Enge
On Fri, 8 Jun 2001, Stephan Richter wrote: See an earlier post on a different thread. Chris wrote that the license is BSDish and is therefore compatible with ZPL. This means that mxDateTime could be distributed with Zope. Yes, but in the proposal Andreas mentions the GPL, not the ZPL, and

Re: [Zope-dev] using php on zope

2001-06-08 Thread Erik Enge
On Fri, 8 Jun 2001, Stian Jenssen wrote: Hi there! Hello :) I wan't to use php with zope, does anybody know how the header syntax shall look like? Tried diffrent syntaxes but i get wierd outputs, not as expected. Try this one: URL:http://www.zope.org/Members/Mamey/PHP.

Re: [Zope-dev] Bulletproof ZCatalog proposal

2001-06-07 Thread Erik Enge
On Thu, 7 Jun 2001, Shane Hathaway wrote: It really doesn't matter how many conflicts there are. Within a single transaction, 1 conflict is as bad as 100. Why? But I think I have a solution for all of the issues in conflict resolution. Whee! If you, or anyone else, is also

Re: [Zope-dev] Zope Server hanging :-(

2001-06-06 Thread Erik Enge
On Wed, 6 Jun 2001 [EMAIL PROTECTED] wrote: ... at least then we know what the exception is. : Again - try that code in an interactive interpreter if you really want to find out what's going on... Yeah, thanks, that would work as a workaround, but isn't this buggish behaviour?

Re: [Zope-dev] 60GB Data.fs?

2001-06-06 Thread Erik Enge
[no cross-posting, please] On Wed, 6 Jun 2001, Bjorn Stabell wrote: We're planning a Yahoo! Clubs like system that should scale to about 30, 000 users. Assuming about 3,000 groups and 20MB per group (group functionality includes photo albums), gives a database size of 60GB. Assuming on

Re: [Zope-dev] 60GB Data.fs?

2001-06-06 Thread Erik Enge
On Wed, 6 Jun 2001, Erik Enge wrote: I'm running a 1GB Data.fs with CompressedStorage here and that takes probably about 3-5 minutes on a 1GHz with 1GB RAM. I keep banging my head against it, but it just won't run faster. Oops, misleading you there. Actually, FileStorage uses about 40

Re: [Zope-dev] Zope Server hanging :-(

2001-06-06 Thread Erik Enge
On Wed, 6 Jun 2001, Richard Jones wrote: http://www.zope.org/Members/anthony/BarewordExcepts Feel free to find the bad except: and submit a patch... Ugh. There are tons of them... I'll see what I have time for. ___ Zope-Dev maillist -

Re: SV: [Zope-dev] 60GB Data.fs?

2001-06-06 Thread Erik Enge
On Wed, 6 Jun 2001, Magnus Heino (Rivermen) wrote: Where can I get PartitionedFileStorage? Here: URL:http://www.zope.org/Members/hathawsh/PartitionedFileStorage Didn't show up in any searches, though. Maybe worth indexing? ___ Zope-Dev maillist

Re: [Zope-dev] 60GB Data.fs?

2001-06-06 Thread Erik Enge
On Wed, 6 Jun 2001, Matt Hamilton wrote: Out of interest, is this startup time avoided when using BerkeleyDB as the storage? I know that it has its own indexes etc. so I am wondering if it no longer needs to load an index into memory. I'm not sure, but as I said in a previous

Re: [Zope-dev] [Announce] API Documentation Fishbowl Project

2001-06-06 Thread Erik Enge
On Mon, 4 Jun 2001, Amos Latteier wrote: I encourage you to check it out and leave your comments, criticisms, and suggestions. I like. That pretty much captures it :) There is one thing, though. Let's say I have this class NiceBigCar. The developers docs from what you suggest are fine,

Re: [Zope-dev] Zope Server hanging :-(

2001-06-05 Thread Erik Enge
On Sun, 29 Apr 2001, Erik Enge wrote: I'll try to do an hour or so of analysing this tomorrow, and I'll get back to you. :-) Well, now we all know what vikings believe an hour or so mean, don't we? I figured it out, I think. Let's say I have these two methods: def a(): b() def

[Zope-dev] SearchIndex: is this behaviour in 2.4?

2001-06-04 Thread Erik Enge
Hi, sorry I can't test this myself. I get this behaviour in 2.3.2, and I find it strange. I'd classify it as a bug. If I pass this query to a TextIndex: (word1 OR word2) AND (word3) it is first translated to this: [['word1', 'or', 'word2'], 'and', ['word3']] which is fine. But then,

Re: [Zope-dev] ANNOUNCE: Zope 2.4.0 alpha 1 released

2001-06-01 Thread Erik Enge
On Thu, 31 May 2001, Brian Lloyd wrote: Zope 2.4.0 alpha 1 has been released - you can download it from Zope.org: Cool stuff. I have a couple of comments, though. For future ref., should I post them to the Collector? - lib/python/Products/PluginIndexes/__init__.py is missing the ZPL - why

Re: [Zope-dev] Bulletproof ZCatalog proposal

2001-05-31 Thread Erik Enge
On Wed, 30 May 2001, Shane Hathaway wrote: I have written a proposal. So, if I understand correctly, when this is implemented, will the ZCatalog always resolve conflicts and never raise ConflictErrors? If there are no ConflictErrors in the main object system? I think I'm missing the point

Re: [Zope-dev] Bulletproof ZCatalog proposal

2001-05-31 Thread Erik Enge
On Thu, 31 May 2001, Shane Hathaway wrote: How did you miss the point? That's exactly the point! :-) Oh :) Right now ZCatalog randomly generates ConflictErrors even if there are no conflicts in the data being indexed. This is why I think I've missed a/the point: wouldn't it be better to

[Zope-dev] CompressedStorage

2001-05-31 Thread Erik Enge
Hi, has anyone given this a good run? I'm a bit confused as to how to make it work. Do I just subclass it in FileStorage? Will it work with existing Data.fs or do I need to start anew, so to speak? Thanks. ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] CompressedStorage

2001-05-31 Thread Erik Enge
On 31 May 2001, Ty Sarna wrote: Zope basically uses whatever object custom_zodb.Storage is as the storage. Ahh... I can feel the zen pouring over me :) What you want to do is create a FileStorage, and wrap it with a CompressedStorage and use that. Your custom_zodb.py would look like:

Re: [Zope-dev] Wildcards in TextIndex query. Do they work?

2001-05-30 Thread Erik Enge
On Wed, 30 May 2001, Erik Enge wrote: I'm going bug hunting... I'm back :) I think I found the bug. In lib/python/SearchIndex/GlobbingLexicon.py in the query_hook() method. It seems to say that: if I can't find a '*' or a '?' in the word, then go to else-clause, where the else-clause says

Re: [Zope-dev] Wildcards in TextIndex query. Do they work?

2001-05-30 Thread Erik Enge
On Wed, 30 May 2001, Chris McDonough wrote: Thanks for tracking this down... No worries :) If you're so inclined, please put this in the Collector [...] so it doesn't get dropped on the floor. Done: URL:http://classic.zope.org:8080/Collector/2262/view/

Re: [Zope-dev] Wildcards in TextIndex query. Do they work?

2001-05-29 Thread Erik Enge
On Thu, 24 May 2001, Michel Pelletier wrote: I don't think you are using a globbing vocabulary. I think I am: print_info(applic.Catalog(word='scripto*')) unsplitted ['scripto*'] unl: ['scripto*'] unq: [104623, 'or', 112198, 'or', 151568] Length: 6 Content: [mybrains instance at 1226d358,

Re: [Zope-dev] Wildcards in TextIndex query. Do they work?

2001-05-25 Thread Erik Enge
searching for: eri and that gave me four results. No globbing, then? Then again, where did you get these objects? If you were looking at the wrong point in the code, the wildcards may not have been expanded yet. Could be it... [['erik', '...', '...', '...', 'enge']] Where do

[Zope-dev] Wildcards in TextIndex query. Do they work?

2001-05-24 Thread Erik Enge
Hi, is it me, or is this just not working: (word1 or word*) and (wor?3) ie. wildcards in TextIndex queries. I can't seem to make it work, and I'm not able to track down where it stops working. Should it work in the first place? Zope 2.3.2 Thanks.

Re: [Zope-dev] Wildcards in TextIndex query. Do they work?

2001-05-24 Thread Erik Enge
On Thu, 24 May 2001, Casey Duncan wrote: Works great for me. Perhaps you are using a Vocabulary that has Globbing turned off? I'm not sure, how do I check? This query works: wil?car* This doesn't: (wil?car* or something else) and (word1 and word2) I can't see that the

Re: [Zope-dev] Wildcards in TextIndex query. Do they work?

2001-05-24 Thread Erik Enge
: [['erik'], 'and', ['eng?']] This: (erik ... enge) turned in to: [['erik', '...', 'enge']] and returned one (correct) result. Although, I recall seeing something like this: [['erik', '...', '...', '...', 'enge']] earlier, which probably should never make sense. Something is wrong

Re: [Zope-dev] ZCatalog/TextIndex: searching for the exact phraseword1word2

2001-05-21 Thread Erik Enge
On Sat, 19 May 2001, Chris McDonough wrote: 8 words. Not characters. But actually I just looked at the source and it's not even that. It's treated essentially as an AND query, because the UnTextIndex code doesn't store any proximity information between words. ( I knew this once, but I had

Re: [Zope-dev] ZCatalog/TextIndex: searching for the exact phraseword1 word2

2001-05-19 Thread Erik Enge
On Fri, 18 May 2001, Chris McDonough wrote: You should be able to do this with quotes around the words, but that feature is sort of only half-wired-up at this point. [snip] Currently, quotes around word do the same thing as parens around words (word1 NEAR word2). Sigh. What does NEAR mean,

Re: [Zope-dev] ZCatalog/TextIndex: searching for the exact phraseword1 word2

2001-05-19 Thread Erik Enge
On Sat, 19 May 2001, Chris McDonough wrote: I believe it means within 8 words in the current implementation... So, word1 NEAR wordlongerthan8characters wouldn't come up with anything? Or is it number of characters inbetween? Is it in line for 2.4? No, unfortunately. I'm not sure when

[Zope-dev] ZCatalog/TextIndex: searching for the exact phrase word1 word2

2001-05-18 Thread Erik Enge
Hiya, it basically says it in the subject. How can I search for word1 word2 without ZCatalog/TextIndex interpreting it as word1 or/and word2? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-17 Thread Erik Enge
On Tue, 15 May 2001, Chris McDonough wrote: I'll be curious to see the results. Hopefully you'll have better luck under 2.3.1b2. I've indexed about 410.000 objects now. A plain query with 'meta_type' and 'firstname' to searchResults takes about 3-4 seconds. Not too bad, but not that good

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-17 Thread Erik Enge
On Thu, 17 May 2001, Chris McDonough wrote: I'd be curious to know how long a query that involves only a single field index takes, and how long a query that involves only a single text index takes... does each take a roughly equivalent amount of time? I might be able to check that for you

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-17 Thread Erik Enge
On Thu, 17 May 2001, Chris McDonough wrote: Well, that's good, except I thought you couldn't get rid of objects? Muhahaha. I got those little bastards... :) Yes, but not with 1,000,000 objects (see lib/python/ZCatalog/tests/testCatalog.py). It would be nice to have such a report. If I

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-16 Thread Erik Enge
On Tue, 15 May 2001, Chris McDonough wrote: YourCatalog.catalog_object(newobject) as opposed from inheriting from CatalogAware and relying on manage_afterAdd or calling object.index_item() manually. That's really it. Well, if you put it that way :) *removing CatalogAwareness* (it's

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-15 Thread Erik Enge
Thanks for the fast reply! On Tue, 15 May 2001, Chris McDonough wrote: Have you read http://www.zope.org/Members/mcdonc/HowTos/UpgradeToNewCatalog/index_html ? I suspect there will be improvement. Surely there will be improvement, but not of factors two or three, or more? And, I can do the

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-15 Thread Erik Enge
On Tue, 15 May 2001, Chris Withers wrote: Why nto go for 2.3.2 final? IIRC, 2.3.2b2 had some nasty ZCatalog bugs in it... Heh, that's what I get for not keeping up; I didn't even know 2.3.2 final was out. Bleh. :-) ___ Zope-Dev maillist -

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-15 Thread Erik Enge
On Tue, 15 May 2001, Chris McDonough wrote: Probably not much difference on bare bulk indexing speed, but I'll bet that it finishes this time. ;-) We'll see :) I'd either make my own CatalogAware-alike mixin class that did things a bit differently than CatalogAware (perhaps didn't index

Re: [Zope-dev] Zope Server hanging :-(

2001-04-29 Thread Erik Enge
On Fri, 27 Apr 2001, Chris Withers wrote: Well, I thought the upgrade to 2.3.2b2 would solve the problem but it hasn't :-( I have a (very important :-S) Zope instance which hangs at what seems like the slightest touch. Maybe I can help. I've seen similar behaviour, and by some chance I

Re: [Zope-dev] Zope Server hanging :-(

2001-04-29 Thread Erik Enge
On Sun, 29 Apr 2001, Dieter Maurer wrote: Very strange! Indeed. Did you look in the log files? Have their been any core dumps? I'll try to do an hour or so of analysing this tomorrow, and I'll get back to you. :-) ___ Zope-Dev maillist -

Re: [Zope-dev] 27 million objects.

2001-04-27 Thread Erik Enge
On Thu, 26 Apr 2001, Dieter Maurer wrote: Are the imported object CatalogAware? They are. The old (pre 2.3.1) catalog implementation was know not to be very storage friendly. If a significant portion of the catalog indexes would be affected by imports, then you would see a quadratic

Re: [Zope-dev] 27 million objects.

2001-04-27 Thread Erik Enge
On Thu, 26 Apr 2001, Chris McDonough wrote: This level of growth doesn't seem like a sane level of growth... what Zope version are you using? Zope 2.3.1b1 Someone told me that ZEO and bulk-adding could be a thing to look at... Isn't bulk-adding what you're doing now? It is, but I'm

Re: [Zope-dev] 27 million objects.

2001-04-27 Thread Erik Enge
On Fri, 27 Apr 2001, Chris Withers wrote: Erik Enge wrote: I'm using Zope 2.3.1b1 so that shouldn't be a problem? Yes, it will be. [...] So the bug in Zope 2.3.1b1 which makes the ZODB grow dramatically is gone in Zope 2.3.2b2? ___ Zope

Re: [Zope-dev] 27 million objects.

2001-04-26 Thread Erik Enge
On Thu, 5 Apr 2001, Michael R. Bernstein wrote: I'm trying to find out of there is a point where you start getting non-linear performance penalties for additional objects (storing, retreiving, or indexing). I've just finished adding a somewhat small number of objects: 5000. For every 1000th

Re: [Zope-dev] Splitter.c hack by Spisak; anyone have a Splitter.so?

2001-04-25 Thread Erik Enge
On Wed, 25 Apr 2001, Steve Alexander wrote: If you have the Splitter.c file, you ought to be able to get a source distribution of Zope, delete the original Splitter.c, replace it with the new one, then run python wo_pcgi.py or python w_pcgi.py to set everything up. Ok, thanks :-)

[Zope-dev] Splitter.c hack by Spisak; anyone have a Splitter.so?

2001-04-24 Thread Erik Enge
Hola, please don't make me touch C or a ... erm... you know, one of those compiler-thingys. I don't like them. Does anyone have a nicely baked Splitter.c for Linux? The one that Spisak hacked to make it chew and swallow anything? Fhank you very much. :-)

[Zope-dev] How to choose: Or, Not and And when using searchResults().

2001-04-18 Thread Erik Enge
Hi, I was wondering, is there a way I can choose whether I want searchResults to Or, Not or And the search? Or do I need to combine searchResult calls and what not? ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] How to choose: Or, Not and And when using searchResults().

2001-04-18 Thread Erik Enge
On Wed, 18 Apr 2001, Chris McDonough wrote: You need to manually do unions or intersections on results from multiple calls to searchRequest currently. Is this a feature to be implemented? If not, why not? Oh, and by the way, "searchRequest"? ___

[Zope-dev] Catalog Indexes.

2001-04-09 Thread Erik Enge
I need some help with indexes. I'm confused about what I can index in which Index. Which index does not remove numbers? Which of them do I use to index a telephone number (containing characters). What about email addresses? Special characters? *oink* Help...

Re: [Zope-dev] 27 million objects.

2001-04-09 Thread Erik Enge
On Thu, 5 Apr 2001, Michael R. Bernstein wrote: I'm trying to find out of there is a point where you start getting non-linear performance penalties for additional objects (storing, retreiving, or indexing). I don't know, but I feel that is the case. Actually, I know it is the case, but I

Re: [Zope-dev] Catalog Indexes.

2001-04-09 Thread Erik Enge
[observe the speed of Chris replying... *astounded* :)] On Mon, 9 Apr 2001, Chris Withers wrote: Erik Enge wrote: I'm confused about what I can index in which Index. Which index does not remove numbers? FieldIndex, KeyIndex Wow, KeyIndex? Is this a new one? Or did you mean

[Zope-dev] 27 million objects.

2001-04-05 Thread Erik Enge
Hi, Michael. Sorry for taking so long getting back to you. The programmer solving our problems with the post codes has solved it in a different way than what I would've done (his method is way superior), so we're not ending up adding all addresses as Zope Objects. Therefore, I don't have any

Re: [Zope-dev] Could not load state?

2001-02-28 Thread Erik Enge
On Tue, 27 Feb 2001, Chris Withers wrote: I've started seeing errors like this: Hm. It might be related to the problem Andrew K. is seeing over at [EMAIL PROTECTED]? ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Could not load state?

2001-02-28 Thread Erik Enge
On Wed, 28 Feb 2001, Chris Withers wrote: Are there archives for that anywhere? There sure is... URL:http://lists.zope.org/pipermail/zodb-dev/2001-February/thread.html ___ Zope-Dev maillist - [EMAIL PROTECTED]

  1   2   >