Re: [Zope] debug with ipython

2006-06-07 Thread thomas desvenain
thanks ! and is it possible to run zope in console mode (as debug mode) whithout having to shutdown the server (to unlock ZODB) ? 2006/6/7, Timur Izhbulatov [EMAIL PROTECTED]: On Tue, Jun 06, 2006 at 04:12:40PM +0200, thomas desvenain wrote: is it possible to use zopectl debug with ipython ?

[Zope] creating a new permission

2006-06-07 Thread thomas desvenain
hello, i am searching for hours, and i don't find how to define a new permission, in python code, for my product can you help me ? thanks thomas ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or

Re: [Zope] creating a new permission

2006-06-07 Thread Andreas Jung
Look at the e.g. at the PloneCollectorNG sources..it defines new roles and permissions. -aj --On 7. Juni 2006 09:53:10 +0200 thomas desvenain [EMAIL PROTECTED] wrote: hello, i am searching for hours, and i don't find how to define a new permission, in python code, for my product can you

Re: [Zope] creating a new permission

2006-06-07 Thread Martin Aspeli
thomas desvenain wrote: i am searching for hours, and i don't find how to define a new permission, in python code, for my product Permissions kind of spring into existence when they are used. For example, Poi defines some additional permissions in Products/Poi/permissions.py. It then

Re: [Zope] debug with ipython

2006-06-07 Thread Bakhtiar A Hamid
On 6/7/06, thomas desvenain [EMAIL PROTECTED] wrote: thanks ! and is it possible to run zope in console mode (as debug mode) whithout having to shutdown the server (to unlock ZODB) ? zeo is the magic word here. check on how to enable zeo from the zopebook at plope.com, or google for it --

Re: [Zope] creating a new permission

