Re: [Zope-dev] CST patches for Zope 2.4.0b2

2001-07-03 Thread Chris Withers
Chris Withers wrote: Any ideas? Yup, and the patches are attached... cheers, Chris --- SessionIDManager.py.originalTue Apr 10 16:33:00 2001 +++ SessionIDManager.py Tue Jul 03 10:52:44 2001 @@ -174,7 +174,7 @@ __replaceable__ = UNIQUE # singleton for now -__implements__

Re: [Zope-dev] ZCatalog out of Zope

2001-07-02 Thread Chris Withers
Paulo M. Goncalves wrote: I'm a Zope and Python newbie and I'm trying to work with Zope's ZCatalog in a Product coded in python. Can anyone give some intro or point to some links with info in this subject. Maybe have a look at the SquishSite.py file in Squishdot? The search method of the

[Zope-dev] KeywordIndexes in Zope 2.4.0b2

2001-07-02 Thread Chris Withers
Hi Andreas, I could have sworn I saw you checkin a KeywordIndex where you could AND rather than OR the search results, but now I've installed 2.4.0b2, I can only find a normal KeywordIndex's with nothing to manage in the Settings tab. Where should I be looking? I also found some little bugs...

[Zope-dev] PS: KeywordIndexes in Zope 2.4.0b2

2001-07-02 Thread Chris Withers
Also, if I click on the 'help' link in a KeywordIndex, I get: Cannot locate object at: http://localhost:8080/Control_Panel/Products/KeywordIndex Also, if you actually click on the 'Settings' tab in a keywordIndex, something weird happens. You get teh catalog contents page, but all the URLs are

[Zope-dev] Re: KeywordIndexes in Zope 2.4.0b2

2001-07-02 Thread Chris Withers
Andreas Jung wrote: see KeywordIndex_searchResults.stx The operator is *NOT* managable through the ZMI but you can pass it as 'operator' parameter inside the query. even better :-) thankyou... Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] KeywordIndexes in Zope 2.4.0b2

2001-07-02 Thread Chris Withers
Andreas Jung wrote: hmm...please be more detailed. The index management views don't have an Undo tab. /my_zcatalog//manage_addKeywordIndex by chris ...when I add an index, which doesn't seem right. Any Undo tab in or above the Catalog will show you this, looks like a bug in the

Re: [Zope-dev] RestrictedDTML w/isPrincipiaFolderish: error with CMF 1.1 and Zope 2.4.0

2001-06-29 Thread Chris Withers
Joseph Wayne Norton wrote: Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** ^^ Joe, small point, but this belongs on the CMF list only ;-) cheers, Chris

Re: [Zope-CMF] Re: [Zope-dev] RestrictedDTML w/isPrincipiaFolderish: error with CMF 1.1and Zope 2.4.0

2001-06-29 Thread Chris Withers
Chris Withers wrote: Joseph Wayne Norton wrote: Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** ^^ Joe, small point, but this belongs on the CMF list only ;-) ...so clueless people

Re: [Zope-dev] Data.fs lost?? ideas?

2001-06-29 Thread Chris Withers
Chris Keyes wrote: Restart Realised file was 1.6meg not 700 Data.fs is question was of one of our FreeZope servers :-( Wgh... Anyone got any ideas what could have happened or what we should start looking for? cheers, Chris ___ Zope-Dev

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

2001-06-28 Thread Chris Withers
Giovanni Maruzzelli wrote: The catalog is a pristine 2.3.3b1 catalog. I'm sure that'll need upgrading then... We have recreated the catalog from scratch because we tried manage_convertBTrees , but it don't work for us, it return with an error (and the same happens with 2.3.3 final):

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

2001-06-26 Thread Chris Withers
Chris McDonough wrote: Shane's BTreeFolder Product attempts to ameliorate this problem a bit by keeping the data that is normally stored in the _objects tuple in its own persistent object (a btree). Are you breaking the content up into subfolders? This is recommended. Do you still need

[Zope-dev] Re: ObjectManager Bloat

2001-06-26 Thread Chris Withers
Chris McDonough wrote: It doesn't hurt, but likely no. If at all, you'd want to do it so management interface views would be sane. Then again, I've never actually used BTreeFolder. ;-) Ah, you should, it's great :-) The management interface is different, so you don't have problems with

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

