Re: [Zope-dev] Problems with LoginManager form-based login

2000-05-26 Thread Evan Simpson
- Original Message - From: Phillip J. Eby <[EMAIL PROTECTED]> > >The GUF version, at least, doesn't need this drastic a fix. Adding the > >following line to the top of guf_unauthorized should suffice: > > > >del request.RESPONSE.unauthorized > > > > You're making the assumption that unaut

Re: [Zope-dev] [Fwd: ZCatalog.. Again.. I know..]

2000-05-26 Thread R. David Murray
On Wed, 24 May 2000, Chris Withers wrote: > This is weird... the bit of code in question was: > lib/python/SearchIndex/Lexicon.py line 132: [...] > Now Michel's patch was to change this to: > else: > self.counter = self.counter + 1 > self._lexicon[intern(word)] = se

[Zope-dev] Setuid code not possible w/new Security API

2000-05-26 Thread Phillip J. Eby
In previous versions of Zope, it was possible to do "setuid" code by setting AUTHENTICATED_USER to a new user, then resetting when code completed. Zope 2.2 loses this ability, as it has absolutely no API for setting or stacking the "current user", without completely replacing the ZopeSecurityPoli

Re: [Zope-dev] Z SQL: "optional" isn't?

2000-05-26 Thread jpenny
On Fri, May 26, 2000 at 02:59:38PM -0500, Kyler B. Laird wrote: > > I'd like to build a Z SQL method for *many* > people to use to list courses that we offer. > I don't want to require that all queries > using it understand all of the columns, but > I do want to be able to modify the query in > m

[Zope-dev] Z SQL: "optional" isn't?

2000-05-26 Thread Kyler B. Laird
I'd like to build a Z SQL method for *many* people to use to list courses that we offer. I don't want to require that all queries using it understand all of the columns, but I do want to be able to modify the query in many ways. So...after reading http://yyy.zope.org/Documentation/Guides

Re: [Zope-dev] Problems with LoginManager form-based login

2000-05-26 Thread Phillip J. Eby
At 03:05 PM 5/26/00 -0400, Evan Simpson wrote: >- Original Message - >From: Phillip J. Eby <[EMAIL PROTECTED]> >> Been there, done that. Yours doesn't work either, btw. Well, actually, >it >> does, it's just that it causes a memory leak because it leaves an >> unintended circular referen

Re: [Zope-dev] Problems with LoginManager form-based login

2000-05-26 Thread Evan Simpson
- Original Message - From: Phillip J. Eby <[EMAIL PROTECTED]> > Been there, done that. Yours doesn't work either, btw. Well, actually, it > does, it's just that it causes a memory leak because it leaves an > unintended circular reference. We've got a version that fixes the circular > re

Re: [Zope-dev] Memory 2.1.4-2.1.6 a.k.a. how to get objects out of the cache

2000-05-26 Thread Bill Anderson
Jason Spisak wrote: [...] > That's funny that I am experienceing the same symptoms as you, but my > installation is totally different. I'm not using GUF, or any DA's, and I'm > running on RH 6.1. We really need to figure this out as a community. I am > willing to try just about anything short

[Zope-dev] Using FSSession from an external method

2000-05-26 Thread Lindell Alderman
I am trying to use FSSession from an external method. I have no problem reading from the Session or updating a dictionary in the Session. My problem is that I cannot delete or change any of the entries in the Session from my external method. Could this an initialization issue or could it be a p

Re: [Zope-dev] Re: Memory issue 2.1.6 (Hemophelia)

2000-05-26 Thread Matthew T. Kromer
on 5/26/00 1:04 PM, Jason Spisak at [EMAIL PROTECTED] wrote: > Shane and others: > > Currently I have to restart the *server* that Zope runs on everyday in > order to get the memory tat Zope claims in cache back. Even when I stop > the Zope process, the cache doesn't clear. Is there a command

Re: [Zope-dev] Problems with LoginManager form-based login

2000-05-26 Thread Phillip J. Eby
At 07:11 PM 5/26/00 +1000, Stuart 'Zen' Bishop wrote: >On Wed, 24 May 2000, Phillip J. Eby wrote: > >> This is a problem that apparently can only be solved by replicating >> ZPublisher's backward walk, which is the wrong thing to do because the >> traversal will be O(n^2). Bleah. I guess we'll h