2006-06-07 Thread Sascha Welter
(Wed, Jun 07, 2006 at 12:00:10PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse: From: thomas desvenain [EMAIL PROTECTED] i am searching for hours, and i don't find how to define a new permission, in python code, for my product Something I wrote a while ago, Introduction to some Zope

Re: [Zope] RE: zope LDAP deadlock problem

2006-06-07 Thread Dieter Maurer
Matthew X. Economou wrote at 2006-6-6 14:44 -0400: ... In short, no, Zope will consume all available CPU cycles after some amount of idle time, due to a threading-related flaw in Zope, GRUF, Plone, LDAPUserFolder, python-ldap, or OpenLDAP (I don't know which). You can use Florent's

[Zope] Document parameters as part of a URL

2006-06-07 Thread Andrew Hedges
Just curious what people think of the technique described here: http://www.zope.org/Members/petrvanblokland/parameters_in_url This page is a few years old. Is there something built-in to more recent versions of Zope that does this already? If there is, Google has failed me on this one.

RE: [Zope] RE: zope LDAP deadlock problem

2006-06-07 Thread Matthew X. Economou
You can use Florent's DeadlockDebugger to find out what happens. This is true for someone with the requisite skills and plenty of time. In my case, the actual deadlock happens in a system library routine (sigaction, as I recall), making the identification of the component that's actually at

[Zope] REQUEST within a property() getter/setter

2006-06-07 Thread Doyon, Jean-Francois
Hello, When executing code within a property getter/setter, I can't seem to get to the REQUEST object. self.REQUEST always seems to return Special Object Used to Force Acquisition ... Anyway around this? Jean-François Doyon Internet Service Development and Systems Support / Spécialiste de

Re: [Zope] [ANN] Zope 2.9.3 released

2006-06-07 Thread Thomas Bennett
I'll have to say, this is the first Zope that I've had a problem with the install since 1998. The last successful version I installed was 2.92. RedHat Linux 7.3 Python 2.4.3 I've looked at the Troubleshooting info in the INSTALL.txt file and my Makefile for Python 2.4.3 shows CC=

Re: [Zope] Document parameters as part of a URL

2006-06-07 Thread Peter Bengtsson
I much prefer to use __before_publishing_traverse__. Eg. class MyProduct(Something): def __before_publishing_traverse__(self, object, REQUEST): sort things out before publising object stack = REQUEST['TraversalRequestNameStack'] if len(stack)==2 and

Re: [Zope] Document parameters as part of a URL

2006-06-07 Thread Andrew Hedges
Peter, That definitely looks promising. I've tried a couple of ways, but I can't make it so this applies to all DTML Methods. Any ideas? -Andrew On Jun 7, 2006, at 6/7/2006 4:10 PMMDT, Peter Bengtsson wrote: I much prefer to use __before_publishing_traverse__. Eg. class

Re: [Zope] Document parameters as part of a URL

2006-06-07 Thread Peter Bengtsson
Well, you could maybe create a new type of DTML Method called Clear DTML Method which would in principle look something like this: from zope.somewhere import DTMLMethod class ClearDTMLMethod(DTMLMethod): meta_type = Clear + DTMLMethod.meta_type def __before_publishing_traverse__(...):

Re: [Zope] Information about Zope 3.2

2006-06-07 Thread John Huttley
Lennart Regebro wrote: On 6/6/06, Michael Dexter [EMAIL PROTECTED] wrote: Good FAQ but you do not address the 64k EUR question: Is Zope 3 so well thought out (separation of content and logic etc.) that is will not only serve as an excellent application server but also the I don't know how we

Re: [Zope-dev] Unittests with different zope configuration?

2006-06-07 Thread Stefan H. Holek
I use this to set debug-mode off: # Switch off debug mode import App.config config = App.config.getConfiguration() config.debug_mode = 0 App.config.setConfiguration(config) Stefan On 5. Jun 2006, at 11:50, Andreas Jung wrote: Does anyone know how to write unittests that

[Zope-dev] Re: Unittests with different zope configuration?

2006-06-07 Thread Rocky Burt
On Wed, 2006-07-06 at 12:04 +0200, Stefan H. Holek wrote: I use this to set debug-mode off: # Switch off debug mode import App.config config = App.config.getConfiguration() config.debug_mode = 0 App.config.setConfiguration(config) Oh wow, this trick should come in

Re: [Zope-dev] Re: Unittests with different zope configuration?

2006-06-07 Thread Andreas Jung
--On 7. Juni 2006 08:50:41 -0230 Rocky Burt [EMAIL PROTECTED] wrote: On Wed, 2006-07-06 at 12:04 +0200, Stefan H. Holek wrote: I use this to set debug-mode off: # Switch off debug mode import App.config config = App.config.getConfiguration() config.debug_mode = 0

[Zope-dev] Re: Unittests with different zope configuration?

2006-06-07 Thread Florent Guillaume
Stefan H. Holek wrote: I use this to set debug-mode off: # Switch off debug mode import App.config config = App.config.getConfiguration() config.debug_mode = 0 App.config.setConfiguration(config) The setConfiguration() is probably unnecessary, you're modifying a mutable

Re: [Zope-dev] Re: Unittests with different zope configuration?

2006-06-07 Thread Andreas Jung
--On 7. Juni 2006 14:28:03 +0200 Florent Guillaume [EMAIL PROTECTED] wrote: Stefan H. Holek wrote: I use this to set debug-mode off: # Switch off debug mode import App.config config = App.config.getConfiguration() config.debug_mode = 0 App.config.setConfiguration(config)

[Zope-dev] Re: Unittests with different zope configuration?

2006-06-07 Thread Florent Guillaume
Zope core doesn't use the legacy locations anymore however, right? It would potentially impact only third-party products? Florent On 7 Jun 2006, at 14:47, Stefan H. Holek wrote: It is needed to update legacy locations, e.g. copying config.instancehome to the INSTANCE_HOME built-in and into

Re: [Zope-dev] Re: zope2 requests VS zope3 requests

2006-06-07 Thread Philipp von Weitershausen
Stefan H. Holek wrote: -1 The whole point of sticking with Zope2 is backward compatibility, isn't it? If I wanted something that doesn't run my old products and applications anymore I would go to Zope3 directly, why thank you. Hey, the idea isn't to run Zope 3 directly but to evolve,

[Zope-PAS] Re: Bug in ZODBUserManager

2006-06-07 Thread Tres Seaver
Dominique Lederer wrote: Hello! I think a found a bug in ZODBUserManager.py in the updateUserPassword method. To reproduce: Add users via ZMI (id | login) user1 | login1 user2 | login2 Everything works fine. Now edit the second user (by clicking on password in the ZODBUserManager ZMI) And

[Zope-DB] ZPsycopgDA connection failing

2006-06-07 Thread Davis Mr MR
Hi, My connection to Postgres keeps failing every couple of hours. I did read that there was a problem with some versions of this. I'm using 2.0b6 at the moment. Does anyone have a version number that I can try that will re-establish a connection on failure. Cheers Michael -- This message has

Re: [Zope-DB] ZPsycopgDA connection failing

2006-06-07 Thread Charlie Clark
On 2006-06-07 at 16:17:13 [+0200], Davis Mr MR [EMAIL PROTECTED] wrote: Hi, My connection to Postgres keeps failing every couple of hours. I did read that there was a problem with some versions of this. I'm using 2.0b6 at the moment. Does anyone have a version number that I can try that

RE: [Zope-DB] ZPsycopgDA connection failing

2006-06-07 Thread Davis Mr MR
Hi Charlie, I was afriad of that. Looks like the firewall is killing it, and it is not telling the DA. Will need to speak to our network people. Thanks for your help. Cheers Michael -Original Message- From: Charlie Clark [mailto:[EMAIL PROTECTED] Sent: 07 June 2006 15:53 To: Davis Mr

[Zope-DB] Multiple databases connection

2006-06-07 Thread Infor Gates
Dear listMy organisation received databases uploaded from our branches. These branches databases are then restored into the main system. The Main Office then access to these databases individually.Currently, separate copies of the same zope application is copied in the same Zope server

[Zope-DB] A web based rewards management system for [EMAIL PROTECTED]

2006-06-07 Thread bob gmx
Hi Everyone, Can you help a colleague? [EMAIL PROTECTED] He is looking for the following:- Okay here goes with a v brief requirement: + A web based rewards management system (a points scheme like mypoints, ipoints, rpoints), + Versatile content management system + community, + CRMS /