2001-06-26 Thread Chris Withers
Toby Dickenson wrote: INDEXES: PrincipiaSearchSource Text Index 2,524 autore Keyword Index 4,055 bflow0 Field Index 4,055 bflow1 Field Index 4,055 bflow2 Field Index 4,055 Aha! a clue. If that is the output of the 'Indexes' tab then I dont think you are using the newest

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

2001-06-25 Thread Chris Withers
Chris McDonough wrote: This purpose aligns well with those of the ArmoredCatalog proposal as well.. see http://dev.zope.org/Wikis/DevSite/Proposals/ArmoredCatalog . But even using such a lazy catalog awareness, you might get into trouble. Using the ZCatalog's find objects function, I

Re: [Zope-dev] Zope 2.4: Unicode, Berkeley Storage?

2001-06-22 Thread Chris Withers
Randall F. Kern wrote: 2. Will the BDB storage be standard with 2.4? Transactional Undo sounds _very_ nice. IIRC, Transactional Undo has now been implemented in FileStorage too cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Fishbowl not problem centered enough

2001-06-22 Thread Chris Withers
I just see lots of solutions many of which attack some of the same problems and no clear way to get those people comunicating and making informed trade-offs I think this is a really good point. However, I think the fishbowl should remain the center for solutions. The collector is the center

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

2001-06-20 Thread Chris Withers
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. :-) I'm guessing this is the point at

Re: [Zope-dev] How to aquire from Context?

2001-06-17 Thread Chris Withers
Matt, Evan Simpson came up with some external methdos that do exactly what you want about 6 months to a year ago. If you search the zope.nipltd.com archives for [EMAIL PROTECTED] and [EMAIL PROTECTED] you may well be able to find what you're after :-) cheers, Chris Matt Hamilton wrote:

Re: [Zope-dev] Non-undoable storage

2001-06-12 Thread Chris Withers
Chris McDonough wrote: Shane Hathaway wrote: Morten W. Petersen wrote: during testing of a mail product I've discovered that the Data.fs file may bloat considerably after storing 50 messages. Packing the database will reduce the Data.fs file to 20 MB (from 40 MB). Another thing

[Zope-dev] Pluggable Index How-To Questions

2001-06-12 Thread Chris Withers
Andreas Jung wrote: There is a new How-To for PlugginIndexes: http://www.zope.org/Members/ajung/howto/PluginIndexes/index_html Looks great :-) Coupla Questions: Is there anything you can do in the index_object method to re-use ZCatalog's get all attributes and call them if they're

Re: [Zope-dev] Request for a Pluggin Index (NameIndex)

2001-06-12 Thread Chris Withers
Matt Hamilton wrote: On Mon, 11 Jun 2001, Chris Withers wrote: Wow Matt, you seem to know what you're talking about :-) My final year University project was to create an Open Source mailing list archive :) I did quite a bit of reading into information retrieval and assorted

Re: [Zope-dev] Acquisition Filtered Folder stuff

2001-06-12 Thread Chris Withers
Dieter Maurer wrote: Chris Withers writes: Dieter Maurer wrote: What you probably need: derive a new ObjectManager from Acquisition.Explicit and the current ObjectManager. provide an interface to manage the attributes that should be acquired

Re: [Zope-dev] Pluggable Index How-To Questions

2001-06-12 Thread Chris Withers
Andreas Jung wrote: Is there anything you can do in the index_object method to re-use ZCatalog's get all attributes and call them if they're callable? Don't understand the question...maybe I don't know this ZCatalog feature. My perception is that the 'classic' ZCatalog Indexes have a

Re: [Zope-dev] Structured Text Plus

2001-06-11 Thread Chris Withers
Have you checked out StructuredTextNG? cheers, Chris Ian Clatworthy wrote: I've put together the design for an extended version of Structured Text which I'd like some feedback on before I go too much further. At this stage, the design is explained via a series of user-level How-To's,

Re: [Zope-dev] aq_explicit isn't?

2001-06-11 Thread Chris Withers
Dieter Maurer wrote: What you probably need: derive a new ObjectManager from Acquisition.Explicit and the current ObjectManager. provide an interface to manage the attributes that should be acquired implicitly. Well, I had a go at this, but not quite in the way you describe.

