[Zope-dev] Redirecting from the manage interfaces.

2000-07-15 Thread Erik Enge
Hi. I've been browsing through the Zope and Zope-dev archives without finding anything related to this, please stop me if it has already been dealt with. :) technical person = someone who doesn't mind fuzzing around with the manage_main pages non-technical person = someone

Re: [Zope-dev] Redirecting from the manage interfaces.

2000-07-15 Thread Erik Enge
On Sat, 15 Jul 2000, Shane Hathaway wrote: call, it won't redirect. So you should be able to achieve the same results just by invoking manage_addImage without including the REQUEST object. But I have to pass something with the REQUEST, or else it won't add the image, right? A convention

[Zope-dev] Weird thing happend with Pack

2000-08-05 Thread Erik Enge
Hi. I was fiddling around with my Zope-instance, and decided to Pack the database, I had just deleted a lot of objects and the Data.fs was reported to be about 15MB large; which I knew couldn't be true. Under Control_Panel/Database I pressed the "Pack" button with "days older than" set to '0'.

[Zope-dev] Funny bug in Zope?

2000-08-16 Thread Erik Enge
I'm not quite sure if this is already reported or not, so I won't give much information on it (I've looked for something similar, but I haven't found it). I'm runnig Zope 2.2.0 under Linux. I have this product I've made myself - called TravelAgent. I add an instance of it to the Zope

Re: [Zope-dev] Transaction question

2000-08-28 Thread Erik Enge
[Shane Hathaway] | Johan Carlsson wrote: | | I just want to check if things work the way I think (hope) it does. | | In a transaction, are objects attributes safe from other threads. | | self._v_mytemp in my request does not conflict with other requests? | | This is correct (or it's

Re: [Zope-dev] Transaction question

2000-08-28 Thread Erik Enge
[Shane Hathaway] | It means that a correctly operating ZODB will behave this way. Oh, I see. Thanks for clarifying that. :) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

Re: [Zope-dev] RFC: page contracts

2000-08-30 Thread Erik Enge
[Petru Paler] | - how this should be aproached Couldn't this be implemented by adding more properties to you objects? One thing that would be great, though, variable checking :) ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] REPOST: Cut down on the Available Objects list.

2000-09-07 Thread Erik Enge
Hi, all - someone suggested to me that I should try the zope-dev list instead of the zope list, here goes. When I create ZClasses I can make the Available Objects shrink to just a couple of available objects via subclasses and so forth. How would I do this with a Python Class in a Python Zope

[Zope-dev] Size of Data.fs - and crypto.

