[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

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

2001-04-27 Thread tav
sorry for sending this to the list again, but i would _really_ appreciate some help with the matter. thanks =) heyas i created a zope product called, XnetPage, which is basically a folderish dtml document/zwikipage the source for the product can be seen at

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] a plea for help (again)

2001-04-27 Thread tav
CW == Chris Withers [EMAIL PROTECTED] wrote: CW OK, the code around this is: def __repr__(self): return (%s %s at 0x%s % (self.__class__.__name__, `self.id()`, hex(id(self))[2:])) CW I'm betting self.id isn't a methodm hence your

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] Re: a plea for help (again) (tav)

2001-04-27 Thread Tim McLaughlin
Tav, I don't see why you need to reimplement __repr__ in the first place. I believe that what yours is trying to do is the default implementation on a class. (somebody tell me if I am wrong) But this probably is not the fundamental issue. TIm ___

[Zope-dev] Trying to set roles/permissions programmatically - Now I have a headache!

2001-04-27 Thread Danny William Adair
Hello! I want to set the roles of a permission and turn acquisition of a permission (mapping) on and off programmatically. And of course I want to get a permission by its name. This looks definitely more complex than simply changing an object's property! I took a look at the management

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

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

[Zope-dev] Re: BTreeFolder

2001-04-27 Thread Shane Hathaway
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. :-) Shane

[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] Re: CST 0.8 Question

2001-04-27 Thread Chris McDonough
Oops, thanks for the bugrep!! It does no harm currently, but this will be fixed in the next version. - Original Message - From: Chris Withers [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, April 27, 2001 3:55 AM Subject: CST 0.8 Question Hi Chris, While

Re: [Zope-dev] ZCatalog comments

2001-04-27 Thread Chris McDonough
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

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

2001-04-27 Thread Chris McDonough
Darn. No idea. If you can boil it down to an always-fails test, I can probably fix it. - Original Message - From: Chris Withers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, April 27, 2001 5:18 AM Subject: [Zope-dev] Waagh! More fun games with the CST 0.8

Re: [Zope-dev] makerequest.py

2001-04-27 Thread Chris McDonough
Hi, This is quite a useful little utility, but it creates a REQUEST object without any AUTHENTICATED_USER beign present. Uh huh. Should this be remedied? If so, how? Maybe it should be a parameter of the makerequest function. I do have memories that REQUEST.AUTHENTICATED_USER has

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

2001-04-27 Thread Chris McDonough
I stopped the above by wrapping the code as follows: snip Cool! I wonder why it's necessary? Something to do with the weirdy mounted internal session data container? As Colonel Klink says so well, I see nussing! ___ Zope-Dev maillist -

Re: [Zope-dev] Re: BTreeFolder

2001-04-27 Thread Michael Bernstein
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. :-) Does

Re: [Zope-dev] 27 million objects.

2001-04-27 Thread Chris McDonough
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

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

2001-04-27 Thread Chris McDonough
Rock! These updaters help you quickly update all objects of a particular type in a ZODB. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

[Zope-dev] Zope Server hanging :-(

2001-04-27 Thread Tim McLaughlin
Chris (and all), We seem to be having similar crashing issues. And interestingly enough, they don't seem to show up on any of our servers except the 2.3.0 upgraded to 2.3.1. 1. Hangs on anything from Pythonscript or dtml 2. top shows no significant mem or cpu usage 3. threads are all

OT: hogans heroes club was: [Zope-dev] CST 0.8 Updater Fixed...

2001-04-27 Thread Chris McDonough
You are correct sir! The Zope community appreciates this effort! ;-) - C - Original Message - From: Schmidt, Allen J. [EMAIL PROTECTED] To: 'Chris McDonough' [EMAIL PROTECTED]; Chris Withers [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, April 27, 2001 12:58 PM Subject: RE:

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

2001-04-27 Thread Schmidt, Allen J.
Sorry to contradict you Chris, but it was actually Sgt. Shultz who stated that famous line. It's not often I can contribute so I thought I would give something back! 8^) Allen (active member of ZA - -Zopaholics Anonymous) -Original Message- From: Chris McDonough [mailto:[EMAIL

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

2001-04-27 Thread Chris McDonough
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 (see z2.py). Attached is a

Re: [Zope-dev] Re: BTreeFolder

2001-04-27 Thread Phillip J. Eby
At 09:19 AM 4/27/01 -0700, Michael Bernstein wrote: 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

Re: [Zope-dev] Heads up -- big changes on trunk

2001-04-27 Thread Chris McDonough
Additionally, other mass changes to the trunk will occur when Andreas merges the work he's done to rid the codebase of regex in favor of re. One of the more major shifts is the deprecation of the old structured text in favor of StructuredTextNG, which is serviced via a compatibility module. The

[Zope-dev] manage_debug

2001-04-27 Thread Andy McKay
Clicking on manage_debug kills Zope, honest. Anyone else seen this? Nothing printed to stderr or anything useful. Sigh. B 29501752 2001-04-27T17:50:02 GET /Control_Panel/DebugInfo/manage_main I 29501752 2001-04-27T17:50:02 0 Windows 2K, Zope 2.3.0. Cheers. -- Andy McKay.

Re: [Zope-dev] manage_debug

2001-04-27 Thread Chris McDonough
What version? - Original Message - From: Andy McKay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 27, 2001 1:56 PM Subject: [Zope-dev] manage_debug Clicking on manage_debug kills Zope, honest. Anyone else seen this? Nothing printed to stderr or anything useful. Sigh.

Re: [Zope-dev] manage_debug

2001-04-27 Thread Chris McDonough
Gad, I have a rough time with that reading the version thing, sorry. ;-) I haven't seen this behavior. - Original Message - From: Andy McKay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 27, 2001 1:56 PM Subject: [Zope-dev] manage_debug Clicking on manage_debug kills

