RE: [Zope] a batch of inSaNitY!

2007-05-31 Thread Programmer
This is curious... The problem I had with the searchterms not getting carried across pages seems to have gone away. Here's what I changed. The two search forms are separate dtml-methods and still are but I've included them into the main page template like I originally planned. Something like this:

[Zope] spam

2007-05-31 Thread Michael Arnoldy
Please help me. I have received and blocked 284 unsliced emails all from different zope based email addresses. Please remove me from your computers. I have regretted ever hearing your name. [EMAIL PROTECTED] - Building a website is a piece of cake.

RE: [Zope] Uncaptured python exception

2007-05-31 Thread Dieter Maurer
Jon Emmons wrote at 2007-5-31 11:06 -0400: > ... >I still don't know why python errors will just quietly cause things to fail >with no zope error at all. Nothing... That may be something I just have to >live with. Very difficult to debug and develop with though. This is a *very* unusual behavio

Re: [Zope] Function reindexObject()

2007-05-31 Thread Dieter Maurer
julian wrote at 2007-5-30 18:00 +0200: > ... >I have made some python scripts to export data of some zope2.7 products >in text file, and I have made some scripts to import theses data to >rebuild products in zope2.9. Theses scripts run very well. > >But my problem is that all product that is rebu

RE: [Zope] Re: Uncaptured python exception

2007-05-31 Thread Jon Emmons
Ok, Your statements have just helped me A LOT! I began to look at the menu structure of our app and it goes something like this: Show report menu... Which would cause all exceptions to be captured and throw you back to the menu. I clearly need to restructure this piece of code. This wa

Re: [Zope] Uncaptured python exception

2007-05-31 Thread SpiderX
The example 'var1 = var2' should cause the NameError exception. "NameError: name 'var2' is not defined" You might want to check your 'error log' objects for the error messages. If you don't have an error log object, it might be a good idea to create one. On 5/31/07, Maciej Wisniowski <[EMAIL

RE: [Zope] a batch of inSaNitY!

2007-05-31 Thread Programmer
You know I had considered using JS for dealing with this. It does make it much easier to change the CSS on your links to indicate current page and such. I might look into this again. Thanks! From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SpiderX Se

[Zope] Re: Uncaptured python exception

2007-05-31 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jon Emmons wrote: > Sometimes, I do get those errors. > > But if I take a working piece of python and stick in a sabotage statement > like: > > Var1 = var2 > > Where var2 is undefined (i.e. has never been assigned anything) > > Just silent failure.

Re: [Zope] a batch of inSaNitY!

2007-05-31 Thread SpiderX
I just use Adobe Labs Spry Framework... this effectively puts the paging in javascript. On 5/31/07, Programmer <[EMAIL PROTECTED]> wrote: Hi Jonathan, I have something similar to your idea already. The python script supplies page number to a stored procedure which handles the actual paging. Th

Re: [Zope] Uncaptured python exception

2007-05-31 Thread Maciej Wisniowski
> Var1 = var2 > > Where var2 is undefined (i.e. has never been assigned anything) > > Just silent failure. No error. So how do you know there is a failure then? There is really nothing in event.log and nothing in error_log? -- Maciej Wisniowski ___ Z

[Zope] Re: Function reindexObject()

2007-05-31 Thread julian
Very thanks !!! :) It's exactly the good method, thanks Julian ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announ

RE: [Zope] Uncaptured python exception

