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

[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

[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 -

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 along

[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 verify

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.

[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] Uncaptured python exception

2007-05-31 Thread Jonathan
- Original Message - From: Jon Emmons [EMAIL PROTECTED] To: zope@zope.org 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

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

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 ZServer.HTTPServer.zhttp_channel connected

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

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 site

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

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]; zope@zope.org 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

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

[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 -

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 ___ Zope

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. The

[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. No

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

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] 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 rebuilt

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 behaviour

[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

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

Re: [Zope-dev] Re: [Bug] ZODB invalidation processing

2007-05-31 Thread Joachim Schmitz
Joachim Schmitz schrieb: I could reproduce the conflict error on my local machine not using ZEO. I invoked the longrunning process create_level for two users after a zope-restart. here is the log: 2007-05-31 09:44:24 INFO Zope Ready to handle requests 2007-05-31 09:44:39 INFO

Re: [Zope-dev] Re: [Bug] ZODB invalidation processing

2007-05-31 Thread Maciej Wisniowski
I deleted the created objects and repeated the test: 2007-05-31 12:46:12 ERROR Zope.ZCatalog uncatalogObject unsuccessfully attempted to uncatalog an object with a uid of /uniben/campus/students/A923157/study_course/200/ZOO213. 2007-05-31 12:47:05 INFO Skins.create_level Y617041 started to

[Zope-dev] Zope Tests: 5 OK

2007-05-31 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Wed May 30 12:00:00 2007 UTC to Thu May 31 12:00:00 2007 UTC. There were 5 messages: 5 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Wed May 30 20:52:11 EDT 2007

[Zope-dev] Re: [ZODB-Dev] Re: [Bug] ZODB invalidation processing

2007-05-31 Thread Dieter Maurer
Joachim Schmitz wrote at 2007-5-31 12:07 +0200: ... 2007-05-31 09:45:06 INFO Skins.create_level A923157 finished to create level 200 Now the conflict error, look at the transaction start-time, this is before the restart of zope !! You are probably tricked out here: the serials are in fact UTC

[Zope-dev] Re: [ZODB-Dev] Re: [Bug] ZODB invalidation processing

2007-05-31 Thread Perry
Dieter Maurer schrieb: Joachim Schmitz wrote at 2007-5-31 12:07 +0200: ... 2007-05-31 09:45:06 INFO Skins.create_level A923157 finished to create level 200 Now the conflict error, look at the transaction start-time, this is before the restart of zope !! You are probably tricked out here:

Re: [Zope-dev] Re: [Bug] ZODB invalidation processing

2007-05-31 Thread Joachim Schmitz
Hi, I was able to locate the places in the Zope-sources where the conflict error is triggered. On my local system it's in ZODB.FileStorage in the store-method there is if serial != cached_tid: rdata = self.tryToResolveConflict(oid, cached_tid,serial, data) in the tryToResolveConflict

Re: [Zope-dev] Re: [Bug] ZODB invalidation processing

2007-05-31 Thread Maciej Wisniowski
resolve bound method Length._p_resolveConflict of BTrees.Length.Length object at 0xb28fff6c resolve built-in method _p_resolveConflict of BTrees._OIBTree.OIBucket object at 0xb1b81224 resolve built-in method _p_resolveConflict of BTrees._OIBTree.OIBucket object at 0xb1b81224 resolve