[Zope-dev] Zope Tests: 6 OK
Summary of messages to the zope-tests list. Period Fri Feb 8 12:00:00 2008 UTC to Sat Feb 9 12:00:00 2008 UTC. There were 6 messages: 6 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Fri Feb 8 21:02:59 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-February/009077.html Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Unit Tests Date: Fri Feb 8 21:04:29 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-February/009078.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Unit Tests Date: Fri Feb 8 21:06:00 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-February/009079.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Unit Tests Date: Fri Feb 8 21:07:30 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-February/009080.html Subject: OK : Zope-2.11 Python-2.4.4 : Linux From: Zope Unit Tests Date: Fri Feb 8 21:09:00 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-February/009081.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Unit Tests Date: Fri Feb 8 21:10:30 EST 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-February/009082.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope] ZODB Zope 2.8 ZRDB/TM : raise + except: pass
(woops, forgot to cc the list when answering) Le Vendredi 8 Février 2008 22:41, vous avez écrit : Where does this cleanup code comes from -- from your application? Yes (explanation folows). try: ... except: ... are extremely dangerous -- never use them. If you think you need something like this, always use try: ... except ConflictError: raise except: What it does with more details is: - fetch a task from a task list and put it in being processed state - execute the task - update the task list: delete task if successfull, otherwise put it back to a pending state Task execution request is generated by timerserver. Tasks are executed in a loop (no need to wait for next timerserver poll if application knows it still have tasks to process), and to make a task's result independant from other tasks' success, I must commit/abort during the transaction depending on task success. So I need to intercept conflict error from the execute the task phase, otherwise I will get tasks in a being processed state, causing them to stall untill state gets fixed by hand. As task list is shared among multiple Zope instances (to paralelize task execution) I need to make modifications to this list visible to other nodes as soon as possible, to prevent multiple nodes from processing the same task. All suggestions improving those design choices are welcome. In my Zope 2.8.1, this does not happen -- probably a bug that has been introduced later. Mmh, the code was here from revision 3436, which is an initial import: http://svn.zope.org/ZODB/trunk/src/transaction/_transaction.py?rev=3436view=markup (see below def register) Note that the problem was triggered by a bug in my application: I was trying to use a connection not yet registered with transaction manager after the transaction failed to commit and before aborting it... Transaction class does detect this as a problem, but only after modifying its data (the append I mentioned). And it is worsened by TM hiding the exception raised in Transaction. I would check whether the problematic code is still in the current Zope version. If so, I would file a bug report. Code I think should be canged is still in Zope 2 trunk (TM.py), and still in transaction trunk (_transaction.py), so I'll bugreport. -- Vincent Pelletier ___ 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-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] rename meta_type
On Feb 8, 2008 3:34 PM, Dieter Maurer [EMAIL PROTECTED] wrote: David Chelimsky wrote at 2008-2-7 13:17 -0600: I have a product in use on many of my client sites. I'd like to rename the meta_type of one of the classes, but I notice that when I do, the pre-existing objects retain their old meta_type. Then these instances misbehave: they have assigned the meta_type attribute themselves rather than used the class level attribute (which they should have done). Is there a way for me to force a zope object to reset itself according to a modified class definition? You must locate the object and delete the instance level attribute. Thanks for the reply, Dieter. Through further exploration I discovered that they in fact *had* the correct meta_type. The problem I was experiencing was that when I called objectValues('New MetaType') on the object's parent, I didn't get anything back. It turns out that this method operates on a dictionary maintained in the parent rather than actually interrogating its children for their meta_type. So I'm now using my own version of objectValues and all is well in my application. It's an old version of zope (2.7.9), so I'm guessing that a patch would be a waste of time at this point, yes? -- Dieter ___ 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-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] When to use a relational database
Thanks Dieter. I will look into using the zope 3 views in 2.10 and compare their performance with DTML. BTW, I hope plone people understand that I am a big fan of plone, zope 3 and zpt. They just don't fit my current application. @quizzical: As others have pointed out, zope really excels at handling semi-structured data. In addition, zope 2 (and maybe 3) is easier to administer than a relational database so it is a database that you can distribute to power users. Tim On Feb 8, 2008 1:32 PM, Dieter Maurer [EMAIL PROTECTED] wrote: Tim Nash wrote at 2008-2-7 19:14 -0800: ... Why does storing a single document lead to close to 120 objects being inserted? Almost surely due to full text indexing. -- Dieter ___ 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-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] When to use a relational database
On Friday 08 February 2008, Dieter Maurer wrote: Jaroslav Lukesh wrote at 2008-2-7 22:40 +0100: JAvascript nor CSS cannot be dynamically generated from ZPT. They can be generated by ZPTs -- though it is not very natural. Have a look at z3c.zrtresource, which is a simple package allowing some variable substitution. It was designed for CSS and JS. Regards, Stephan -- Stephan Richter Web Software Design, Development and Training Google me. Zope Stephan Richter ___ 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-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] When to use a relational database
On Thu, Feb 07, 2008 at 07:14:46PM -0800, Tim Nash wrote: Why does storing a single document lead to close to 120 objects being inserted? I'd bet almost all of that is updates to catalog indexes and metadata. Is it something related to plone or is this the case for all ZPT storing? Is it similarly true for the storing of DTML documents? You're confused. The relative speed of ZPT and DTML have only to do with rendering time. As far as the ZODB is concerned, they are equivalent. -- Paul Winkler http://www.slinkp.com ___ 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-announce http://mail.zope.org/mailman/listinfo/zope-dev )