2007-05-31 Thread Jon Emmons
Sometimes, I do get those errors. But if I take a working piece of python and stick in a sabotage statement like: Var1 = var2 Where var2 is undefined (i.e. has never been assigned anything) Just silent failure. No error. Jon -Original Message- From: Jonathan [mailto:[EMAIL PROTECTED

Re: [Zope] Uncaptured python exception

2007-05-31 Thread Jonathan
- Original Message - From: "Jon Emmons" <[EMAIL PROTECTED]> To: "'Andreas Jung'" <[EMAIL PROTECTED]>; "'Jonathan'" <[EMAIL PROTECTED]>; Sent: Thursday, May 31, 2007 11:06 AM Subject: RE: [Zope] Uncaptured python exception I still don't know why python errors will just quietly cause

RE: [Zope] Uncaptured python exception

2007-05-31 Thread Andreas Jung
--On 31. Mai 2007 11:06:17 -0400 Jon Emmons <[EMAIL PROTECTED]> wrote: Thanks all for your help. I guess I was worried about nothing. Previous versions of zope did not generate those messages. Nonsense. Such error messages are shown by Zope since ages. I thought it was why I was getti

Re: [Zope] Re: MemoryError exception when importing a zexp file

2007-05-31 Thread Paul Winkler
On Thu, May 31, 2007 at 09:55:26AM +0200, Sascha Welter wrote: > ... Did you verify with plohn people (e.g. on a Plone > mailing list) that current plone versions can be imported/exported? > (Because the last time I made the mistake to do a project with > plone you couldn't import/export a plone si

RE: [Zope] Uncaptured python exception

2007-05-31 Thread Jon Emmons
Thanks all for your help. I guess I was worried about nothing. Previous versions of zope did not generate those messages. I thought it was why I was getting no zope error at all with runtime errors. I still don't know why python errors will just quietly cause things to fail with no zope error a

RE: [Zope] Uncaptured python exception

2007-05-31 Thread Andreas Jung
--On 31. Mai 2007 10:12:35 -0400 Jon Emmons <[EMAIL PROTECTED]> wrote: Oops, my bad. Python is 2.4.4. (not 3.4) perhaps my python needs to be moved back a bit. I don't get any error in the error log from the zope admin, just this cryptic msg from the window that zope is running in. 2007-

RE: [Zope] a batch of inSaNitY!

2007-05-31 Thread Programmer
Hi Jonathan, I have something similar to your idea already. The python script supplies page number to a stored procedure which handles the actual paging. The script takes the result from the proc and builds an html table and handles column sorting on the table. The output of the script is just a

Re: [Zope] Uncaptured python exception

2007-05-31 Thread Martijn Pieters
On 5/31/07, Jon Emmons <[EMAIL PROTECTED]> wrote: I don't get any error in the error log from the zope admin, just this cryptic msg from the window that zope is running in. 2007-05-31 09:48:49 ERROR ZServer uncaptured python exception, closing channel (socket.error:(104, 'Connection reset by pe

RE: [Zope] Uncaptured python exception

2007-05-31 Thread Jon Emmons
Oops, my bad. Python is 2.4.4. (not 3.4) perhaps my python needs to be moved back a bit. I don't get any error in the error log from the zope admin, just this cryptic msg from the window that zope is running in. 2007-05-31 09:48:49 ERROR ZServer uncaptured python exception, closing channel (so

Re: [Zope] Uncaptured python exception

2007-05-31 Thread Jonathan
- Original Message - From: "Jon Emmons" <[EMAIL PROTECTED]> To: Sent: Thursday, May 31, 2007 9:58 AM Subject: [Zope] Uncaptured python exception I am using zope 2.9, python 3.4. when I have a bug in my python I get "Uncaptured Python Exception" coming from zope. This is a nightmar

Re: [Zope] Uncaptured python exception

2007-05-31 Thread Andreas Jung
--On 31. Mai 2007 09:58:43 -0400 Jon Emmons <[EMAIL PROTECTED]> wrote: I am using zope 2.9, python 3.4. Python 2.4 you mean... when I have a bug in my python I get "Uncaptured Python Exception" coming from zope. Without the full traceback such a question is pretty much worthless. Uncap

[Zope] Uncaptured python exception

2007-05-31 Thread Jon Emmons
I am using zope 2.9, python 3.4. when I have a bug in my python I get "Uncaptured Python Exception" coming from zope. This is a nightmare. I have spent hours trying to trace down the simplest typos that would have been instantly reported in any other development environment. How do I get

Re: [Zope] Re: Re: MemoryError exception when importing a zexp file

2007-05-31 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 31 May 2007, at 13:56, Ben Lobo wrote: Someone in this thread asked why I'm doing this export in the first place: I want to import it back into zope but into a separate storage file so that I can back it up separately from the main storage. So

[Zope] Re: Re: MemoryError exception when importing a zexp file

2007-05-31 Thread Ben Lobo
> > I'm now considering exporting the Plone site (cos that's what it is) one > > piece at a time and reimporting it into a clean Plone site. Any thoughts on > > whether or not this is a good idea? > > Not mentioning Plone in the first place is problematic. In fact *plone* > is problematic. Did you

Re: [Zope] Re: Function reindexObject()

2007-05-31 Thread Maciej Wisniowski
> The import script run very well, I transform each line of the text > file to a correspondant product as zope2.7. But I want put each new > product in the same repertory as zope 2.7. So how say to each product > in my import script where it must be copy. Why don't you just export object path alon

[Zope] Re: Function reindexObject()

2007-05-31 Thread julian
Maybe I can cut and paste each product(object) from /SITES/Plone_site/ to /SITES/Plone_site/goodDirectory But I don't find how cut and paste an object in zope with a python script. Could you help me :) Tahnks Julian ___ Zope maillist - Zope@zope.o

[Zope] Re: Function reindexObject()

2007-05-31 Thread julian
Thanks ;) but it's no really what I want sorry I work like that : __ |ZMI(zope 2.7)| | | |Product : Document, my_product...| Export script | |--> A file with all data |_

Re: [Zope] Re: MemoryError exception when importing a zexp file

2007-05-31 Thread Sascha Welter
(Wed, May 30, 2007 at 10:31:31AM +0100) Ben Lobo wrote/schrieb/egrapse: > Thanks for the tip. I tried increasing the swap file to 10GB but still got > the same memory error. Some operating systems limit the amount of RAM a single process can consume. Sometimes that amount can be adjusted. Also 32b