2000-09-10 Thread Erik Enge
Hi. Does the performance of Zope degrade as the Data.fs get larger? Both on startup time (which I'm pretty sure will degrade) and on respons time, serving a object f ex? Another thing. Have anyone tried to encrypt all data inside the Data.fs file? I mean, encrypted the data so that not even

Re: [Zope-dev] Size of Data.fs - and crypto.

2000-09-10 Thread Erik Enge
[Chris McDonough] | [Erik Enge] | | Another thing. Have anyone tried to encrypt all data inside the | Data.fs file? I mean, encrypted the data so that not even root can | access it, only if you have the right passphrase (or whatever) in the | management interface are you allowed access

Re: [Zope-dev] CatalogAware

2001-01-04 Thread Erik Enge
[Chris Withers] | The point behind CatalogAware was, as I understand it, that the object | inheriting from CatalogAware wouldn't have to worry about managing its | own indexing. Sadly, that didn't work out... I haven't been following this discussion, so my question may be redundant, and if it

Re: [Zope-dev] CatalogAware

2001-01-04 Thread Erik Enge
[Michael Bernstein] | When called, they find the nearest (acquisition-wise) ZCatalog | (named Catalog by default), I think you can specify the ZCatalog it should index itself in by putting the default_catalog attribute in your class. I think, that this object (in pseudo) would index itself

Re: [Zope-dev] ZCatalog scalability

2001-01-21 Thread Erik Enge
[Michael Bernstein] | I need to know how far the ZCatalog will scale using this indexing | and search strategy. Does anyone have anectodal or benchmark data to | suggest if (and when) I will hit a 'wall' regarding the number of | objects being indexed and searched? I'm going to try to stuff 27

Re: [Zope-dev] ZCatalog scalability

2001-01-23 Thread Erik Enge
[Michael Bernstein] | We seem to have disposed of the wildcard issue [snipped out | below], and I'm looking forward to Eric's results, but does | anyone else have any information about whether there is a | practical upper limit on how many objects can be indexed and | searched in a ZCatalog? I

Re: [Zope-dev] ZCatalog scalability

2001-01-23 Thread Erik Enge
[Chris Withers] | ...and is that specifically for BTree folders, or Zope BTree's in general? I don't believe that B-Tree folders have those kinds of limitations by general design. I'm more conserned that somewhere along the lines, doing operations on a huge BTree Folder (Yes, in Zope) will be

Re: [Zope-dev] ZCatalog scalability

2001-01-23 Thread Erik Enge
[Michael Bernstein] | Erik Enge wrote: | | I don't believe that B-Tree folders have those kinds of limitations by | general design. I'm more conserned that somewhere along the lines, | doing operations on a huge BTree Folder (Yes, in Zope) will be slow. | | What sort of 'operations' do

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-11 Thread Erik Enge
[Morten W. Petersen] | There's a new product available, which enables unique ids in a given context, | take a look at url:http://www.zope.org/Members/morphex/ThreadSafeCounter. What happens if you run this with ZEO? Will the file be kept in sync with all ZEO Clients?

[Zope-dev] Introducing ZopePrints.

2001-02-12 Thread Erik Enge
Hola! Some of us over at ZopeZen.org (URL:http://www.zopezen.org) have been discussing the fenomena that is called ZopePrints. I'll give a brief explanation, and would appretiate feedback as to whether this a good idea or not. A ZopePrint is a document, or maybe a set of documents, which

Re: [Zope-dev] Introducing ZopePrints.

2001-02-12 Thread Erik Enge
[Tres Seaver] | Please see: | | http://dev.zope.org/Projects/PTK | | for our work-in-progress. Hey, looks like what I'm after. I can see that it's a work in progress, so if you need any help, give me a shout. It didn't say too much about the project itself, do you have any such information

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Erik Enge
[Morten W. Petersen] | There's a new product available, which enables unique ids in a given context, | take a look at url:http://www.zope.org/Members/morphex/ThreadSafeCounter. On every view - a call to index_html() - it prints '{}' to stdout. Bug?

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Erik Enge
[Erik Enge] | On every view - a call to index_html() - it prints '{}' to stdout. Bug? Forget it. My fault. *shame, shame* ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

Re: [Zope-dev] Updates! Refresh, BTreeFolder, and ZDebug products

2001-02-12 Thread Erik Enge
[Shane Hathaway] | If no one reports any problems No problems so far :). Tried them with Zope 2.2.1. | But here's the biggest news: the Refresh product Excellent! When will this be included in standard Zope distributions? ___ Zope-Dev maillist -

Re: [Zope-dev] Strange AttributeError in AccessControl/User.py

2001-02-13 Thread Erik Enge
[Morten W. Petersen] | indeed a strange problem, anyone experienced this? What did you do to make this happen? Versions? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding!

Re: [Zope-dev] Re: ThreadSafeCounter

2001-02-13 Thread Erik Enge
[Morten W. Petersen] | The ideal solution would be to use an object that lives in the ZODB, | I wonder if there is a way to keep the 'object history' empty? That | is, keeping the counter 'packed' while retaining 'object history' | information on all other objects. I'm no ZODB expert, but I

Re: [Zope-dev] Introducing ZopePrints.

2001-02-14 Thread Erik Enge
[Michel Pelletier] | We would love to see this description from you. The description of such a system/model in a Fishbowl project? Or just a general description? Sorry for being slow :) | I think it would be great to get examples of your problems in a case | study format, but also in a

Re: [Zope-dev] [Newbie Alert] How to make an existing class catalog-aware

2001-02-15 Thread Erik Enge
[stefano ciccarelli] | Is there any way to make an existing class catalog aware? Is this ZClasses or Python classes, and are there any objects that exist already? ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Erik Enge
[Cyril Elkaim] | Of course I have tried REQUEST.PARENTS[0] but this is the parent | inside the URL, I'm searching the PARENT inside the object system. yourobject.getParentNode() should do the trick. Have a read at lib/python/OFS/ZDOM.py | Another question how can I get a reference of any

Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Erik Enge
[Cyril Elkaim] | I want to give the id (eventually qualified) of an object and get a | reference to it. I'm talking about persistent objects inside the | ZODB. What do you need the reference for? How are you going to use it? And when you're talking about inside ZODB, does that mean that

