[Zope-dev] testing, DemoStorage and Zope2.app()

2006-10-18 Thread Chris Withers
Hi All, I've been having fun with unit tests: http://mail.zope.org/pipermail/zope3-dev/2006-October/020757.html http://mail.zope.org/pipermail/zope3-dev/2006-October/020775.html But Jim finally pointed me in the right direction:

[Zope-dev] Zope 2.10.0 installer for Windows

2006-10-18 Thread Wolfgang Strobl
This Monday, I've built an installer for Windows, based on the Zope-2.10.0-final release which has been published on zope.org two weeks ago. Today, I've got some time to run tests: Tests with failures: c:\build\2\Zope-2.10.0-final\inst\build\lib\python\zope\formlib\form.txt Total: 8304

Re: [Zope] Tab completion in zopectl debug

2006-10-18 Thread Sascha Ottolski
Am Mittwoch, 18. Oktober 2006 01:43 schrieb Maurits van Rees: Hi, I have recently learned how to add tab completion to an interactive python session and to pdb, thanks to Tom Lazar and to Jacob at ParTecs. More info with links on my first blog entry in three months:

Re: [Zope] Tab completion in zopectl debug

2006-10-18 Thread Chris Withers
Maurits van Rees wrote: Hi, I have recently learned how to add tab completion to an interactive python session and to pdb, thanks to Tom Lazar and to Jacob at ParTecs. More info with links on my first blog entry in three months: http://maurits.vanrees.org/weblog/2006/10/tab-completion.html

[Zope] Upgrading Zope

2006-10-18 Thread Nightflyer
Hi All, I've been asked to migrate an ancient Zope server from 2.1.x to the latest 2.x or 3.x version. This server only have a couple of applications, both using Z SQL Methods, DHTML methods and documents, some products and some external methods. They don't use ZPT or Script (python) at

Re: [Zope] Upgrading Zope

2006-10-18 Thread Andreas Jung
--On 18. Oktober 2006 14:55:33 +0200 Nightflyer [EMAIL PROTECTED] wrote: Hi All, I've been asked to migrate an ancient Zope server from 2.1.x to the latest 2.x or 3.x version. This server only have a couple of applications, both using Z SQL Methods, DHTML methods and documents,

Re: [Zope] Upgrading Zope

2006-10-18 Thread Paul Winkler
On Wed, Oct 18, 2006 at 02:55:33PM +0200, Nightflyer wrote: Hi All, I've been asked to migrate an ancient Zope server from 2.1.x to the latest 2.x or 3.x version. http://zopewiki.org/Upgrading -- Paul Winkler http://www.slinkp.com ___ Zope

Re: [Zope] Upgrading Zope

2006-10-18 Thread Philip Kilner
Hi, Nightflyer wrote: I'd like to know if you think that such migration is feasible or if I'll encounter some problems. Do you think it is better to migrate to the latest version of the 2.x or 3.x branch? From 2.1.x to the latest 2.x should be feasible. Zope 3.x is a rewrite with no

R: [Zope] Upgrading Zope

2006-10-18 Thread Nightflyer
Which RDBMS are you using your ZSQL Methods against? MySQL 4.1. Bye, Andrew. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] Zeo Client hanging

2006-10-18 Thread Paul Winkler
On Wed, Oct 18, 2006 at 07:32:38AM +0200, Maciej Wisniowski wrote: zope 2.8.5 + zeo python 2.3.4 (red hat distribution) Red Hat RHEL 4 Plone 2.1.2 Our zeo clients hang intermittently. We have no way of reproducing the problem, but it occurs daily. The client hangs and a restart seems

Re: R: [Zope] Upgrading Zope