Re: [Zope-dev] Request for a Pluggin Index (NameIndex)

2001-06-11 Thread Chris Withers
Matt Hamilton wrote: I would like to help if I had time :) I think the most efficient way of doing what you want is to construct an index based on a 'Suffix Trie' this essentially allows matching of arbitrary substrings very quickly, the only problem is that it takes up a fair amount of

Re: [Zope-dev] A simple dtml-if question...

2001-06-07 Thread Chris Withers
Thanks Christian, but it didn't work. I went with the long way: dtml-if expr=LoginResults=='Pass' dtml-if expr=PATH_INFO=='/Maintain/Results' Valid response dtml-else False response /dtml-if dtml-else False response /dtml-if

Re: [Zope-dev] Bulletproof ZCatalog proposal

2001-06-07 Thread Chris Withers
Shane Hathaway wrote: But I think I have a solution for all of the issues in conflict resolution. If you, or anyone else, is also interested in this, please show support (if only by saying please do this!) :-) I can't work on it unless I have a reason to. Please do this! :-) I'm

[Zope-dev] Property Storage

2001-06-07 Thread Chris Withers
Hi, If I change one property on, say, a DTML Document, does that store a whole new copy of the document in the ZODB? If not, then how are properties stored? Is so, then how about storing properties in their own mini-class that just subclassed Persistent, so each property got its own pickle

Re: [Zope-dev] DCOracle2 Beta 1 Announcement

2001-06-06 Thread Chris Withers
Good to know :-) Chris - Original Message - From: Matthew T. Kromer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 05, 2001 6:54 PM Subject: [Zope-dev] DCOracle2 Beta 1 Announcement Description DCOracle2 is a replacement for DCOracle, written primarily in C. DCOracle 1

[Zope-dev] aq_explicit bug?

2001-06-05 Thread Chris Withers
This code from a python script gets called when iterating over either a list of objects or catalog brains: obj = _.getitem('sequence-item', 0).aq_explicit url = getattr(obj,'getURL',obj.absolute_url)() folderish = obj.isPrincipiaFolderish I would always expect to get an attribute error

Re: [Zope-dev] Request for a Pluggin Index (NameIndex)

2001-06-05 Thread Chris Withers
Looks like you should write your own index type. Zope 2.4 comes with an PlugableIndex interface to allow third-party indexes to be integrated into the Catalog. Yeah, I know all that, and I'm very much looking forward to playing with this. :-) However, the email was an invitation for anyone

Re: [Zope-dev] dtml-in batching improved

2001-06-03 Thread Chris Withers
Nope, my solution used only one dtml-in and maybe a dtml-let, no REQUEST munging :-) Ok, show me :) Hurm... gimme a shout next Thursday when I have access to the code again ;-) Actually, scratch that, check out the folder_contents.dtml file in CMFDefault/skins of the CMF. It does

Re: [Zope-dev] dtml-in batching improved

2001-06-02 Thread Chris Withers
Nope, my solution used only one dtml-in and maybe a dtml-let, no REQUEST munging :-) Ok, show me :) Hurm... gimme a shout next Thursday when I have access to the code again ;-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] dtml-in batching improved

2001-05-31 Thread Chris Withers
When using batching in dtml-in, why is 'previous-sequence' only defined at the first iteration of the current batch? And why is 'next-sequence' only defined at the last iteration of the current batch? I know this problem ;-) I had it too, and stuck something in the collector about it. I did

Re: [Zope-dev] dtml-in batching improved

