Re: [Zope] Strategies for testing generated sql?

2006-04-14 Thread Marco Bizzarri
On 4/12/06, Paul Winkler <[EMAIL PROTECTED]> wrote: Functionally, we are missing some important testables:* we have no way to verify that these queries are syntactically correct sql.* we have no way to verify that these queries behave as expected against   a sample data set.How do people test this

Re: [Zope] Strategies for testing generated sql?

2006-04-14 Thread Marco Bizzarri
Ok, here it is. It is a demo product, which has one class, GenerateInsert, which will generate an insert based on your parameters. I've also written a small test, which tries to show what I would do: test that given the proper parameters, it will generate the proper string. The case I'm showing is

Re: [Zope] TAL page whitespace removal

2006-04-14 Thread Sascha Welter
(Thu, Apr 13, 2006 at 12:00:08PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse: > Date: Wed, 12 Apr 2006 19:03:29 +0100 > From: "Robert (Jamie) Munro" <[EMAIL PROTECTED]> ... > gzip will add enormous processing overhead to the server. Your server must be a C=64 or something. I'm running Zope on

Re: [Zope] import & export error on.2.9.2 version of zope has been solved

2006-04-14 Thread Lennart Regebro
On 4/14/06, shivayogi kumbar <[EMAIL PROTECTED]> wrote: > Is it because of the change in the version of ZODB, in zope2.7.3 they have > used the 3.2.4c version ZODB , and > in ZOPE2.9.2 used 3.6.0 version ZODB. No. > Sir "Lennart Regebro" has suggested me to copy and paste the data.fs file > f

[Zope] How to update list from dtml?

2006-04-14 Thread Jaroslav Lukesh
Dear Zopistas, How to do in DTML something similar in python: foo[1] = 3.5 In DTML this does not work: Note, that I have list foo[,,,] already defined Many thanks, J. Lukesh ___ Zope maillist - Zope@zope.org http://mail.zo

Re: [Zope] How to update list from dtml?

2006-04-14 Thread Lennart Regebro
On 4/14/06, Jaroslav Lukesh <[EMAIL PROTECTED]> wrote: > Dear Zopistas, > > How to do in DTML something similar in python: > > foo[1] = 3.5 You call a python file that does it. Really, you don't want to start doing those things in DTML, it just gets very complicated very fast. -- Lennart

Re: [Zope] How to update list from dtml?

2006-04-14 Thread Jonathan
Try: Jonathan - Original Message - From: "Jaroslav Lukesh" <[EMAIL PROTECTED]> To: Sent: Friday, April 14, 2006 10:22 AM Subject: [Zope] How to update list from dtml? Dear Zopistas, How to do in DTML something similar in python: foo[1] = 3.5 In DTML this does not work:

[Zope] Getting www.domain.com:8080/manage to go through Apache

2006-04-14 Thread michael nt milne
HiI've got various virtual hosts running but am having a few issues getting the administration site on www.domain.com:8080/manage to go through Apache. I want to route this all through SSL. What I can get is the admin for the *individual site* but not all the sites listed under a Zope instance. I'

[Zope] LocalFS under Zope2-7-7/windows

2006-04-14 Thread Giuseppe Bonelli
I all, I am migrating some apps to Zope2-7-7 under windows and the LocalFS product generate an error wen starting zope. The error at the end of the traceback is: File "C:\Programmi\Zope-2.7.7-final\lib\python\Signals\WinSignalHandler.py", line 227, in registerHandler hevent = win32event.C

RE: [Zope] How to update list from dtml?

2006-04-14 Thread Jaroslav Lukesh
> From: Jonathan [mailto:[EMAIL PROTECTED] > Try: > > I need to insert that at specific position, not append at end of the list. Thanks, JL. > - Original Message - > From: "Jaroslav Lukesh" <[EMAIL PROTECTED]> > > > > foo[1] = 3.5 > > > > In DTML this does not work: > > > > > > > > >

RE: [Zope] How to update list from dtml?

2006-04-14 Thread Andreas Jung
--On 14. April 2006 18:40:46 +0200 Jaroslav Lukesh <[EMAIL PROTECTED]> wrote: From: Jonathan [mailto:[EMAIL PROTECTED] Try: I need to insert that at specific position, not append at end of the list. A look at a basic Python tutorial documentation will tell you about the methods and ways

No memory leak! (was: Re: [Zope] Memory Leak in Session Data Container)

2006-04-14 Thread Dieter Maurer
Dieter Maurer wrote at 2006-4-11 22:14 +0200: >Andy Yates wrote at 2006-4-10 12:43 -0500: >> ... >>Fortunately, I have an easy way to reproduce the problem and even better >>I've found a work around. My hope is that the work around will lead >>somebody more familiar with the innards of Zope to whe

Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-04-14 Thread manuel spuhler
Hello Dieter, Thanks for your help, I have Zope 2.8.6 and Python 2.3.5 compiled with Fink. I also had the same problem with python 2.3.5 from Apple, which is known to lack some features, so you might be right with conflicting Python version. Under Unbutu, I used to compile Zope with python-devel p

Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-04-14 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I don't see how a packaged Python that is possibly compiled with dubious options and split up along dubious lines into Python, Python- dev and Python-whatever is better than a self-compiled Python on OS X. The following document tells you how to

[Zope] Re: zope 2.8.6 on Mac Intel: Resolved

2006-04-14 Thread manuel spuhler
Hello David, sorry, I meant you before, but hey, hello too Dieter ;-) I finally manage to install and run Zope 2.8.6 on Mac Intel after installing the Universal package of python 2.4.3 for os x (http://www.python.org/download/releases/2.4.3/). Then I did the usual unix stuff: $./configure --wit

Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-04-14 Thread manuel spuhler
Thank you, I tried that already, but for some reasons, it did'nt work 2006/4/14, Jens Vagelpohl <[EMAIL PROTECTED]>: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I don't see how a packaged Python that is possibly compiled with > dubious options and split up along dubious lines into Python

Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-04-14 Thread manuel spuhler
Hello David, sorry, I meant you before, but hey, hello too Dieter ;-) I think I broke the thread, sorry for reposting: I finally manage to install and run Zope 2.8.6 on Mac Intel after installing the Universal package of python 2.4.3 for os x (http://www.python.org/download/releases/2.4.3/). Th