Re: [Zope-dev] Re: Unexpected Behaviour iterating over catalog search...

2004-03-09 Thread Chris Withers
Jean Jordaan wrote: for brain in Catalog(some_index=some_value): # delete the object, and then brain_to_delete = Catalog(unique_index=brain.unique_prop) Catalog.uncatalog_object(brain_to_delete.getPath()) .. can't really think why that would work if Chris's original doesn't, though. ..

Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-09 Thread Alex V. Koval
Hi Chris, On Fri, 05 Mar 2004 13:08:01 -0500, Chris McDonough <[EMAIL PROTECTED]> wrote: I am monitoring site now, and will tell you about the results. OK, many thanks! Running For: 3 days 4 hours 28 min 29 sec. I have enabled 400 error_log ex exceptions to keep, and during 3 days I got 2 er

Re: [Zope-dev] Question about _v_ attributes and database connections

2004-03-09 Thread Marco Bizzarri
On Mon, Mar 08, 2004 at 09:34:28AM -0500, Jeremy Hylton wrote: > On Fri, 2004-03-05 at 16:57, Dieter Maurer wrote: > > >3) is it possible to disable caching of some object? > > > > No, but you can (in most cases) flush it again > > by calling its "_p_deactivate" method. > > > > You can always do

[Zope-dev] Specify a domain and leave the password for a user blank

2004-03-09 Thread Juan Javier Carrera Obrero
Hi, In Zope 2.4 or older versions when a user is created, if you specify a domain and leave the password for a user blank, then anyone from the permitted domains automatically gets the user's roles without having to log in. However, it is not possible in Zope 2.7. I have created a user specifying

Re: [Zope-dev] Specify a domain and leave the password for a user blank

2004-03-09 Thread Andreas Jung
I think you are describing a flaw that had been removed in older versions. Does not sound like a feature but like a bug... -aj --On Dienstag, 9. März 2004 13:31 Uhr +0100 Juan Javier Carrera Obrero <[EMAIL PROTECTED]> wrote: Hi, In Zope 2.4 or older versions when a user is created, if you speci

Re: [Zope-dev] Specify a domain and leave the password for a user blank

2004-03-09 Thread Phil Harris
It's not a bug, in fact it's a cool way to allow different types of anonymous users. That's not to say that it's a fool-proof way of doing it, but it generally works, as long as you don't rely on it for any sort of security ;) . The thing is that in later zope versions the functionality has be

Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-09 Thread Chris McDonough
On Tue, 2004-03-09 at 06:36, Alex V. Koval wrote: > I have enabled 400 error_log ex exceptions to keep, and during 3 days I > got 2 errors > on the site: > > Time Username (User Id) Exception > 16:35:01 Anonymous User (None) KeyError: 1078763620 > 21:59:05 Anonymous

[Zope-dev] Product Access to Files

2004-03-09 Thread Ian Beatty
Greetings. I'm developing a Python-based product that needs to serve up a variety of XML files out of the product's directory. That is, certain URLs handled by instances of a product-defined type need to return an XML file that's on disk along with the product's DTML views and the like. Let's say

RE: [Zope-dev] Product Access to Files

2004-03-09 Thread zope-dev
I serve static content with FileSystemSite (http://www.zope.org/Members/k_vertigo/Products/FileSystemSite). Sandor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ian Beatty > Sent: Tuesday, March 09, 2004 12:13 PM > To: [EMAIL PROTECTED] > Subject

[Zope-dev] zope products and folders

2004-03-09 Thread Stephen Rudd BIOINF
Please excuse me if this subject is off-topic - there seem to be no zope lists for the syntax of zope products! I am writing a zope product for the representation of biological data in a user aware context. I have a working product that satisfies my primary needs - but I would like to improve a lit

[Zope-dev] Product directory?

2004-03-09 Thread Ian Beatty
Greetings again. This has to be an easy one. >From within my Python-based product's code, how do I get access to the product's directory on the filesystem? os.getcwd() seems to provide the working directory of the shell used to launch Zope, at least when running in debug mode. I've tried ferreti

Re: [Zope-dev] Product directory?

2004-03-09 Thread Andreas Kostyrka
On Tue, Mar 09, 2004 at 01:58:17PM -0500, Ian Beatty wrote: > Greetings again. > > This has to be an easy one. > > >From within my Python-based product's code, how do I get access to the > product's directory on the filesystem? os.getcwd() seems to provide the > working directory of the shell use

Re: [Zope-dev] zope products and folders

2004-03-09 Thread John Ziniti
Stephen Rudd BIOINF wrote: before releasing. Could someone explain (or point me to resources) how to turn a product into a "folder" like object so that I can bind images, DTML or python scripts directly into the product - I am stumped and cannot find any explanation Your first step will be to have

Re: [Zope-dev] Product directory?

2004-03-09 Thread Fred Drake
On Tuesday 09 March 2004 01:58 pm, Ian Beatty wrote: > This has to be an easy one. Good, I'll take it. ;-) > From within my Python-based product's code, how do I get access to the > product's directory on the filesystem? os.getcwd() seems to provide the > working directory of the shell used

Re: [Zope-dev] Product directory?

2004-03-09 Thread Chris McDonough
There is also a convenience function for this in Zope: from Globals import package_home here = package_home(globals()) - C On Tue, 2004-03-09 at 14:16, Fred Drake wrote: > On Tuesday 09 March 2004 01:58 pm, Ian Beatty wrote: > > This has to be an easy one. > > Good, I'll take it. ;-) > > >

[Zope-dev] Catching "extra path"

2004-03-09 Thread Ian Beatty
Hi again. I'm chipping away at the problem I asked about earlier ("Product Access to Files") -- or perhaps just beating my head against it -- and I've got another question. If I'm writing a Python script within the ZMI, any URL that resolves to my script will invoke the script, even if the URL ha

Re: [Zope-dev] Product directory?

2004-03-09 Thread Fred Drake
On Tuesday 09 March 2004 02:30 pm, Chris McDonough wrote: > There is also a convenience function for this in Zope: > > from Globals import package_home > here = package_home(globals()) Maybe I'm just weird, but I generally prefer the general approach when there's not a clear improvement in re

Re: [Zope-dev] Catching "extra path"

2004-03-09 Thread Chris McDonough
See the definition for __before_publishing_traverse__ in Zope's lib/python/Shared/DC/Scripts/Bindings.py. HTH, - C On Tue, 2004-03-09 at 14:33, Ian Beatty wrote: > Hi again. > > I'm chipping away at the problem I asked about earlier ("Product Access to > Files") -- or perhaps just beating

RE: [Zope-dev] Catching "extra path"

2004-03-09 Thread Sandor Palfy
The question is, how can I do this from within a Python-based product? Calling http://host/folder/object/method/a/b/c fails to invoke the method 'method' on my custom object 'object'. Instead, I get a "Cannot locate object" page. --- You can define a method in your 'object'

Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-09 Thread michael
On 10/03/2004, at 6:29 AM, Chris McDonough wrote: On Tue, 2004-03-09 at 06:36, Alex V. Koval wrote: I have enabled 400 error_log ex exceptions to keep, and during 3 days I got 2 errors on the site: TimeUsername (User Id) Exception 16:35:01Anonymous User (None) KeyError:

[Zope-dev] OFS.ObjectManager raising string exceptions?

2004-03-09 Thread Stuart Bishop
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In 2.7, ObjectManager raises 'Bad Request' most of the time, but in one case actually raises zExceptions.BadRequest. Did this get missed when all the string exceptions were getting replaced, or is it deliberately like this for backwards compatibility? -