Re: [Zope-dev] Re: BTreeFolder

2001-04-27 Thread Shane Hathaway
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. It's simple, really. BTreeFolders play havoc with acquisition because

Re: [Zope-dev] url traversal

2001-04-27 Thread Dieter Maurer
Brett Carter writes: I have the classic problem of wanting my method 'foo' to work like: http://localhost/foo/a/b/c where a,b,c are parameters passed to foo. I've found some info in the mailing list archives, namely: http://lists.zope.org/pipermail/zope-dev/2000-May/005197.html

Re: [Zope-dev] Trying to set roles/permissions programmatically - Now I have a headache!

2001-04-27 Thread Dieter Maurer
Danny William Adair writes: I want to set the roles of a permission and turn acquisition of a permission (mapping) on and off programmatically. And of course I want to get a permission by its name. This looks definitely more complex than simply changing an object's property! My standard

Re: [Zope-dev] makerequest.py

2001-04-27 Thread Dieter Maurer
Chris Withers writes: I do have memories that REQUEST.AUTHENTICATED_USER has been deprecated. In which, case, how should you get hold of the current user's object and can this be made to work in a testing environment? Your company is hosting these great searchable list archives? They help

Re: [Zope-dev] ZCatalog comments

2001-04-27 Thread Dieter Maurer
Chris Withers writes: +- 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 mapping should return nothing, not everything? (at the least it'd

Re: [Zope-dev] manage_debug

2001-04-27 Thread Andy McKay
I removed some twofish.dll's and this solved this problem. Wierd. -- Andy McKay. - Original Message - From: Chris McDonough [EMAIL PROTECTED] To: Andy McKay [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, April 27, 2001 10:55 AM Subject: Re: [Zope-dev] manage_debug Gad, I have a

Re: [Zope-dev] manage_debug

2001-04-27 Thread Chris McDonough
What the heck is a twofish.dll? - Original Message - From: Andy McKay [EMAIL PROTECTED] To: Chris McDonough [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, April 27, 2001 3:52 PM Subject: Re: [Zope-dev] manage_debug I removed some twofish.dll's and this solved this problem. Wierd.

Re: [Zope-dev] manage_debug

2001-04-27 Thread Andy McKay
Its part of the twofish encryption modules. I can live without them for a while. http://twofish-py.sourceforge.net/ Cheers. -- Andy McKay. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross

Re: [Zope-dev] Re: BTreeFolder

2001-04-27 Thread Hannu Krosing
Shane Hathaway wrote: However, purely random IDs would cause all the buckets to be loaded in memory all the time, so Jim's third idea was to have each client increment sequentially from a random ID and move to a new random ID if conflicts ever occur. Can't one just assign some unique id

Re: [Zope-dev] Re: BTreeFolder

2001-04-27 Thread Shane Hathaway
Hannu Krosing wrote: Shane Hathaway wrote: However, purely random IDs would cause all the buckets to be loaded in memory all the time, so Jim's third idea was to have each client increment sequentially from a random ID and move to a new random ID if conflicts ever occur. Can't

[Zope-dev] ZStyleSheets

2001-04-27 Thread Romain Slootmaekers
Yo, when trying to use the ZStyleSheets, we only found a zip, but no tarball. After unzipping, it didn't work because appearantly the zip was made for some OS that has a case-insensitive file-system. after renaming the files (zstylesheet* - ZStyleSheets* aso) everything behaved as expected.

[Zope-dev] ANNOUNCE: Zope 2.3.2 released

2001-04-27 Thread Brian Lloyd
Hello all, Zope 2.3.2 has been released - you can download it from Zope.org: http://www.zope.org/Products/Zope/2.3.2/ Zope 2.3.2 contains no changes from 2.3.2 beta 2 other than two small fixes that were accidentally committed to the release branch (it was supposed to be frozen

Re:[Zope-dev] Trying to set roles/permissions programmatically - Now I have a headache!

2001-04-27 Thread Danny William Adair
Hello Dieter! As you can see in my email (after the first paragraph), I did look through management interface and AccessControl/*.py Before writing to the list and annoying others with my little problems, I 1. try it myself (for a short time) 2. - search the mailing list archives - search all

[Zope-dev] Permissions to change Acquire Permissions?

2001-04-27 Thread Tim R Ansell
I was wondering if it would be possible for a new permission to be created, this permission would let (or stop) people from changing the Acquire Permissions check boxes found in the Security Tab. The reason I would like a permissions like this is that some users that need to give people

[Zope-dev] ZPT 1.2, TAL 1.2, ZTUtils 1.0 Released

2001-04-27 Thread Evan Simpson
Actually, I uploaded these at 5pm today, then I had to run and catch a plane. I still haven't updated the Project wiki, but if you visit: http://www.zope.org/Members/4am/ZPT ...you can pick up the latest. You need to download all three; PageTemplates goes in a Products directory, TAL and

[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

[Zope-dev] create user object for testing purposes (ZUnit)

2001-04-27 Thread Karim Yaici
Hi, I need some help on the creation of a (dummy?) user object using Python. I am trying to test a zope product using ZUnit. I have been able to 'simulate' a request by using the makerequest.py module (Lib/Python/Testing). Here is how I used it: import makerequest app =