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

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. __

[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 c

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

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 post

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_

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

2001-09-10 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: http:/

[Zope-dev] Getting Unauthorized from __bobo_traverse__.

2001-09-10 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

[Zope-dev] PersistentMapping

2001-07-12 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
[[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: [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] h

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

2001-07-09 Thread Erik Enge
[Jerry Spicklemire] | How about treating some of the most critically needed Zope modules | as a community project? I agree totally. | Can a community wide process be adopted so that an architecture can | be established, and the components then be built by individuals or | small teams, and then

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

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 t

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: http://www.thingamy.com/mailman/listinfo/mk-zprod-de

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 wor

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. B

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 Noth

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 o

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 t

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

2001-06-28 Thread Erik Enge
On Wed, 27 Jun 2001, Stephan Richter wrote: > If I have some time left at all tonight, I will make a wizard that > could be the initial front-end to mk-zprod. Could you give me a short > list of things you would like to ask the user? Product-name A list of images (like dtmldoc.gif and such) If y

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] 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, Stephan Richter wrote: > Exactly that. But the SmartWizard would provide you with a framework > to build this "Make New Python Product Wizard". If I get far enough, I > will release the pre alpha today, just you see the proof of concept... Cool! I'll be looking forward to i

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: 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 Front

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: > 1. We are building a wizard that asks you all the necessary questions > to generate a basic class framwework. Sounds exactly like my mk-zprod. > If anyone is interested in helping developing that tool (which will be > released under the GPL as all o

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: > I will be checking out mk-zprod. If you find it useful I can upgrade it to the next release which I've been think of for some time now (I was actually going to do it some months ago, but someone let all my time out... I'm tracking it down now.. Muhaha).

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, Andy McKay wrote: > One thing Id been musing about for a while was a ZClass > Python Product > script that took your ZClass and set up your basic python product for you. > It would only work for simple for things like permissions, properties, basic > methods... Then ZClasses

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 'backen

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: [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 w

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. D

Re: [Zope-dev] ZPL and GPL

2001-06-26 Thread Erik Enge
On Tue, 26 Jun 2001, Jerome Alet wrote: > Java comes to mind, guess who is the "powerful entity" ;-) :) I really can't see that Java has been bastardized by it, though. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listin

Re: [Zope-dev] ZPL and GPL

2001-06-26 Thread Erik Enge
On Tue, 26 Jun 2001, Jerome Alet wrote: > For Zope it's not sure, but for Python, as well as for all what people > usually call "open source" languages, the license of choice should be > the GPL, or at least the LGPL, in order for the language in question > to not become bastardized by some power

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 s

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 redistr

[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 > on

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. :) ___ Z

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

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

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 bac

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 Pyth

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 wor

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 Thing

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] http:

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 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 - positionInDoc

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-16 Thread Erik Enge
y I've only been testing 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

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

[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, 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

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

2001-06-14 Thread Erik Enge
On Thu, 14 Jun 2001, Erik Enge wrote: > Me got a patch: http://nittin.net/erik/software/PossitionIndex>. And I should mention that it has only been tested on Zope 2.3.2. (BTW, thanks, Chris, for suggesting how to code it.) ___ Zope-Dev ma

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

2001-06-14 Thread Erik Enge
On Thu, 29 Mar 2001, Chris McDonough wrote: > Hopefully we can graft on real NEAR searching in the future. For now, > I think "foo AND bar" is about as close as you're going to get to > phrase searching without post-filtering results. Me got a patch: http://nittin.net/erik/software/PossitionInd

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] Advanced REQUEST inside Python Class Problem

2001-06-11 Thread Erik Enge
On Sun, 10 Jun 2001, Stephan Richter wrote: > But, if I try: , then I cannot use > self.REQUEST, since the namespace is somehow not passed. Don't you have to use ? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zop

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: http://www.zope.org/Members/Mamey/PHP>.

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] 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 lice

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 inter

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] 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 oops-correct

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: http://www.zope.org/Members/hathawsh/PartitionedFileStorage> Didn't show up in any searches, though. Maybe worth indexing? ___ Zope-Dev maillist -

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: [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, FileSt

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] 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] 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 the

[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 - wh

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:

[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 PROTECTE

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 t

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 he

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: http://classic.zope.org:8080/Collector/2262/view/> ___

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, the

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

2001-05-30 Thread Erik Enge
On Tue, 29 May 2001, Michel Pelletier wrote: > Must be ZCatalog's. I'm guessing the paren matching takes a different > code path that doesn't expand wildcards. I'm going bug hunting... If I'm not back in five minutes... just wait longer. (Ace Ventura)

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: [, , , , , ] >>> print_info(appl

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

2001-05-25 Thread Erik Enge
e that word anywhere? I tried 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... > > >

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

2001-05-24 Thread Erik Enge
nd', ['enge']] And the latter one: [['erik'], 'and', ['eng?']] This: (erik ... enge) turned in to: [['erik', '...', 'enge']] and returned one (correct) result. Although, I recall seeing something like this:

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 qu

[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] ZCatalog/TextIndex: searching for the exact phrase"word1word2"

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

Re: [Zope-dev] ZCatalog/TextIndex: searching for the exact phrase"word1 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

Re: [Zope-dev] ZCatalog/TextIndex: searching for the exact phrase"word1 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 me

[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 cr

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

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 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-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'

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

2001-05-15 Thread Erik Enge
On Tue, 15 May 2001, Chris McDonough wrote: > Why CatalogAware? You do know that the only thing CatalogAware does > is add/remove/reindex objects in one particular Catalog when they're > added, removed, or changed? Yes, and this is all I need. Where is the overhead with CatalogAware objects, t

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 inde

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 - [EM

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 t

[Zope-dev] ZCatalog, REQUEST, misc.

2001-05-15 Thread Erik Enge
Hi. I was adding a couple of objects to my system. Turns out, it's over a million of them. I have a 1GHz Pentium with 1GB RAM and 1GB swap. After I added all the objects with a little script (that took about 12 hours), I was going to index them to the Catalog I have. (I had to uncomment the in

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] 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 di

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

  1   2   >