2001-05-31 Thread Chris Withers
I've done it myself as well using (as described in the posting) two dtml-in's (the second one purely for displaying the prev/next links). Is your solution any different? (The only one I can think of is storing the info in your REQUEST object and using it later, but that's really ugly.)

Re: [Zope-dev] What would *you* like to have in PropertyManager and friends?

2001-05-29 Thread Chris Withers
On Mon, May 28, 2001 at 09:37:21AM +0100, Chris Withers wrote: Well, a nicer interface for changing them is about all I think they need. And sort the marshalling stuff out. It would be nice to actually store blank dates and numbers (None should be a valid value for both of them

Re: Randomness (RE: [Zope-dev] CoreSessionTracking 0.8)

2001-05-25 Thread Chris Withers
Chris McDonough wrote: To further try to track this problem down, I've developed a burger, fries, coke application in honor of this thread. So far, I've eaten 84 burgers, 31 cokes, and 42 fries. I can't seem to break this thing, and I'm not hungry anymore. :-( Sorry, but I had to :-)

Re: Randomness (RE: [Zope-dev] CoreSessionTracking 0.8)

2001-05-25 Thread Chris Withers
Chris McDonough wrote: Note that I just changed CST to unwrap aq-wrapped objects just in case, I always wondered why Squishdot did this, now I know :-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] ZCatalog Brains

2001-05-23 Thread Chris Withers
Hi, Is it still fair game to use the data_record_normalized_score_ attibute of ZCatalog Brain objects? If so, is it accurate and meaningful? Finally, is there any way I can do the Google-esque thing of showing the snippet of the searched etxt with the words that were found highlighted?

[Zope-dev] Quick Persistence Question

2001-05-21 Thread Chris Withers
if self.data is a BTree and I do: obj = self.data[id] obj.revsub = obj.revsub + 1 obj's class subclasses Persistant, as does self's Do I need to let the persistence mechanism know something has changed? If so, do I do: obj._p_changed=1 ...or... self._p_changed=1 (which feels like it's

Re: [Zope-dev] Quick Persistence Question

2001-05-21 Thread Chris Withers
Casey Duncan wrote: Chris Withers wrote: if self.data is a BTree and I do: obj = self.data[id] obj.revsub = obj.revsub + 1 AFAIK _p_changed is only needed when you change a mutable attribute you want stored like adding a dict key or appending to a list. revsub looks like an int

[Zope-dev] Woah! Weirdy Catalog Error :-S

2001-05-21 Thread Chris Withers
Automatic Zope Response wrote: Zope reported an error for: Error Type: TextIndex.QueryError Error Value: Malformed query Traceback: Traceback (innermost last): File /usr/local/zope/2.3.2_base/lib/python/ZPublisher/Publish.py, line 171, in publish File

[Zope-dev] Weirdy Catalog Error II :-S

2001-05-21 Thread Chris Withers
Got another one, thsi time from someone trying to upgrade to Squishdot 1.2.1: Error Type: IndexError Error Value: tuple index out of range The traceback is: Traceback (innermost last): File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 223, in publish_module

Re: [Zope-dev] Woah! Weirdy Catalog Error :-S

2001-05-21 Thread Chris Withers
Chris McDonough wrote: It's possible to catch this error, but it's not possible to allow folks to search for things with parens in them currently. I'm not having a good time catching it: from SearchIndex import TextIndex try: brains = apply(self.searchResults,(REQUEST,),kw)

[Zope-dev] 'None' object has no attribute 'load'

2001-05-18 Thread Chris Withers
Hi, Another data point on these errors. -- 2001-05-18T11:01:44 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\00 0(\347\026' Traceback (innermost last): File E:\Zope\2379B4~1.2\lib\python\ZODB\Connection.py, line 508, in setstate AttributeError: 'None' object has no attribute

Re: [Zope-dev] 'None' object has no attribute 'load'

2001-05-18 Thread Chris Withers
Chris McDonough wrote: python import Zope app = Zope.app() ob = app._p_jar['\000\000\000\000\000(\347\026'] print ob.id print ob.__class__ Thanks, that worked, and sorry Chris, but I'm about to ruin your day :-S app = Zope.app() ob = app._p_jar['\000\000\000\000\000(\347\026'] print

Re: [Zope-dev] 'None' object has no attribute 'load'

2001-05-18 Thread Chris Withers
Chris McDonough wrote: I suspect this has something to do with the _p_jar attribute of the mounted storage object becoming None at some point after a commit. That said, I'm in over my head, and I'm going to need some help from others at DC. Since this error rarely gets raised at the user

Re: [Zope-dev] 'None' object has no attribute 'load'

2001-05-18 Thread Chris Withers
Chris McDonough wrote: Chris McDonough wrote: It is unfortunately one of the things lowering certain parts of NIP's opinions of Zope :-S Ah I love FUD. Well, opine away. It has no actual effect on the system that I can detect. Deinstalling CST will make it go away as well. Easier

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

2001-05-17 Thread Chris Withers
Chris McDonough wrote: That sounds good! At least for the Catalog. Want to be a tester? ;-) I would, especially for drop-in indexes and AND keyword indexes :-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

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

2001-05-17 Thread Chris Withers
Chris McDonough wrote: Well, some revision of 2.4 alpha will ship with drop-in indexes, so using it would be wonderful. Lemme know as soon as it's in CVS and I'll see if I can get my Zope from source going on WinNT, I gave up the last tiem my need came close but Brian has solved the problem

Re: [Zope-dev] manage_workspace = index_html

2001-05-15 Thread Chris Withers
Michel Pelletier wrote: If I recall, this have been broken an fixed in mozilla a few times now. Other browsers do this wrong too, like w3m. If so many browsers do this wrong (the list seems to currently be IE, Mozilla, Lynx and W3M... at Netscape and you'll have about 99% coverage ;-) maybe

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

2001-05-15 Thread Chris Withers
Erik Enge wrote: This is Zope 2.3.1b1, by the way. I'm changing to Zope 2.3.2b2 as we speak, but I don't think it will improve performance that much. Why nto go for 2.3.2 final? IIRC, 2.3.2b2 had some nasty ZCatalog bugs in it... cheers, Chris

Re: [Zope-dev] Experiments with ORMapping

2001-05-14 Thread Chris Withers
Shane Hathaway wrote: I'm telling you there's a lot more you can do with the code that makes snip The next thing to do is to write a fishbowl proposal. This sounds cool but made my head hurt :-S Can you try and bring this back down to the level of us mere mortals by explaining how your OR

Re: [Zope-dev] Experiments with ORMapping

2001-05-14 Thread Chris Withers
Shane Hathaway wrote: One would define an ObjectMappingSchema whose job it is to store and retrieve objects of a specific type and in a specific location. It would usually grab a database connection object to do its work. When loading, it would perform a query then manually put

Re: [Zope-dev] Experiments with ORMapping

2001-05-14 Thread Chris Withers
Shane Hathaway wrote: ZPatterns implements storage logic on the application level. Applications have to be aware of (in fact they have to be centered around) ZPatterns. This alternate approach keeps storage logic independent of application logic. It lets you take any code written for the

Re: [Zope-dev] Experiments with ORMapping

2001-05-11 Thread Chris Withers
Shane Hathaway wrote: Kapil gave Jim and I a good introduction to SmartObjects yesterday. So far, it seems a lot like ZPatterns in that it mandates a new database access API rather than trying to be transparent like ZODB. The other is TransWarp, which has a slightly different focus, but

Re: [Zope-dev] Re: Grrr... Python Scripts

2001-05-11 Thread Chris Withers
Chris McDonough wrote: Here Chris, I'll try to solve your pain (untested): from AccessControl import ModuleSecurityInfo ModuleSecurityInfo('Products').declarePublic('Catalog') ModuleSecurityInfo('Products.Catalog').declarePublic('CatalogError') Could that we added to

Re: [Zope-dev] New IOBTrees have no 'map' method

2001-05-11 Thread Chris Withers
Chris McDonough wrote: Untested... return map(lambda x, data=self.data, self=self: data[x].__of__(self), ids) ah, I see :-) Would that be faster than my little function? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Re: Grrr... Python Scripts

2001-05-11 Thread Chris Withers
Chris McDonough wrote: We actually need to do something to make a whole bunch of default stuff importable and usable from within Python Scripts, it's just a matter of which modules/classes to add security declarations for. Maybe this could be bundled into the RestrictedPython work? It's

Re: [Zope-dev] New IOBTrees have no 'map' method

2001-05-11 Thread Chris Withers
Chris McDonough wrote: Probably not appreciably... unless it is, of course. ;-) It depends how many things you're iterating over. self.data can often contain several thousand objects. Might even be slower... it'd require testing and its probably not worth it. Hehe, I'll leave it then,

Re: [Zope-dev] Re: Grrr... Python Scripts

2001-05-08 Thread Chris Withers
Evan Simpson wrote: Use the same security process as providing access to anything Zope doesn't already expose. Wgh! :~( We should expose exceptions like this by default, but we haven't yet. Sorry. No worries, where should I be looking to implement this? Woudl a patch eb likely to

[Zope-dev] New IOBTrees have no 'map' method

2001-05-07 Thread Chris Withers
Hi, I was going to have the next version of Squishdot use the new BTrees, but it appears that the new objects don't have the same methods as the old ones. In particular, the following line from Squishdot: return map(lambda x, p=self: x.__of__(p), self.data.map(self.site_id_list(currtime)))

Re: [Zope-dev] New IOBTrees have no 'map' method

2001-05-07 Thread Chris Withers
Chris McDonough wrote: Have you read the Interfaces.py file in the BTrees directory? I have now, and to be honest, it didn't mean a lot to me :-( Sorry, it's late here, what am I missing? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Grrr... Python Scripts

2001-05-03 Thread Chris Withers
Hi Evan zope-dev'ers, Hope you can help, and pre-emptive apologies for the bad mood I'm in :-S I want to do: try: acatalog.searchResults(aDict) except CatalogError,e: print Something bad happened: ,e Where should I import CatalogError from? And _please_ don't tell me I have to

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

2001-05-03 Thread Chris Withers
Hmmm... saw these in the stupid log, just before the server crashed: -- 2001-05-03T10:09:34 INFO(0) Z2 CONFLICT Competing writes at, /VirtualHostBase/http/server.nipltd.com:80/VirtualHostRoot/folder/object Traceback (innermost last): File

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

2001-05-03 Thread Chris Withers
Good morning, I presume? :-) Chris McDonough wrote: This probably isn't meaningful... unless it is. ;-) Huh? Conflict errors are normal... I wish they wouldn't be so big and have an UPPERCASE word in their description. OK, but I did notice them just before the server died. Maybe now

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

2001-05-03 Thread Chris Withers
Chris McDonough wrote: You can also use cumulative reporting to sort by hangs: requestprofiler.py your.log.file --cumulative --sort=hangs python requestprofiler.py my.log --cumulative --sort=hangs out2.txt resulted in: Traceback (innermost last): File requestprofiler.py, line 586,

Re: [Zope-dev] CST 0.8 Updater Fixed...

2001-05-02 Thread Chris Withers
Chris McDonough wrote: But to make it happen you'd need ZPublisher to support a callback from ZServer when a connection was terminated. Since I know little about either, I'm not entirely confident I can be more specific. yeah, well, even I was impressed how high above my head that flew, so

Re: [Zope-dev] Hanging :-( More details... (before restart)

2001-05-02 Thread Chris Withers
Well, it's still happening, this time I was just browsing the management interface :-( The last thing in Z2.log was: 194.193.44.4 - - [02/May/2001:14:35:30 +0100] GET /VirtualHostBase/http/server.nipltd.com:80/VirtualHostRoot/manage_workspace HTTP/1.0 302 440

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

2001-05-02 Thread Chris Withers
Chris McDonough wrote: Absolutely! When you've got some representative data, and you've successfully run requestprofiler against it in various ways, let me know. Hmmm, not really sure what I should be looking for :-S What ways should I look to run it and what should I do with the output?

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

2001-05-02 Thread Chris Withers
Chris McDonough wrote: snip info Thanks, that's just what I was looking for The goal is to indentify methods or requests that take a long time, don't return, or are accessed frequently. Yup If you can match this data up with specific problems you've experienced (possibly by way of

Re: [Zope-dev] CST 0.8 Updater Fixed...

2001-04-29 Thread Chris Withers
Chris McDonough wrote: This is due to the relationship between ZServer and the publisher. Sometimes it can be a bad thing... especially when there's an expensive method that folks fire off that takes a long time.. nothing comes back to their browser, so they press stop and hit the page

Re: [Zope-dev] Waagh! More fun games with the CST 0.8 Updater

2001-04-29 Thread Chris Withers
Chris McDonough wrote: Darn. No idea. If you can boil it down to an always-fails test, I can probably fix it. It was quicker just to go through them all by hand :-( Mindyou, I wonder if this isn't another data point on the 'WTF are those None has no attribute load errors' graph. Chris

Re: [Zope-dev] Re: BTreeFolder

2001-04-29 Thread Chris Withers
Shane Hathaway wrote: Phillip J. Eby wrote: Now, what *I*'d like to know is what the bold new idea is, since it sounds like it's something even newer than the forward-chained-buckets-plus-conflict-resolution stuff that's already been released. snip So, all things considered, you

Re: [Zope-dev] Zope Server hanging: CST 0.8 didn't help :-(

2001-04-29 Thread Chris Withers
Joachim Werner wrote: Right now we don't face these problems any more. As far as I know, the only thing Stephan changed on the server was exchanging the CoreSession tracking by the newest version (0.8 I think), which had to be patched to run for us AFAIK. Now the server is reliable again.

Re: [Zope-dev] Zope Server hanging: 2.3.2b2 didn't help :-(

2001-04-29 Thread Chris Withers
Tim McLaughlin wrote: 1. Hangs on anything from Pythonscript or dtml Sounds about right. 2. top shows no significant mem or cpu usage Yup 3. threads are all unresponsive yup 4. restart usually yields a .trX file (an aborted transaction I suppose) Hadn't noticed, but I'll ook out

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

2001-04-29 Thread Chris Withers
Chris McDonough wrote: I forgot to mention... our neither our z2.log or stupid_log show anything upon freezing. afterwards the stupid_log shows the failed transaction cleanup, but that's it. Hmmm... it might be useful to turn on detailed request logging (-M logging) in the start file

[Zope-dev] ZCatalog comments

2001-04-27 Thread Chris Withers
Michel Pelletier wrote: +There are some rules to consider when querying this method: + +- an empty query mapping (or a bogus REQUEST) returns all + items in the +catalog. Is it only me that finds this really irritating? Surely a blank query

[Zope-dev] CST 0.8 Question

2001-04-27 Thread Chris Withers
Hi Chris, While writing the CST 0.7 - 0.8 updater, I noticed something weird in SessionIdManager.py. In constructSessionIdManager(), you call SessionIdManager.__init__ with a final parameter called 'rewritemode'. I don't know what that's meant to do, but all I can see is that it results in a

[Zope-dev] makerequest.py

2001-04-27 Thread Chris Withers
Hi, This is quite a useful little utility, but it creates a REQUEST object without any AUTHENTICATED_USER beign present. Should this be remedied? If so, how? I do have memories that REQUEST.AUTHENTICATED_USER has been deprecated. In which, case, how should you get hold of the current user's

Re: [Zope-dev] a plea for help (again)

2001-04-27 Thread Chris Withers
tav wrote: File /home/zope/k1/lib/python/Products/XnetPage/XnetPage.py, line 811, in __repr__ (Object: test_page TypeError: call of non-function (type string) OK, the code around this is: def __repr__(self): return (%s %s at 0x%s %

Re: [Zope-dev] CST 0.8 Updater Fixed...

2001-04-27 Thread Chris Withers
Chris Withers wrote: It's running and working okay, but every so often, when running it, I get: 2001-04-27T09:15:23 PANIC(300) ZODB A storage error occurred in the last phase o I stopped the above by wrapping the code as follows: get_transaction().begin() path

[Zope-dev] BTreeFolder

2001-04-27 Thread Chris Withers
Hi Shane, will you be releasing a new version of BTreeFolder that makes use of the new funky BTrees at any stage? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

Re: [Zope-dev] 27 million objects.

2001-04-27 Thread Chris Withers
Erik Enge wrote: 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 storage increase. I'm using Zope 2.3.1b1 so that shouldn't be a problem?

Re: [Zope-dev] 27 million objects.

2001-04-27 Thread Chris Withers
Erik Enge wrote: 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? Not so much a bug

[Zope-dev] Updaters for ZCatalog and Core Session Tracking Available

2001-04-27 Thread Chris Withers
Hi, I've done some Updaters to help with the move to the new ZCatalog and Core Session Tracking implementations. These updaters help you quickly update all objects of a particular type in a ZODB. The and information about them can be found at: http://www.zope.org/Members/chrisw/UpdateSupport

Re: [Zope-dev] Re: BTreeFolder

2001-04-27 Thread Chris Withers
Shane Hathaway wrote: Chris Withers wrote: will you be releasing a new version of BTreeFolder that makes use of the new funky BTrees at any stage? We've done some work on it; in fact Jim came up with a bold new idea that makes them inherently faster. Now to find the time. :-) Cool

Re: [Zope-dev] CST 0.8 Updater Fixed...

2001-04-27 Thread Chris Withers
Chris Withers wrote: Chris Withers wrote: It's running and working okay, but every so often, when running it, I get: 2001-04-27T09:15:23 PANIC(300) ZODB A storage error occurred in the last phase o I stopped the above by wrapping the code as follows: Unfortunately, it still

[Zope-dev] Zope Server hanging :-(

2001-04-27 Thread Chris Withers
Hi, 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. The symptoms are as follows: 1. Go to a given URL, which doesn't respond (browser sits and spins) 2. Doing a 'top'

[Zope-dev] Waagh! More fun games with the CST 0.8 Updater

2001-04-27 Thread Chris Withers
It's running and working okay, but every so often, when running it, I get: 2001-04-27T09:15:23 PANIC(300) ZODB A storage error occurred in the last phase o f a two-phase commit. This shouldn't happen. The application may be in a hosed state, so transactions will not be allowed to commit until

Re: [Zope-dev] deepcopy of file object

2001-04-26 Thread Chris Withers
Dieter Maurer wrote: Chris Withers writes: ... copying ZODB objects ... I use the following function: def _clone(o): clone an object. Currently, a deep copy is used; maybe we should use a shallow copy instead. c= cPickle.loads(cPickle.dumps(o.aq_base,1)) c._p_oid= None

[Zope-dev] deepcopy of file object

2001-04-24 Thread Chris Withers
Hi, I've got an object of type OFS.Image.File and I want to make a copy of it. I can't use the ObjectManager stuff, 'cos this object is being stored in a BTree-ish thing in a quite different context from a Zope folder. For obvious reasons, deepcopy(myfileobject) fails with a copy.error 'cos I

Re: [Zope-dev] ZCatalog waaaagh!

2001-04-23 Thread Chris Withers
Chris McDonough wrote: In the meantime, if you're desperate, here's a temporary fix... replace the items method of the UnTextIndex class in UnTextIndex.py. The current method looks something like this: def items(self): reurn self._index.items() change it to: def items(self):

Re: [Zope-dev] ZCatalog waaaagh!: The Error

2001-04-23 Thread Chris Withers
d'oh! Error type: strongTypeError/strongbr Error value: strongunsubscriptable object/strong Traceback (innermost last): File E:\Zope\2379A4~1.1\lib\python\ZPublisher\Publish.py, line 223, in publish_module File E:\Zope\2379A4~1.1\lib\python\ZPublisher\Publish.py, line 187, in

Re: [Zope-dev] CoreSessionTracking

2001-04-23 Thread Chris Withers
Chris McDonough wrote: Darn. Security nails us once again. :-( I'll need to figure out how to allow __setitem__ to be called on session data objects from within a Python Script. Add a line below your definition of __setitem__ that reads: __guarded_setitem__ = __setitem__ cheers,

Re: [Zope-dev] CoreSessionTracking

2001-04-23 Thread Chris Withers
Chris McDonough wrote: Nothing like good documentation ;-) Where can I find otu about that? http://www.zope.org/Members/michel/Projects/Interfaces/DTMLSecurityAPI It's also in the security chapter of the Zope Book *embarrassed grinz* Randall F. Kern wrote: as for simplifying

Re: [Zope-dev] ZCatalog waaaagh!

2001-04-19 Thread Chris Withers
Chris McDonough wrote: I know why this is, but I'm not going to fix it tonight... sigh. I need to go cry on Jim's shoulder for a bit before I check a proper fix in. I'm guessing the fix for this is in 2.3.2b1? cheers, Chris ___ Zope-Dev

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

2001-04-19 Thread Chris Withers
Chris McDonough wrote: dtml-in "Catalog(textindex='foo' AND fieldindex='bar' OR keywordindex=['flop'])" Chris, how hard would it be to expose ZCatalog's set lazy union and intersection operators? IIRC, ZCatalog does a lot of this internally so it shouldn't be that hard to do? (right?!

[Zope-dev] ZCatalog.indexes()

2001-04-19 Thread Chris Withers
Hi, I read in the interfaces wiki (I think :-S) that the indexes() method of ZCatalog is being deprecated. Is this still accurate? If so, how _should_ I be asking a ZCatalog for a list of it's indexes? I'd also like to know their types if possible :-) cheers, Chris

<    9   10   11   12   13   14   15   16   17   18   >