[Zope-dev] Multithread transaction problems in ZODB

2001-09-26 Thread Cyril Elkaim
threads are serialized eveything works fine (but that's no more multithreading no? ;-) So is it possible to access ZODB from a multithreaded application? Thanks in advance Cyril Elkaim ___ Zope-Dev maillist - [EMAIL PROTECTED] http

[Zope-dev] manage_main select ... / don't work with Mozilla

2001-03-15 Thread Cyril Elkaim
Hi, The last builds of Mozilla do not accept anymore this kind of HTML tags: select / I have discuss with Moz developers and they say it's not in the standard. So now we must use something like select All the other tags must follow the same syntax, of course.

Re: [Zope-dev] manage_main select ... / don't work with Mozilla

2001-03-15 Thread Cyril Elkaim
Yes, I know, but that's what they say :-). I've already that problem with the script tag and they refuse to change this behavior, at least for now... Cyril ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] manage_main select ... / don't work with Mozilla

2001-03-15 Thread Cyril Elkaim
Matt wrote: select should have a corresponding /select right? In which case no, it should not have a trailing slash. They are only needed for single tags that have no corresponding close, eg br / hr / etc. I agree but in the management interface of Zope it's not the case. You

Re: [Zope-dev] manage_main select ... / don't work with Mozilla

2001-03-15 Thread Cyril Elkaim
Brian wrote: I think what he's saying is that Moz used to tolerate a form like: select name="foo" / ... /select ...which doesn't make much sense (and appeared in the Zope UI by mistake). I believe that it is still ok to use the XHTML form for non-container tags, e.g.: hr / The 'select'

[Zope-dev] Python Script

2001-02-23 Thread Cyril Elkaim
Hi All, I must say that I have very hard time with both Scripts and Zclass. My problem is the context and the container proprties of a script inside a Zclass. If I understand well the context is an URL point of view, the object accessed through the web. The container is fixed, it's the

Re: [Zope-dev] Python Script

2001-02-23 Thread Cyril Elkaim
Thanks Steve, In this case, container is the ZClass instance. Understood, that was my conclusion and it's logical. One more question please :-) How can I access the methods definitions of the zclass from an instance ? I don't talk about calling them but getting an 'attribute' of the

Re: [Zope-dev] Python Script

2001-02-23 Thread Cyril Elkaim
Hi Steve, In the zclass definition I have a bunch of Image objects together with the following script. SCRIPT s_center(width, height, image): import string result = None for item in container.objectItems(): if string.strip(item[0]) == image: image_width =

Re: [Zope-dev] Python Script

2001-02-23 Thread Cyril Elkaim
Steve Alexander wrote: for name,object in container.objectItems(): if string.strip(name) == image: image_width = int(object.getProperty("width")) image_height = int(object.getProperty("height")) Thanks again :-), I passed too much time with Javascript and not enough with

Re: [Zope-dev] Python Script

2001-02-23 Thread Cyril Elkaim
Thanks Steve, I will try... Cyril ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

[Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Cyril Elkaim
Hi all, My question is in the title. I think I'm stupid because I have really searched anywhere, and found nothing. The answer is certainly trivial but too many hours you know... :-) I'm able to get all the children of the current container or context but unable to get its parent.

Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Cyril Elkaim
Erik, 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 not using Zope to access it? I'm using Zope but I made up my application by components. So I want to access an object anywhere in