2006-10-18 Thread Philip Kilner
Hi Andrew, Nightflyer wrote: Which RDBMS are you using your ZSQL Methods against? MySQL 4.1. From what you tell us, the database adapter is the only 3rd-party dependency, and (although I don't use it myself) I understand mySQL is well-supported, so you really need to try the upgrade on a

Re: [Zope] Upgrading Zope

2006-10-18 Thread Allen Schmidt Sr.
If you are using any zClass objects and have them cataloged, then you need to run a script against them to do the reindexing, as I found out that changed at 2.8. Also if you are using DTML and using any sorting within dtml-in segments, you will need to patch a file. Pages that use sorting on

Re: [Zope] Zeo Client hanging

2006-10-18 Thread Allen Schmidt Sr.
I see references to asyncore.py near the end of the thread listing when using DeadLockDebugger and seeing a stuck thread process. The tread eventually clears out but sometimes an impatient user reloads, reloads, reloads...and then all 4 threads are stuck on exact same thing. Then you can see

[Zope] How to do...

2006-10-18 Thread Garito
Hi all! How can I control the way an attribute of a product is readed? __getattr__? __getattribute__? I try the __getattribute__ way but it modifies the property pages Example: I create an object instance of the product and like: Property1 = 'Some text' Property2 = 2006-10-18 I would like

Re: [Zope] How to do...

2006-10-18 Thread Andreas Jung
--On 18. Oktober 2006 16:15:37 +0200 Garito [EMAIL PROTECTED] wrote: Hi all! How can I control the way an attribute of a product is readed? __getattr__? __getattribute__? I try the __getattribute__ way but it modifies the property pages Example: I create an object instance of the product

Re: [Zope] How to do...

2006-10-18 Thread Jonathan
- Original Message - From: Garito [EMAIL PROTECTED] To: Lista Zope Internacional zope@zope.org Sent: Wednesday, October 18, 2006 10:15 AM Subject: [Zope] How to do... Hi all! How can I control the way an attribute of a product is readed? __getattr__? __getattribute__? I try the

Re: [Zope] How to do...

2006-10-18 Thread Garito
Andreas Jung escribió: --On 18. Oktober 2006 16:15:37 +0200 Garito [EMAIL PROTECTED] wrote: Hi all! How can I control the way an attribute of a product is readed? __getattr__? __getattribute__? I try the __getattribute__ way but it modifies the property pages Example: I create an object

Re: [Zope] How to do...

2006-10-18 Thread Andreas Jung
--On 18. Oktober 2006 18:53:05 +0200 Garito [EMAIL PROTECTED] wrote: Andreas Jung escribió: --On 18. Oktober 2006 16:15:37 +0200 Garito [EMAIL PROTECTED] wrote: Hi all! How can I control the way an attribute of a product is readed? __getattr__? __getattribute__? I try the

[Zope] external method strangeness

2006-10-18 Thread garry saddington
Can anyone explain what is happening here. I am using Saxon to transform an xml file(source) using a stylesheet(style) the result is then written to Postgres. The contents of source are uploaded in Zope and passed to the external method as a string. When I run this external method: import

Re: [Zope] How to do...

2006-10-18 Thread Garito
Andreas Jung escribió: --On 18. Oktober 2006 18:53:05 +0200 Garito [EMAIL PROTECTED] wrote: Andreas Jung escribió: --On 18. Oktober 2006 16:15:37 +0200 Garito [EMAIL PROTECTED] wrote: Hi all! How can I control the way an attribute of a product is readed? __getattr__? __getattribute__?

Re: [Zope] external method strangeness

2006-10-18 Thread Andrew Milton
+---[ garry saddington ]-- | Can anyone explain what is happening here. I am using Saxon to transform | an xml file(source) using a stylesheet(style) the result is then written | to Postgres. The contents of source are uploaded in Zope and passed to | the external method as

Re: [Zope] How to do...

2006-10-18 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18 Oct 2006, at 12:53, Garito wrote: Then I can't create a property that stores a tal expression for example? I would like to write things like: object.property = 'here/anotherproperty' object.anotherproperty = 'Barcelona' and ask it like:

Re: [Zope] How to do...

2006-10-18 Thread Andreas Jung
--On 18. Oktober 2006 19:17:42 +0200 Garito [EMAIL PROTECTED] wrote: I only try to create a model but I'm searching the best way to create it I try to create properties like this is (in the last example): object.property is like object.anotherproperty You got already multiple advices.

Re: [Zope] How to do...

2006-10-18 Thread Garito
Andreas Jung escribió: --On 18. Oktober 2006 19:17:42 +0200 Garito [EMAIL PROTECTED] wrote: I only try to create a model but I'm searching the best way to create it I try to create properties like this is (in the last example): object.property is like object.anotherproperty You got

Re: [Zope] How to do...

2006-10-18 Thread Andreas Jung
--On 18. Oktober 2006 19:41:07 +0200 Garito [EMAIL PROTECTED] wrote: You got already multiple advices. Write a method anotherproperty() and do whatever you like with in this method. You can call it from TALES as here/anotherproperty. TALES bascially deals with attributes and methods in the

Re: [Zope] Tab completion in zopectl debug

2006-10-18 Thread Dieter Maurer
Maurits van Rees wrote at 2006-10-17 23:43 +: ... More info with links on my first blog entry in three months: http://maurits.vanrees.org/weblog/2006/10/tab-completion.html At the end of that entry I ask a question: Can we add tab completion to the zopectl debugger? Or actually more

Re: [Zope] How to do...

2006-10-18 Thread Garito
Andreas Jung escribió: --On 18. Oktober 2006 19:41:07 +0200 Garito [EMAIL PROTECTED] wrote: You got already multiple advices. Write a method anotherproperty() and do whatever you like with in this method. You can call it from TALES as here/anotherproperty. TALES bascially deals with

Re: [Zope] external method strangeness

2006-10-18 Thread Andrew Milton
+---[ garry saddington ]-- | On Thu, 2006-10-19 at 03:18 +1000, Andrew Milton wrote: | +---[ garry saddington ]-- | | Can anyone explain what is happening here. I am using Saxon to transform | | an xml file(source) using a stylesheet(style) the

Re: [Zope] How to do...

2006-10-18 Thread Dieter Maurer
Garito wrote at 2006-10-18 16:15 +0200: ... How can I control the way an attribute of a product is readed? __getattr__? __getattribute__? A product is an extension mechanism for Zope. Usually, a product does not have attributes (you are interested in). But inside your product you may have

Re: [Zope] How to do...

2006-10-18 Thread Garito
Dieter Maurer escribió: Garito wrote at 2006-10-18 16:15 +0200: ... How can I control the way an attribute of a product is readed? __getattr__? __getattribute__? A product is an extension mechanism for Zope. Usually, a product does not have attributes (you are interested in). But

[Zope] Re: Tab completion in zopectl debug

2006-10-18 Thread Maurits van Rees
Dieter Maurer, on 2006-10-18: Nothing prevents you to call execfile at the start of your debug session. Lazyness prevents me to call execfile at the start of my debug session. :) -- Maurits van Rees | http://maurits.vanrees.org/ [NL] Work | http://zestsoftware.nl/ Do not worry

