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

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 conventi

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

2000-07-20 Thread Erik Enge
On Wed, 19 Jul 2000, Chris Withers wrote: > Why I'm asking is 'cos it'd be really nice not to have to keep > re-writing UI when there's perfectly good stuff available in the > management interface, things like add forms, edit forms, etc... Exactly. > Any ideas or am I missing the point? You a

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

2000-07-20 Thread Erik Enge
On Wed, 19 Jul 2000, Steve Alexander wrote: > Silly idea: Write a wrapper that you put around the RESPONSE object that > does its own thing when it is told to redirect. You might have to wrap > the REQUEST object too, so that it returns a wrapped RESPONSE object. That would work, but don't you t

[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 root-fold

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

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 encodi

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] http://lists.zope.org/mailma

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

[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

Re: [Zope-dev] Getting all objectIds, recursively (ZODB)

2000-10-15 Thread Erik Enge
On 15 Oct 2000, Morten W. Petersen wrote: > Is there a method available that'll return a nested list of ids (or > something similar) of the current object? "current object"? You probably mean objects? Couldn't you do that with getParentNode().id? _

Re: [Zope-dev] RE: objectIds accessiblilty & and a proposal

2000-12-20 Thread Erik Enge
[Dieter Maurer] | There are objects, that should be usable by Anonymous inside DTML | but should not be viewable over the web (as they will only confuse). | All page components (such as "standard_html_header/footer") fall | into this category. Do you have any idea of how this could be done nicel

[Zope-dev] ZPatterns - GPG/PGP Rack.

2001-01-03 Thread Erik Enge
Hi, all. I might have misunderstood the Racks place in ZPatterns, but anyway... To me, this sounds like a really, really cool idea. If we passed the User object along to the Racks (which is what it does now?), and let the Rack (GPG/PGP Rack, that is) have access to either an external or interna

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 is

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 in

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 m

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 d

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 s

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

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 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 (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 describe

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 o

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

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 thi

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 higher

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] http://lists.zope.org/mailman/listinfo/zope-

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 obje

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

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] http://lists.zope.org/mailman/list

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. ¹ http://www.zope.org/Members/lstaffor/Xron> ² http://www.zope.org/Members/phd/cron-zope> ³ http://ww

[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» an

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

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

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 pos

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_copy

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

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

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] Zope 2.3.1b1 bug? (:tokens)

2001-02-20 Thread Erik Enge
Hiya. variable:tokens is a bit fubar. If I raise it on the next page it says stuff like ['item', 'item1', 'item', 'item'] ie. it repeats some of the items in variable for no apparent reason (variable contains only 'item' and 'item1'). Also, if I do: "> and raise variable2 on the

[Zope-dev] Minor typos in Zope 2.3.1b1 (and potential bug).

2001-02-22 Thread Erik Enge
If you click the Help-link in a manage_propertiesForm screen (point begin to bring up the Help for the properties) and have a look down where it says in bold "Note:", followed by this strange line of text: [...] This property (or method) should return a list of strings will be use

[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 last):

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

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

2001-02-23 Thread Erik Enge
Today's show opens with an usability bug (that's what it looks like to me, anyway). Sit back and feel free to buy an albatross from the strange man. I've got a ZCatalog named Catalog, living its normal life at /. When I'm in /Catalog/manage_catalogIndexes the index names are 's. Strange, since

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 inde

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] http://lists.zope.org/mail

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

2001-02-23 Thread Erik Enge
On Fri, 23 Feb 2001, Chris McDonough wrote: > Probably. Keyword indexes work too. Yeah, that was what I was getting at :) > This is the number of objects indexed by the index. If it's not working, > that's a bug. Then it looks like a bug. Lucky us, I don't have time to analyze this in a we

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

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 a

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

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

2001-02-23 Thread Erik Enge
On Fri, 23 Feb 2001, Chris McDonough wrote: > different python classes. Do they inherit from a common base class? Yes. A homemade one. > Did you make these objects or are they from another Product or are > they standard Zope objects (like DTML methods, etc.)? It's a mix. Most of them I cre

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

2001-02-23 Thread Erik Enge
On Fri, 23 Feb 2001, Chris McDonough wrote: > And any access to getobject with any data_record_id_ returns unauthorized > for any user besides emergency user? Hm... No, not entirely correct. If I don't get any hits, I don't get the unauthorized, but that is probably because I don't even try th

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 succee

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

2001-02-24 Thread Erik Enge
On Fri, 23 Feb 2001, Chris McDonough wrote: > The short answer is "you can't, easily". I'm a bit confused. Will FieldIndexes also behave like TextIndex, in that they remove stop words, digits and so forth? I think I've picked up somewhere that FieldIndexes treats the whole content of the attri

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

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

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

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

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

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

2001-02-24 Thread Erik Enge
On Sat, 24 Feb 2001, Chris McDonough wrote: > I can't replicate this behavior with normal objects. :-( Riiight... *thinking very hard* I just realized how it all started. Me and a collegue was indexing objects, searching, doing regular development (probably changing classes, attributes etc

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

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

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

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 f

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

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.

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

2001-02-26 Thread Erik Enge
On Mon, 26 Feb 2001, Chris McDonough wrote: > Try assigning "objects" to an empty list in the method body instead. Woop. Works like a charm :). Thanks! ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev **

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: > The list that is assigned to "objects" in the definition of arguments is > only created once. There is only one instance of the list for all the > calls to methodFoo. If you alter that list, then it is altered for the > future too. Doh! Of course

Re: [Zope-dev] Adding a new property type

2001-02-26 Thread Erik Enge
On Mon, 26 Feb 2001, Ausum wrote: > I'm interested at writing a patch for Zope. In adition to the 11 "add property" > options bundled with Zope, I'd like to have an "html-editor" type, for wich I > already have a working stand alone version. What does it do? ___

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] http://lists.zope.org/mailman/listinf

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... http://lists.zope.org/pipermail/zodb-dev/2001-February/thread.html> ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinf

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 c

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

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

[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] http://lists.zope.org/mailman/listinfo/zo

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] 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 :-) _

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 1000t

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 s

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

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

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

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

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

  1   2   >