Re: [Zope-dev] Benchmarks: DTML vs. ZPT?

2002-02-08 Thread Chris Withers
Richard Jones wrote: That's only during parsing - the result of the ZPT parse is a highly optimised rendering structure. Not highly optimised enough if what Martijn says is true ;-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Using psycopg cursor in a product

2002-02-08 Thread de ZORZI Frederic
Hi all, Is it possible to use cursors and their functions (dictfetchall, fetchone...) with zpsycopg connection ? Easy stupid :) : conn = getattr(self, self.connection_id) db = conn().db curs = db.cursor() curs.execute(select * from support limit 2) return %s %

Re: [Zope-dev] Using psycopg cursor in a product

2002-02-08 Thread Federico Di Gregorio
Il ven, 2002-02-08 alle 12:47, de ZORZI Frederic ha scritto: Hi all, Is it possible to use cursors and their functions (dictfetchall, fetchone...) with zpsycopg connection ? Easy stupid :) : conn = getattr(self, self.connection_id) db = conn().db curs =

[Zope-dev] Possible PUT_factory enhancement

2002-02-08 Thread Chris Withers
Hi, PUT_factory's are cool, but you always have to write them as external methods, which sucks. What would people feel if I made an enhancement to Hookable_PUT.py that let you return either an object _or_ a metatype? cheers, Chris ___ Zope-Dev

Re: [Zope-dev] Benchmarks: DTML vs. ZPT?

2002-02-08 Thread Jim Penny
On Fri, Feb 08, 2002 at 11:29:39AM +, seb bacon wrote: Well, I just ran a very naive test and it suggests that zpt may be about twice as slow as dtml. I made a DTML Method, and a ZPT, identical to each other, containing only HTML: html Test /html Then I ran the ab

Re: [Zope-dev] Benchmarks: DTML vs. ZPT?

2002-02-08 Thread Shane Hathaway
seb bacon wrote: Well, I just ran a very naive test and it suggests that zpt may be about twice as slow as dtml. I made a DTML Method, and a ZPT, identical to each other, containing only HTML: html Test /html Then I ran the ab benchmarking tool against each method, thus:

Re: [Zope-dev] copy paste 'leakage'

2002-02-08 Thread Matthew T. Kromer
Martijn Faassen wrote: Hey, I'm running into a weird problem I'm not sure how to tackle. I've noticed that under some circumstances it takes a long time to copy and paste a ParsedXML object. This seems to happen in a clean Zope, at least in the Zope root, though it doesn't seem to happen in

Re: [Zope-dev] copy paste 'leakage'

2002-02-08 Thread Shane Hathaway
Martijn Faassen wrote: Another data point. Copy paste of ParsedXML documents is normal and fast when the object is in a folder not surrounded by too many other folders (or objects in general, not sure yet). If I create a bunch of very large folders sitting next to the ParsedXML document

Re: [Zope-dev] 2.5.0 locale problems

2002-02-08 Thread Leonardo Rochael Almeida
Hi, You shouldn't be messing with locale in a Zope product. In a threaded Python app, setting locale affects all threads, and there are a number of parts in Zope which depend on correct locale information. You should respect whatever locale was set in Zope initialization (by environment vars or

Re: [Zope-dev] Newbie: manage_add DTML access to product variables

2002-02-08 Thread R. David Murray
On Tue, 5 Feb 2002, John Hall wrote: 1. How do I format an object to use in a dtml-in loop? (I'm thinking it needs to be a list of dict's). dtml-in will accept four differen formats: a list of objects with attributes, a list of values, a list of dicts, or a list of pairs. A list of

[Zope-dev] Module changes not taking in external method

2002-02-08 Thread Ted Skolnick
Hi I am a zope newbie getting started by using external methods. I am importing modules from another package in my external methods and having some problems. When I change code in the external method, I see thos changes take right away when I call the method from the browser. But when I

Re: [Zope-dev] Benchmarks: DTML vs. ZPT?

2002-02-08 Thread Dieter Maurer
Joachim Werner writes: Has anyone done any performance comparisons between DTML and ZPT yet? The reason I'm asking is that we did some first(completely unscientific) tests and had the impression that ZPT were actually quite a bit SLOWER than DTML - and I just can't believe that ... While

Re: [Zope-dev] Transaction error on Zopesite DB

2002-02-08 Thread Dieter Maurer
Scott Burton writes: I keep getting a transaction error which renders my entire ODB unwritable on Zopesite.com just about everyday. This may happen when there is an exception during the second step of the two phase commit. We had such a problem with an old version of FSSession (fixed long

Re: [Zope-dev] Module changes not taking in external method

2002-02-08 Thread R. David Murray
On Fri, 8 Feb 2002, Ted Skolnick wrote: Hi I am a zope newbie getting started by using external methods. I am importing modules from another package in my external methods and having some problems. When I change code in the external method, I see thos changes take right away when I call

[Zope-dev] RELEASED - StandaloneZODB 1.0 final

2002-02-08 Thread Barry A. Warsaw
I'm please to announce the release of StandaloneZODB, the Python object persistency system also known as the Z Object Database. ZODB is the object-oriented database underlying Zope; the StandaloneZODB project's goal is to provide those same facilities to non-Zope related Python applications.

[Zope-dev] ZMI textareas on Windows IE6 are '100%+' wide, cause scrolling inconvenience

2002-02-08 Thread Jeff Kowalczyk
On my Zope 2.5.0 running on WindowsXP/IE6, the ZMI's textarea boxes, for things like editing PageTemplates, becomes too wide for the frame when the vertical scrollbar is required, causing an inconvenient side-scrolling behavior. The frame must be scrolled sideways to view the text areas's