[Zope] Re: Tab completion in zopectl debug

2006-10-18 Thread Maurits van Rees
Sascha Ottolski, on 2006-10-18: http://maurits.vanrees.org/weblog/2006/10/tab-completion.html just a thought: you might also use ipython, which has tab-completion by default: http://ipython.scipy.org/moin/About I saw that mentioned in one of the links on my page as well; looks promising;

Re: [Zope] external method strangeness

2006-10-18 Thread Paul Winkler
On Wed, Oct 18, 2006 at 06:13:38PM +0100, garry saddington wrote: Can anyone explain what is happening here. I am using Saxon to transform an xml file(source) using a stylesheet(style) the result is then written to Postgres. The contents of source are uploaded in Zope and passed to the

[Zope] Re: Tab completion in zopectl debug

2006-10-18 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maurits van Rees wrote: Hi, I have recently learned how to add tab completion to an interactive python session and to pdb, thanks to Tom Lazar and to Jacob at ParTecs. More info with links on my first blog entry in three months:

[Zope] Zope and Log File Analysis

2006-10-18 Thread Doyon, Jean-Francois
Hello, So I've been struggling for years now to try and provide thorough log analysis for my Zope based web site. The big problem I have is determining file types without having file extensions, since many objects are name with a simple id that doesn't contain a typical file extension. This

Re: [Zope] zope fork in external method - mysql connection dropped

2006-10-18 Thread Daniel Lopez
I spoke too soon. It was working, but consistent with the Curse of Fork, the mysql error eventually started showing up inconsistently. At first I thought it might be dependent on zope's debug mode, but it started showing up either way. So I did what I didn't want to do: split out the