Re: [Zope-dev] Memory 2.1.4-2.1.6 a.k.a. how to get objects out of the cache

2000-05-26 Thread Jason Spisak
Eric Sattler: > Jason, > > I don't have time right now to post this to the zope > newsgroup, but we are bleeding profusely, and could > use any insight you might have... > Unfortunately just before recieving your message, I fired another one out because I have run out of tests. :( > > I also

[Zope-dev] Re: Memory issue 2.1.6 (Hemophelia)

2000-05-26 Thread Jason Spisak
Shane and others: Currently I have to restart the *server* that Zope runs on everyday in order to get the memory tat Zope claims in cache back. Even when I stop the Zope process, the cache doesn't clear. Is there a command in Linux to force that cache to clear? Also, after a clean reboot, I tr

Re: [Zope-dev] DateTime objects's and ZCatalog

2000-05-26 Thread Jason Spisak
Shane Hathaway: > Jason, > > I've looked over your DTML and I can't quite get a fix on what's going > on (then again, I'm not very familiar with dtml-calendar.) If you'd > send more details I might be able to help, but only in my spare time > I'm afraid... That's actually a very generous offer

Re: [Zope-dev] newbie question: parameter passing for ZSQL Object

2000-05-26 Thread Grakka
1. Check that your parameters ara on scope 2. try the following: ...And in the ZSQL method define your dtml-vars as (etc) zope wrote: > > Hi. > > With some values that I got from a formular, I wan't to do some calculation > stuff, and insert the calculated values into a database. > > My Z SQ

Re: [Zope-dev] russian-specific things

2000-05-26 Thread Oleg Broytmann
Hi! Have you subscribed to Russian Python/Zope Mailing Lits? echo subscribe python | mail [EMAIL PROTECTED] http://www.glasnet.ru/~jno/Python/ On Fri, 26 May 2000, Bo Berkhaut wrote: > As you maybe know, there are at least _three_ standard encodings > for russian cyrillic: koi8-r, which is

Re: [Zope-dev] Recursion

2000-05-26 Thread Duncan Booth
> There would seem to be two ways to 'fix' this, I'll leave it as an exercise > for the reader to discuss which is best. > > Option 1: > def foo(self,counter=None): > some code > if bar == somewhat: > self.foo(counter=some_int) Option 1 has a problem. If you give it a different na

Re: [Zope-dev] Problems with LoginManager form-based login

2000-05-26 Thread Stuart 'Zen' Bishop
On Wed, 24 May 2000, Phillip J. Eby wrote: > This is a problem that apparently can only be solved by replicating > ZPublisher's backward walk, which is the wrong thing to do because the > traversal will be O(n^2). Bleah. I guess we'll have to do something like > Stuart Bishop's backward walk in

Re: [Zope-dev] Session Objects?

2000-05-26 Thread Stuart 'Zen' Bishop
On Wed, 24 May 2000, Morten W. Petersen wrote: > Are there sheets with these (and similar) notes anywhere on zope.org? > If not, maybe there should be? There is the tips section - I've just added this. -- Stuart Bishop Work: [EMAIL PROTECTED] Senior Systems Alchemist

[Zope-dev] russian-specific things

2000-05-26 Thread Bo Berkhaut
Hi! As you maybe know, there are at least _three_ standard encodings for russian cyrillic: koi8-r, which is used in most unices, Windows codepage 1251 and iso8859-5, which is used in some commercial systems (like HPUX). The common workaround for this problem is server-side detection of client OS

Re: [Zope-dev] Recursion

2000-05-26 Thread Phil Harris
I'd imagine self would be missing. There would seem to be two ways to 'fix' this, I'll leave it as an exercise for the reader to discuss which is best. Option 1: def foo(self,counter=None): some code if bar == somewhat: self.foo(counter=some_int) Option 2: def foo(self,counter=N

[Zope-dev] Recursion

2000-05-26 Thread Andre Schubert
Hi, I'm writing a python Extension, which searches in any folder recursively. This means the code: def foo(self,counter=None): some code if bar == somewhat: foo(counter=some_int) When i run this through zope a error occours. Zope says expected 1 argument got 0. My question is w