Re: [Zope-dev] Calling Catalog from python script

2001-02-15 Thread Erik Enge
[[EMAIL PROTECTED]] | Where did getobject come from? I know about Catalog.data, but I've never | seen a getobject() method... It's a method of the brain ;). If you have a data_record_id, you can use getobject() to retrieve the object it represents.

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Erik Enge
[Morten W. Petersen] | It's a problem with Linux, if you want to be able to use databases | 2GB in size on Linux, a kernel = 2.4.0 is required. Nope. First, the limit is at file-level, not database-level (mind you, a problem with the filesystem, not Linux per se). You can have tons and tons

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Erik Enge
[Morten W. Petersen] | BTW, there is a list called [EMAIL PROTECTED], for ZODB specific | questions. Actually, I think its called ZODB-Dev; [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev

[Zope-dev] The structure of lib/python/*

2001-02-16 Thread Erik Enge
Hi, Zopistas. I've been reading a lot of Zope code the last couple of years, but still I really don't see any overall structure of lib/python. Is this documented somewhere? ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Executing zopescript using zope-time

2001-02-16 Thread Erik Enge
[Espen Sorbye Frederiksen] | I need to automaticly execute a zopescript once a day You could try Xron, cron-zope or something external. There is something something called ZScheduler also. URL:http://www.zope.org/Members/lstaffor/Xron URL:http://www.zope.org/Members/phd/cron-zope

[Zope-dev] Zope 2.3.1b1 glitch?

2001-02-17 Thread Erik Enge
Hia. When entering the ZMI and clicking on Control_Panel, Database management and then Cache parameters I get two new tabs: Contents and Undo. It's probably just me, but I don't quite understand these two. Couldn't we display the Undo tab along with Database, Cache parameters and Flush Cache?

Re: [Zope-dev] Zope 2.3.1b1 glitch?

2001-02-17 Thread Erik Enge
[Erik Enge] [about undo tabs] Hm. Just discovered this. Both /Control_Panel/manage_undoForm and /Control_Panel/manage_UndoForm work fine. manage_undoForm redirects to manage_UndoForm after you've pressed the Undo-button though. Maybe that's where

[Zope-dev] More Zope 2.3.1b1 stuff.

2001-02-17 Thread Erik Enge
This might be picking on very little things, but hey, someone has to do that too. :-) When adding a Version, the Help-button is there. Not a Help-link which seems to be the standard these days. Same goes for Mail Host, External Method, Z SQL Method and ZCatalog. Accelerated HTTP Cache Manager

Re: [Zope-dev] More Zope 2.3.1b1 stuff.

2001-02-17 Thread Erik Enge
[Erik Enge] | This might be picking on very little things And so is this: why isn't there a grey line above the Users in the acl_users? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts

Re: [Zope-dev] More Zope 2.3.1b1 stuff.

2001-02-17 Thread Erik Enge
[Erik Enge] | [Erik Enge] | | | This might be picking on very little things | | And so is this Yeah, this also - but I promise, this is the last one. For today anyways. Either my eyes aren't quite awake yet, or this line appears two times in the Credits-section of /manage_copyright

Re: [Zope-dev] The structure of lib/python/*

2001-02-17 Thread Erik Enge
[Dieter Maurer] | Erik Enge writes: | I've been reading a lot of Zope code the last couple of years, but | still I really don't see any overall structure of lib/python. Is this | documented somewhere? | | I find the names quite self explanatory. Yes, the names are fine in most cases

Re: [Zope-dev] ZCatalog scalability

2001-02-18 Thread Erik Enge
[Michael R. Bernstein] | Erik Enge wrote: | | I'll let you know how it goes. (And please, do poke at me if it takes | too long.) | | Ok, I'm poking :-). Thanks. Keep doing it till you get what you need, I truly don't mind. :-) | How did it go? Thanks to the speed of delivery at Royal

Re: [Zope-dev] ZCatalog scalability

2001-02-18 Thread Erik Enge
[Michael R. Bernstein] | What I'm looking for is any indication that object creation time | and/or indexing time goes up with the number of objects already in | the ZODB. Well, one thing I've already learned - which you all probably know - is that you do _not_ want to put index_object() in your

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

2001-02-22 Thread Erik Enge
Right. This is the traceback I get, after doing a search (searchResults) - which goes fine by teh way - and then trying to do an getobject(x.data_record_id_) as a non-emergencyuser user get up an login box and press escape: Unauthorized Sorry, a Zope error occurred. Traceback (innermost

Re: [Zope-dev] Error message traceback

2001-02-22 Thread Erik Enge
On Thu, 22 Feb 2001, Philipp von Weitershausen wrote: how do I turn off this annoying traceback that is always printed out when an error occurrs? Start Zope with out the debugging switch; "-D". Look in your z2.py file for expalation of it, and in start (or start.bat on Windows?) to remove

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

2001-02-23 Thread Erik Enge
On Thu, 22 Feb 2001, Chris McDonough wrote: I'm not sure why this isn't in 2.3.1b1, but yes, the code in getobject was changed to use unrestrictedTraverse for this very reason. On closer inspection, I can see that it is actually changed in 2.3.1b1. It does say unrestrictedTraverse (line 457,

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

2001-02-23 Thread Erik Enge
On Fri, 23 Feb 2001, Chris McDonough wrote: No... "No" to which question? what are you getobjecting? Does it happen only with certain kinds of objects? Are they ZClass objects or Product-based objects? It happens with all kinds of objects I have in my index. All my objects in the index

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

2001-02-23 Thread Erik Enge
On Fri, 23 Feb 2001, Michael R. Bernstein wrote: On the subject of numbers, I was wondering how to index alphanumeric values like ISBN numbers. Why can't you use FieldIndexes? ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Traceback strangeness and default width/height (and those funnyPython Methods)

2001-02-23 Thread Erik Enge
Is it just me, or has the tracebacks provided by Zope when an Exception is raced gotten "worse"? In Zope 2.3.1b1 it usually says file: DT_In (or one of them), and doesn't even mention the file which the Exception was raised from. Also, When I set the default width/height with the new ZMI and

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

2001-02-23 Thread Erik Enge
On Fri, 23 Feb 2001, Chris McDonough wrote: Maybe a "This How-To covers product such-and-such version x.x" is in order as a standard feature of the How-To? This is a good idea. It would be an even better idea to allow folks to add comments to howto pages, so that if the original author

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

2001-02-23 Thread Erik Enge
On Fri, 23 Feb 2001, Chris McDonough wrote: It happens with all kinds of objects I have in my index. All my objects in the index are from Python-based products. Are they all of one type? The same type (as in, they are all Python based), but with different meta_types. Can you

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

2001-02-23 Thread Erik Enge
On Fri, 23 Feb 2001, Chris McDonough wrote: I meant to narrow down the problem domain in cases where you do call getobject... cases where you aren't calling getobject are not relevant. Ok. I see. It would be helpful to find out for which objects getobject fails and for which it succeeds

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

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

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

[Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-25 Thread Erik Enge
I have two nice methods. One of them (methodA) is called via the web. These belong to one class; classA. class classA: "doc string" def methodA(self): "doc string" objects = self.methodB(self) objects.reverse() attrib = '' for object in

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Erik Enge
On Sun, 25 Feb 2001, Steve Alexander wrote: I wasn't reading the code clearly the first time around. By far the simplest place to return copied results from methodB is to change the last line to Thanks, it all works nice. Nearly, that is. The reverse problem is now gone. But the fact

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Erik Enge
On Mon, 26 Feb 2001, Erik Enge wrote: I only get this when a ConflictError occur. Nope, it occurs every time I change to another object. I need to do some more testing here. It seems as if the 'objects' variable of 'methodB' is semi-persistent or something. Weired

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Erik Enge
On Mon, 26 Feb 2001, Steve Alexander wrote: Chris McDonough wrote: The use of a literal anonymous list in methodb's signature for "objects" may have something to do with the results you're getting on conflict. Try assigning "objects" to an empty list in the method body instead. Of

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]

Re: [Zope-dev] REQUEST.steps

2001-02-28 Thread Erik Enge
On Wed, 28 Feb 2001, Chris Withers wrote: Is it alright to rely on this attribute of the REQUEST object? Hm What is 'steps' in context of REQUEST? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No

[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

[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] 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] 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. :-)

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

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

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

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

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

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

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

  1   2   >