[Zope-dev] makeClass and makeClassForTemplate

2012-09-04 Thread Laurence Rowe
Hi Yuppie, Now that you've cleaned up Products.Five in Zope trunk, what should other packages that use ``makeClass`` and ``makeClassForTemplate`` change to? For five.formlib I simply exchanged ``makeClass`` for ``type`` and ``makeClassForTemplate`` for ``SimpleViewClass``, see:

Re: [Zope-dev] makeClass and makeClassForTemplate

2012-09-04 Thread Laurence Rowe
On 4 September 2012 22:23, yuppie y.2...@wcm-solutions.de wrote: Hi Laurence! Laurence Rowe wrote: Now that you've cleaned up Products.Five in Zope trunk, what should other packages that use ``makeClass`` and ``makeClassForTemplate`` change to? Well. I wasn't aware of the fact

Re: [Zope-dev] Restoring zLOG trunk

2012-08-30 Thread Laurence Rowe
On 30 August 2012 15:56, Laurence Rowe l...@lrowe.co.uk wrote: On 29 August 2012 15:44, Tres Seaver tsea...@palladion.com wrote: On 08/29/2012 09:25 AM, Tres Seaver wrote: That base class has been gone since ZConfig 2.9.2. I don't think the Zope2 trunk has pinned / unpinned ZConfig in a long

Re: [Zope-dev] [ZODB-Dev] RFC: release persistent as a standalone package

2012-07-01 Thread Laurence Rowe
On 1 July 2012 02:16, Leonardo Rochael Almeida leoroch...@gmail.com wrote: I'm +1 on the change even without the answer to my next question, but can you elaborate on what is the advantage of releasing persistent appart from ZODB? As well as the clearer separation of concerns it opens up the

Re: [Zope-dev] Zope 4 release management

2012-02-01 Thread Laurence Rowe
On 1 February 2012 14:35, Jonathan Ballet j...@multani.info wrote: On Wed, Feb 01, 2012 at 02:21:32PM +0100, Lennart Regebro wrote: What we would like to do, of course, is to have a self-hosted github. :-)  (And that exists. Buuut... it costs $250 per commiter and year, so that's not an

Re: [Zope-dev] Zope 4 ZMI sprint report

2012-02-01 Thread Laurence Rowe
On 26 January 2012 04:29, Christopher Lozinski lozin...@freerecruiting.com wrote: Thank you for the sprint report. I think it is great that you are working on upgrading the ZMI. I am also turning my attention to this problem.  Clearly ZMI needs an upgrade. I need an upgraded ZMI. Today I

Re: [Zope-dev] Zope 2 WSGI investigation

2012-01-08 Thread Laurence Rowe
On 3 January 2012 08:34, Sylvain Viollon sylv...@infrae.com wrote: Op 1 jan 2012, om 20:39 heeft Martin Aspeli het volgende geschreven: Hi,  Hello, There are three known WSGI implementations of the Zope 2 publisher. I've had a look at them and made some notes about what I think

Re: [Zope-dev] Supporting interworking with repository branches on github

2011-11-24 Thread Laurence Rowe
On 24 November 2011 07:58, Wichert Akkerman wich...@wiggy.net wrote: On 11/24/2011 01:29 AM, Florian Friesdorf wrote: On Wed, 23 Nov 2011 09:50:49 -0500, Tres Seavertsea...@palladion.com   wrote: Second, it is already feasible to work with modern VCSes against the existing SVN repository:  

Re: [Zope-dev] Supporting interworking with repository branches on github

2011-11-23 Thread Laurence Rowe
On 23 November 2011 06:58, Wolfgang Schnerring w...@gocept.com wrote: * Tres Seaver tsea...@palladion.com [2011-11-22 22:46]: On 11/22/2011 12:13 PM, Laurence Rowe wrote: While the Zope Foundation deliberates on version control, I think it's likely that development will continue using Git

Re: [Zope-dev] Zope 4 roadmap

2011-11-22 Thread Laurence Rowe
On 22 November 2011 10:13, Sylvain Viollon sylv...@infrae.com wrote: Op 17 nov 2011, om 20:57 heeft Tres Seaver het volgende geschreven:   Hello, On 11/17/2011 02:05 PM, Laurence Rowe wrote: On 17 November 2011 15:23, Martin Aspeli optilude+li...@gmail.com wrote: On 17 November 2011 14

[Zope-dev] Supporting interworking with repository branches on github

2011-11-22 Thread Laurence Rowe
As you are already aware, at the SF Zope sprint we used Git and github for our work. The work contained in https://github.com/zopefoundation is by people who have already signed the Zope Foundation contributor agreement. While the Zope Foundation deliberates on version control, I think it's

[Zope-dev] Zope 4 release management

2011-11-17 Thread Laurence Rowe
Along with David Glick, I would like to volunteer for the Zope 4 release management role, where I would take responsibility for producing the initial release of Zope 4 and David would then take over for the maintenance releases. In doing so, I thought it would be helpful to set out our

[Zope-dev] Zope 4 roadmap

2011-11-17 Thread Laurence Rowe
Here's my current understanding of the Zope 4 roadmap. Zope 4 -- Significant progress has already been made on the following features and I expect they should all land in time for a Zope 4 release: - Storing parent pointers (elro, davisagli): we have a branch of Zope that changes OFS to

Re: [Zope-dev] Zope 4 release management

2011-11-17 Thread Laurence Rowe
On 17 November 2011 16:32, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/17/2011 07:25 AM, Laurence Rowe wrote: Along with David Glick, I would like to volunteer for the Zope 4 release management role, where I would take responsibility

Re: [Zope-dev] Zope 4 roadmap

2011-11-17 Thread Laurence Rowe
On 17 November 2011 15:23, Martin Aspeli optilude+li...@gmail.com wrote: On 17 November 2011 14:46, Laurence Rowe l...@lrowe.co.uk wrote: Here's my current understanding of the Zope 4 roadmap. Zope 4 -- Significant progress has already been made on the following features and I expect

Re: [Zope-dev] Zope 4 release management

2011-11-17 Thread Laurence Rowe
On 17 November 2011 19:45, Tres Seaver tsea...@palladion.com wrote: Again, this is a choice to be made by the foundation:  any polling will be done by the members of the foundation (this might be the biggest non-election item on the agenda for the next annual meeting). When is the next annual

Re: [Zope-dev] Zope 4 release management

2011-11-17 Thread Laurence Rowe
On 17 November 2011 20:20, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/17/2011 03:14 PM, Laurence Rowe wrote: On 17 November 2011 19:45, Tres Seaver tsea...@palladion.com wrote: Again, this is a choice to be made by the foundation:  any

Re: [Zope-dev] Revert removal of ++skin++ in Zope4?

2011-11-16 Thread Laurence Rowe
On 16 November 2011 10:30, Christian Theune c...@gocept.com wrote: Hi, I'd like to revert the removal of the ++skin++ traverser in Zope 4. As we're working on a replacement ZMI at a sprint currently (more details about that in a bit) we'd like to leverage this feature.  From my

Re: [Zope-dev] Revert removal of ++skin++ in Zope4?

2011-11-16 Thread Laurence Rowe
On 16 November 2011 12:28, Lennart Regebro rege...@gmail.com wrote: On Wed, Nov 16, 2011 at 12:53, Charlie Clark charlie.cl...@clark-consulting.eu wrote: Am 16.11.2011, 12:49 Uhr, schrieb Lennart Regebro rege...@gmail.com: Right. Could we standardize on skins or browserlayers plz? Having both

Re: [Zope-dev] Zope 4 publisher/traversal, sprint topic

2011-10-27 Thread Laurence Rowe
On 27 October 2011 14:34, Leonardo Rochael Almeida leona...@nexedi.com wrote: Hi, Sorry for the cross-post, but I'd like to talk about a possible sprint topic for the next DZUG sprint[1], and invite myself to it :-) We'll also be sprinting on Zope 4 before the Plone conference this coming

Re: [Zope-dev] [Zope] Hotfix for security vulnerability

2011-10-25 Thread Laurence Rowe
On 24 October 2011 22:54, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Zope security response team, I would like to announce the availability of a hotfix for a vulnerability inadvertently published earlier today.

Re: [Zope-dev] [collective.recipe.solrinstance] Example not working

2011-10-17 Thread Laurence Rowe
On 17 October 2011 18:36, Hanno Schlichting ha...@hannosch.eu wrote: On Mon, Oct 17, 2011 at 11:19 AM, Andreas Jung li...@zopyx.com wrote: I used the single-core example for the solrinstance recipe: I think someone reported the Solr core examples to be broken in the latest releases. I don't

Re: [Zope-dev] zope.sqlalchemy+py3 test failures.

2011-09-29 Thread Laurence Rowe
On 29 September 2011 10:33, Chris McDonough chr...@plope.com wrote: On Tue, 2011-09-27 at 12:40 -0400, Tres Seaver wrote: This bootstrap is from Jim's '2' branch of zc.buildout:  http://svn.zope.org/zc.buildout/branches/2/bootstrap/bootstrap.py?rev=121484view=auto It is designed to work with

Re: [Zope-dev] zope.sqlalchemy+py3 test failures.

2011-09-29 Thread Laurence Rowe
On 29 September 2011 16:51, Chris Withers ch...@simplistix.co.uk wrote: It'd also be great if we could get support for SA 0.7+'s new events system... I'm not convinced this will give any benefit. Currently we just require: Session = scoped_session(sessionmaker(bind=engine, ...

Re: [Zope-dev] [BlueBream] Referring to same interface using zope.schema.Object

2011-07-22 Thread Laurence Rowe
On 22 July 2011 13:32, Joshua Immanuel j...@hipro.co.in wrote: Hello, On Fri, 2011-07-22 at 13:41 +0200, Jacob Holm wrote: On 2011-07-22 13:26, Brian Sutherland wrote: This would be my first guess:     class INode(Interface):         pass     INode.parent = Object(            

[Zope-dev] Publisher, WSGI and possibility for simplification

2011-07-07 Thread Laurence Rowe
Breaking this out as the thread has got overlong. On 4 July 2011 09:49, Sylvain Viollon sylv...@infrae.com wrote: On Sun, 03 Jul 2011 01:09:17 -0400 Chris McDonough chr...@plope.com wrote: On Sun, 2011-07-03 at 03:41 +0200, Hanno Schlichting wrote:  Hello, - Continue to remove

Re: [Zope-dev] direction

2011-07-06 Thread Laurence Rowe
On 5 July 2011 20:21, Leonardo Rochael Almeida leoroch...@gmail.com wrote: Hi Hanno, On Tue, Jul 5, 2011 at 11:18, Hanno Schlichting ha...@hannosch.eu wrote: On Tue, Jul 5, 2011 at 11:03 AM, Martin Aspeli optilude+li...@gmail.com wrote: I would've thought it would also be possible for those

Re: [Zope-dev] direction

2011-07-06 Thread Laurence Rowe
On 6 July 2011 15:27, Sascha Welter zopel...@betabug.ch wrote: I'm sorry, I don't really understand the current line of discussion yet. I see a lot of discussion which part is going to be cut out and dropped, or replaced. I haven't yet understood what's the end target for the project. So,

[Zope-dev] Zope2 Sprint. 31 October - 2 November, San Francisco

2011-07-06 Thread Laurence Rowe
To make the most of all those air miles for people attending the Plone Conference, I want to have a Zope2 Sprint on the preceding days (overlapping with the training.) Topics to include: * Making Acquisition optional * Adding __parent__ pointers (see

Re: [Zope-dev] direction

2011-07-05 Thread Laurence Rowe
On 5 July 2011 11:22, Jonas Meurer jo...@freesources.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 05.07.2011 12:04, schrieb Hanno Schlichting: On Tue, Jul 5, 2011 at 11:56 AM, Martin Aspeli optilude+li...@gmail.com wrote: On 5 July 2011 10:31, Hanno Schlichting

Re: [Zope-dev] direction

2011-07-04 Thread Laurence Rowe
On 4 July 2011 13:04, Leonardo Rochael Almeida leoroch...@gmail.com wrote: On the other hand, if we could get the ZTK version of this working (the one that used /++vh-host and /++vh-root url segments) I think it should be ok, and we could get rid of VHM completely. The BlueBream URL syntax is

[Zope-dev] Security announcement update

2011-06-28 Thread Laurence Rowe
This is an update on today's security hotfix release. The fix will be released at 15:00 UTC today, Tuesday 28th June, 2011 (11:00am US EDT.) Updated versions of Zope 2 containing the security fix will be released at the same time. For details on which versions of Zope and Plone are affected,

Re: [Zope-dev] [Zope] Security announcement update

2011-06-28 Thread Laurence Rowe
On 28 June 2011 14:40, Norbert Marrale norbertmarr...@yahoo.com wrote: This should be clarified too: You should, however, make sure that you are running either Zope 2.10.13 or Zope 2.11.8  and PluggableAuthService 1.5.5, 1.6.5 or 1.7.5 Why must PluggableAuthService (+ its dependencies) even

[Zope-dev] Security announcement

2011-06-22 Thread Laurence Rowe
On behalf of the Plone and Zope Security Teams I'd like to draw your attention to a security announcement that has just been published. This is a pre-announcement only, it does not contain any vulnerability details. Your sites are a safe today as they were yesterday. However, as the problem that

Re: [Zope-dev] Sharing session between different zope servers

2011-06-15 Thread Laurence Rowe
On 15 June 2011 19:05, Baiju M baiju.m.m...@gmail.com wrote: On Wed, Jun 15, 2011 at 11:07 PM, Hanno Schlichting ha...@hannosch.eu wrote: On Wed, Jun 15, 2011 at 7:26 PM, Baiju M baiju.m.m...@gmail.com wrote: Is memcached a reliable storage for session data ? I would like to hear others

Re: [Zope-dev] [BlueBream] Reg. persisting data in ZODB via forms

2011-06-09 Thread Laurence Rowe
On 9 June 2011 07:12, Joshua Immanuel j...@hipro.co.in wrote: Hello Jonah, On Wed, 2011-06-08 at 22:25 -0700, Jonah Crawford wrote: Ah yes you do that in the zcml right after you define your object in a class :) I am not aware of the zcml configuration that can mark a class as persistent.

Re: [Zope-dev] Reg. persisting data in ZODB via forms

2011-06-08 Thread Laurence Rowe
On 8 June 2011 10:05, Joe Steeve j...@hipro.co.in wrote: Hello Charlie, On Wed, 2011-06-08 at 10:48 +0200, Charlie Clark wrote: From memory I can recall something similar related to making changes to copies of instance attributes but failing to apply them to attributes and needing to

Re: [Zope-dev] Reg. persisting data in ZODB via forms

2011-06-08 Thread Laurence Rowe
On 8 June 2011 20:47, Joe Steeve j...@hipro.co.in wrote: On Wed, 2011-06-08 at 14:48 +0100, Laurence Rowe wrote: A BTree efficiently stores a large number of key,value pairs because the storage is split across a number of persistent objects (buckets) each of which stores a part of the tree, so

Re: [Zope-dev] Metaclass resolution for InterfaceClass

2011-06-01 Thread Laurence Rowe
On 1 May 2011 20:28, Laurence Rowe l...@lrowe.co.uk wrote: While experimenting with my InterfaceClass subclass I noticed that it was only being used when it was specified as the first of the bases. I believe this is because InterfaceClass is not a subclass of ``type``, so the normal metaclass

Re: [Zope-dev] Adding a _frame argument to InterfaceClass.__init__ to make it subclassable

2011-05-01 Thread Laurence Rowe
On 1 May 2011 01:06, Laurence Rowe l...@lrowe.co.uk wrote: Hi, I'd like to apply the attached patch to zope.interface trunk to make it more easily subclassable without having to copy and paste a chunk of its __init__ into the subclass' __init__. On closer inspection, this doesn't seem

[Zope-dev] Metaclass resolution for InterfaceClass

2011-05-01 Thread Laurence Rowe
While experimenting with my InterfaceClass subclass I noticed that it was only being used when it was specified as the first of the bases. I believe this is because InterfaceClass is not a subclass of ``type``, so the normal metaclass derivation logic is not applied. The attached patch implements

[Zope-dev] Adding a _frame argument to InterfaceClass.__init__ to make it subclassable

2011-04-30 Thread Laurence Rowe
Hi, I'd like to apply the attached patch to zope.interface trunk to make it more easily subclassable without having to copy and paste a chunk of its __init__ into the subclass' __init__. Motivating factor is: I need an Interface with a hook that gets called after InterfaceClass.__init__ to allow

Re: [Zope-dev] [Zope2] Multiline response headers causing problems for proxies.

2011-04-19 Thread Laurence Rowe
On 18 April 2011 17:01, Laurence Rowe l...@lrowe.co.uk wrote: When using response.appendHeader, Zope appends the new value following an ,\r\n\t which splits the header over multiple lines. While this behaviour is standards compliant, it causes problems for both Varnish [1] and Nginx [2] which

[Zope-dev] [Zope2] Multiline response headers causing problems for proxies.

2011-04-18 Thread Laurence Rowe
When using response.appendHeader, Zope appends the new value following an ,\r\n\t which splits the header over multiple lines. While this behaviour is standards compliant, it causes problems for both Varnish [1] and Nginx [2] which may then mangle the header value. In fact the HTTP 1.0 spec notes

Re: [Zope-dev] [Zope2] Multiline response headers causing problems for proxies.

2011-04-18 Thread Laurence Rowe
On 18 April 2011 19:36, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/18/2011 12:01 PM, Laurence Rowe wrote: When using response.appendHeader, Zope appends the new value following an ,\r\n\t which splits the header over multiple lines. While

[Zope-dev] Ensuring at least min_length subwidgets are rendered for the MultiWidget

2011-04-14 Thread Laurence Rowe
The attached patch ensures that when in input mode, the MultiWidget will render at least field.min_length subwidgets. This streamlines the add process, currently a user only finds out they need to add to a form when it is submitted and the error message is rendered. They must then make another

Re: [Zope-dev] CSRF protection for z3c.form

2011-04-06 Thread Laurence Rowe
, 4. April 2011 19:54 An: d...@projekt01.ch Cc: 'Laurence Rowe'; 'zope-dev'; stephan.rich...@gmail.com Betreff: Re: [Zope-dev] CSRF protection for z3c.form On 04/04/2011 10:22 AM, Roger wrote: Just because you can write login forms with z3c.form this package has nothing to do

Re: [Zope-dev] CSRF protection for z3c.form

2011-04-06 Thread Laurence Rowe
.ch wrote: Hi Shane -Ursprüngliche Nachricht- Von: Shane Hathaway [mailto:sh...@hathawaymix.org] Gesendet: Montag, 4. April 2011 19:54 An: d...@projekt01.ch Cc: 'Laurence Rowe'; 'zope-dev'; stephan.rich...@gmail.com Betreff: Re: [Zope-dev] CSRF protection for z3c.form

Re: [Zope-dev] CSRF protection for z3c.form

2011-04-05 Thread Laurence Rowe
On 4 April 2011 19:16, Roger d...@projekt01.ch wrote: Hi Shane -Ursprüngliche Nachricht- Von: Shane Hathaway [mailto:sh...@hathawaymix.org] Gesendet: Montag, 4. April 2011 19:54 An: d...@projekt01.ch Cc: 'Laurence Rowe'; 'zope-dev'; stephan.rich...@gmail.com Betreff: Re: [Zope-dev

Re: [Zope-dev] CSRF protection for z3c.form

2011-04-05 Thread Laurence Rowe
On 4 April 2011 16:53, Stephan Richter srich...@cosmos.phy.tufts.edu wrote: On Monday, April 04, 2011, Laurence Rowe wrote: The authenticator is described on http://pypi.python.org/pypi/plone.protect, but basically it adds an HMAC-SHA signed token into the form submission. By validating

[Zope-dev] CSRF protection for z3c.form

2011-04-04 Thread Laurence Rowe
I've been looking into how we might add CSRF protection to z3c.form forms as we will be including z3c.form in Plone 4.1. Currently in Plone, we use plone.protect to add an authentication token to our forms and then check the token in the methods that get called. (plone.protect is BSD licensed, but

Re: [Zope-dev] CSRF protection for z3c.form

2011-04-04 Thread Laurence Rowe
On 4 April 2011 14:57, Stephan Richter srich...@cosmos.phy.tufts.edu wrote: On Monday, April 04, 2011, Laurence Rowe wrote: I'd be interested to know how other z3c.form users approach CSRF protection and what approach they would recommend. Hi Lawrence, I am okay with (1), but find (3) ore

Re: [Zope-dev] Zope Tests: 109 OK, 24 Failed, 4 Unknown

2011-03-31 Thread Laurence Rowe
On 31 March 2011 10:15, Gediminas Paulauskas mene...@pov.lt wrote: 2011/3/23 Laurence Rowe l...@lrowe.co.uk: On 23 March 2011 14:43, Tres Seaver tsea...@palladion.com wrote: Multiple 'Content-Length' headers is definitely a Bad Thing.  I filed a bug, which Mark Ramm has promised to escalate

Re: [Zope-dev] SVN: Zope/trunk/ Adding support for ``IStreamIterator`` to WSGI publishing machinery.

2011-03-28 Thread Laurence Rowe
On 26 March 2011 17:14, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/26/2011 12:53 PM, Malthe Borch wrote: Log message for revision 121131:   Adding support for ``IStreamIterator`` to WSGI publishing machinery. Changed:   U  

Re: [Zope-dev] Zope Tests: 109 OK, 24 Failed, 4 Unknown

2011-03-23 Thread Laurence Rowe
On 23 March 2011 14:43, Tres Seaver tsea...@palladion.com wrote: Multiple 'Content-Length' headers is definitely a Bad Thing.  I filed a bug, which Mark Ramm has promised to escalate:  https://sourceforge.net/apps/trac/sourceforge/ticket/18486 I have a patch for setuptools which works around

Re: [Zope-dev] ZPublisher: using zope.formlib and z3c.form in Zope 2

2011-03-03 Thread Laurence Rowe
On 2 March 2011 11:29, yuppie y.2...@wcm-solutions.de wrote: Laurence Rowe wrote: On 2 March 2011 10:00, yuppiey.2...@wcm-solutions.de  wrote: Martin Aspeli wrote: I don't know what setPageEncoding() does, though. It sets a response Content-Type header with the first charset processInputs

Re: [Zope-dev] string exceptions

2011-02-25 Thread Laurence Rowe
On 25 February 2011 10:58, Godefroid Chapelle got...@bubblenet.be wrote: Hi, I find a few string exceptions leftover in Zope 2.13 code. However, they are not allowed anymore in Python 2.6. I guess that the remaining string exceptions are in dead/semidead code. What practice has been

Re: [Zope-dev] string exceptions

2011-02-25 Thread Laurence Rowe
On 25 February 2011 11:03, Laurence Rowe l...@lrowe.co.uk wrote: On 25 February 2011 10:58, Godefroid Chapelle got...@bubblenet.be wrote: Hi, I find a few string exceptions leftover in Zope 2.13 code. However, they are not allowed anymore in Python 2.6. I guess that the remaining string

Re: [Zope-dev] string exceptions

2011-02-25 Thread Laurence Rowe
On 25 February 2011 11:09, Godefroid Chapelle got...@bubblenet.be wrote: Le 25/02/11 12:03, Laurence Rowe a écrit : On 25 February 2011 10:58, Godefroid Chapellegot...@bubblenet.be  wrote: Hi, I find a few string exceptions leftover in Zope 2.13 code. However, they are not allowed anymore

Re: [Zope-dev] string exceptions

2011-02-25 Thread Laurence Rowe
On 25 February 2011 11:14, Godefroid Chapelle got...@bubblenet.be wrote: Le 25/02/11 12:03, Hanno Schlichting a écrit : I find a few string exceptions leftover in Zope 2.13 code.  What practice has been followed until now regarding fixing those  exceptions ? Just upgrade them to new-style

Re: [Zope-dev] [ZODB-Dev] transaction as context manager, exception during commit

2011-02-24 Thread Laurence Rowe
On 24 February 2011 10:17, Chris Withers ch...@simplistix.co.uk wrote: Hi Jim, The current __exit__ for transaction managers looks like this:     def __exit__(self, t, v, tb):         if v is None:             self.commit()         else:             self.abort() ..which means that if

[Zope-dev] Time for a z3c.blobfile release

2011-02-07 Thread Laurence Rowe
There have been a couple of fixes to z3c.blobfile. Would one of the package owners (uoestermeier, nadako) be able to make a new release to pypi? Thanks! Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org

Re: [Zope-dev] Zope 2: specifying Zope2 dependency

2011-01-04 Thread Laurence Rowe
On 4 January 2011 13:00, yuppie y.2...@wcm-solutions.de wrote: Hi! Zope trunk (2.14) no longer ships with these Products:   Products.BTreeFolder2   Products.ExternalMethod   Products.MailHost   Products.MIMETools   Products.PythonScripts   Products.StandardCacheManagers There are no

Re: [Zope-dev] Zope 2: specifying Zope2 dependency

2011-01-04 Thread Laurence Rowe
On 4 January 2011 17:42, Laurence Rowe l...@lrowe.co.uk wrote: On 4 January 2011 13:00, yuppie y.2...@wcm-solutions.de wrote: Hi! Zope trunk (2.14) no longer ships with these Products:   Products.BTreeFolder2   Products.ExternalMethod   Products.MailHost   Products.MIMETools

Re: [Zope-dev] SVN: zope.interface/branches/jinty-mem/src/zope/interface/interface.py Improve CPU performance of previous memory optimization

2010-11-09 Thread Laurence Rowe
On 9 November 2010 18:35, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/09/2010 08:26 AM, Wichert Akkerman wrote: On 11/9/10 14:22 , Brian Sutherland wrote: Log message for revision 118295:    Improve CPU performance of previous memory

Re: [Zope-dev] Functional areas of Zope

2010-10-18 Thread Laurence Rowe
On 18 October 2010 12:51, Thomas Lotze tho...@thomas-lotze.de wrote: Hi all, at the Zope summit in September, we were talking about what Zope actually is or should be and how to define the goal of the Zope project. This led to the idea of identifying the functional areas of Zope. I'd like to

Re: [Zope-dev] PAS CookieAuthHelper and insufficient privileges

2010-10-13 Thread Laurence Rowe
On 13 October 2010 17:16, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/11/2010 08:21 PM, Laurence Rowe wrote: I'm currently implementing single sign on across Plone sites but have run into a bit of an issue with the CookieAuthHelper

Re: [Zope-dev] PAS CookieAuthHelper and insufficient privileges

2010-10-12 Thread Laurence Rowe
On 12 October 2010 08:39, Wichert Akkerman wich...@wiggy.net wrote: On 10/12/10 02:21 , Laurence Rowe wrote: I'm currently implementing single sign on across Plone sites but have run into a bit of an issue with the CookieAuthHelper. Unauthorized accesses are redirected to its login_path

[Zope-dev] PAS CookieAuthHelper and insufficient privileges

2010-10-11 Thread Laurence Rowe
I'm currently implementing single sign on across Plone sites but have run into a bit of an issue with the CookieAuthHelper. Unauthorized accesses are redirected to its login_path attribute even when a user is already logged in. Plone works around this with a require_login script that traverses to

Re: [Zope-dev] How can I make the tests of zope.sqlalchemy running?

2010-09-12 Thread Laurence Rowe
Those tests are designed to be run with the zope testrunner. try: $ python booststrap.py $ bin/buildout $ bin/test Laurence On 12 September 2010 14:29, Robin Lee robinlee.s...@gmail.com wrote: The output of a failed 'python setup.py test' is attached.

Re: [Zope-dev] DTML is dead, long live DTML ;-)

2010-09-05 Thread Laurence Rowe
On 5 September 2010 02:49, Tim Hoffman zutes...@gmail.com wrote: Please note that DTML is a dead (and horrid) technology. Martin But zpt is horrible for doing non html/xml based things ;-), What do you think is good alternative in the zope eco system now for templating other types of

[Zope-dev] zope.sqlalchemy 0.6 release

2010-07-24 Thread Laurence Rowe
I've released zope.sqlalchemy 0.6 with the following changes: * Implement should_retry for sqlalchemy.orm.exc.ConcurrentModificationError and serialization errors from PostgreSQL and Oracle. (Specify transaction=1.1 to use this functionality.) * Include license files. * Add

[Zope-dev] zope.sendmail and critical transaction errors.

2010-06-23 Thread Laurence Rowe
With Zope2's MailHost now using zope.sendmail, we're seeing some critical errors when sending mail when the mail server domain name is misconfigured. http://dev.plone.org/plone/ticket/10675 (these are triggered by a password reset mail, the registration mail is sent immediately). This is because

Re: [Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

2010-06-21 Thread Laurence Rowe
On 13 June 2010 11:18, Chris Withers ch...@simplistix.co.uk wrote: Laurence Rowe wrote: On 8 June 2010 12:59, Chris Withers ch...@simplistix.co.uk wrote: Laurence Rowe wrote: it fails you will end up in an inconsistent state whatever. It's just that with the maildir implementation

Re: [Zope-dev] connection commit ordering

2010-06-18 Thread Laurence Rowe
On 18 June 2010 01:24, Leonardo Rochael Almeida leoroch...@gmail.com wrote: By the way, this issue is completely separate from the two-phase-commit discussion that we had recently, since all the connectors involved here are fully transactional. As you can see here:

Re: [Zope-dev] connection commit ordering

2010-06-18 Thread Laurence Rowe
On 18 June 2010 14:32, Leonardo Rochael Almeida leoroch...@gmail.com wrote: Hi Laurence On Fri, Jun 18, 2010 at 08:06, Laurence Rowe l...@lrowe.co.uk wrote: On 18 June 2010 01:24, Leonardo Rochael Almeida leoroch...@gmail.com wrote: By the way, this issue is completely separate from the two

Re: [Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

2010-06-08 Thread Laurence Rowe
On 8 June 2010 09:51, Chris Withers ch...@simplistix.co.uk wrote: Hi All, I need to write a data manger that interacts with a transactional system that doesn't support two phase commit. Looking for inspiration, I went to look at zope.sqlalchemy and zope.sendmail. In the non-tpc situation,

Re: [Zope-dev] transaction_manager attribute of transaction.interfaces.IDataManager

2010-06-08 Thread Laurence Rowe
On 8 June 2010 11:25, Chris Withers ch...@simplistix.co.uk wrote: Laurence Rowe wrote:    transaction_manager = zope.interface.Attribute(        The transaction manager (TM) used by this data manager.        This is a public attribute, intended for read-only use.  The value

Re: [Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

2010-06-08 Thread Laurence Rowe
On 8 June 2010 11:44, Chris Withers ch...@simplistix.co.uk wrote: Laurence Rowe wrote: Committing in tpc_vote is right so long as you ensure your data manager sorts last, and that there are no other data managers in the transaction which are using the same trick. Why does the latter part

Re: [Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

2010-06-08 Thread Laurence Rowe
On 8 June 2010 12:48, Chris Withers ch...@simplistix.co.uk wrote: Christian Theune wrote: If you have more than one then it can happen that the first one committed, but the second one doesn't and then you can't properly roll back. Okay, but this is quite a common occurrence now. For

Re: [Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

2010-06-08 Thread Laurence Rowe
On 8 June 2010 12:59, Chris Withers ch...@simplistix.co.uk wrote: Laurence Rowe wrote: it fails you will end up in an inconsistent state whatever. It's just that with the maildir implementation, it pretty much can't fail as it is only a rename and that should always succeed. Really, it should

Re: [Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

2010-06-08 Thread Laurence Rowe
On 8 June 2010 14:38, Jim Fulton j...@zope.com wrote: This is intended as a broad response to the thread, rather than a response to any specific post. :) I've been thinking of expanding the data manager API to add an optional tpc_rollback method.  If tpc_finish returns a value and a data

Re: [Zope-dev] deciding whether to do work in tpc_vote or tpc_finish

2010-06-08 Thread Laurence Rowe
On 8 June 2010 18:11, Jim Fulton j...@zope.com wrote: On Tue, Jun 8, 2010 at 1:00 PM, Laurence Rowe l...@lrowe.co.uk wrote: On 8 June 2010 14:38, Jim Fulton j...@zope.com wrote: This is intended as a broad response to the thread, rather than a response to any specific post. :) I've been

Re: [Zope-dev] RFC: Proposed new style for documenting and testing ZTK packages

2010-04-17 Thread Laurence Rowe
On 17 April 2010 10:41, Lennart Regebro rege...@gmail.com wrote: On Sat, Apr 17, 2010 at 11:18, yuppie y.2...@wcm-solutions.de wrote: How can we make sure docs and code don't get out of sync? Do we have to run unittests *and* build the docs before each checkin? Will someone make sure buildbots

Re: [Zope-dev] Possible DateTime timezone-related regression in Zope 2.12

2010-01-10 Thread Laurence Rowe
2010/1/10 zopyxfil...@gmail.com: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Aspeli wrote: Wichert Akkerman wrote: On 2010-1-10 04:36, Martin Aspeli wrote: so in your test, `DateTime(md.CreationDate())` will always be the current time, but with an implicitly added 'GMT+0' while

Re: [Zope-dev] shrinking the ZTK: a proposed solution

2010-01-05 Thread Laurence Rowe
2010/1/5 Hermann Himmelbauer du...@qwer.tk: Am Dienstag 05 Januar 2010 14:37:51 schrieb Martijn Faassen: Hermann Himmelbauer wrote: Am Dienstag 05 Januar 2010 11:58:38 schrieb Martijn Faassen: Hermann Himmelbauer wrote: But I have to further state that I'm locked into Zope 3.4.0 as the

Re: [Zope-dev] Where best to intercept a request to send a 304 response in Zope 2

2010-01-05 Thread Laurence Rowe
2009/12/31 Martin Aspeli optilude+li...@gmail.com: Hi, A few of us are playing with some caching tools, trying to get to a more sane and less monkey patch-laden approach than CacheFu (Products.CacheSetup), for use with Zope 2.12. It is relatively easy to set response headers, e.g. in an

Re: [Zope-dev] zope.filerepresentation

2009-10-01 Thread Laurence Rowe
2009/10/1 Martin Aspeli optilude+li...@gmail.com: Hanno Schlichting wrote: The standard file implementation has no knowledge of its size, as this is sometimes impossible to get, when dealing with stream based file-like objects. Do we really need to have files to know their size? Well, for

Re: [Zope-dev] z3c.saconfig engine creation configuration

2009-06-24 Thread Laurence Rowe
Malthe Borch wrote: On MySQL, it's necessary to supply to ``pool_recycle`` parameter on engine creation, else the connection dies after some timeout and the pool is unable to hand out a session. The result of this is that the first request fails whenever the connection has been dropped.

Re: [Zope-dev] [Checkins] SVN: zope.traversing/trunk/src/zope/traversing/ Moved the publicationtraverse module from zope.app.publication and added tests.

2009-06-21 Thread Laurence Rowe
Jim Fulton wrote: I don't agree. The semantics are different. For example, you often want to traverse to things in a template that you don't want to expose via URL. We currently (or last time I checked) expose ++resource+ +name in URLs and this is a bug. What use is a resource without

Re: [Zope-dev] Why does restrictedTraverse() in Zope 2 not respect IPublishTraverse adapters?

2009-05-14 Thread Laurence Rowe
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Aspeli wrote: There's currently a funny inconsistency in Zope's Traversable class. If you have a URL like http://localhost:8080/path/to/@@aview/foo, and @@aview implements IPublishTraverse (and, I presume, if

Re: [Zope-dev] Using views for exceptions in Zope 2.12?

2009-05-10 Thread Laurence Rowe
Sidnei da Silva wrote: On Sat, May 9, 2009 at 12:52 PM, Chris Withers ch...@simplistix.co.uk wrote: Hmm, so I would I register different views for a KeyError versus an AttributeError? I believe you need to make KeyError implement an interface to be able to register a view for it. What use

Re: [Zope-dev] Proposal: set __parent__ and __name__ in Zope 2.12 OFS

2009-04-28 Thread Laurence Rowe
2009/4/27 Chris McDonough chr...@plope.com: On 4/27/09 3:27 PM, Laurence Rowe wrote: Martin Aspeli wrote: Laurence Rowe wrote: Martin Aspeli wrote: Hi, First - a quick question: can we treat __name__ and id/getId()/_setId() as the same, always? OFS.SimpleItem has some support

Re: [Zope-dev] Proposal: set __parent__ and __name__ in Zope 2.12 OFS

2009-04-27 Thread Laurence Rowe
Martin Aspeli wrote: Hi, First - a quick question: can we treat __name__ and id/getId()/_setId() as the same, always? OFS.SimpleItem has some support for letting id and name be the same, but the link is lost once both __name__ and id are set. Why isn't __name__ just a property that

Re: [Zope-dev] Proposal: set __parent__ and __name__ in Zope 2.12 OFS

2009-04-27 Thread Laurence Rowe
Martin Aspeli wrote: Laurence Rowe wrote: Martin Aspeli wrote: Hi, First - a quick question: can we treat __name__ and id/getId()/_setId() as the same, always? OFS.SimpleItem has some support for letting id and name be the same, but the link is lost once both __name__ and id are set

[Zope-dev] Adding docs.zope.org/zodb

2009-04-25 Thread Laurence Rowe
Hi, I've added the ZODB developers guide to the zope2docs buildout (converting it to rst) and added another article and some more links to the zodb articles section, but ideally these should live in their own directory. What do I need to do to make this happen? Laurence

Re: [Zope-dev] Zope Source Code Repository

2009-04-06 Thread Laurence Rowe
2009/4/6 Chris Withers ch...@simplistix.co.uk: Laurence Rowe wrote: Previously Marius Gedminas wrote: BTW I've yet to see a firewall that blocks SSH.  Am I lucky? Yes. Blocking ssh is very common in larger companies in me experience. An ssh server running on port 443 (HTTPS) can come

Re: [Zope-dev] Zope Source Code Repository

2009-04-04 Thread Laurence Rowe
Wichert Akkerman wrote: Previously Marius Gedminas wrote: BTW I've yet to see a firewall that blocks SSH. Am I lucky? Yes. Blocking ssh is very common in larger companies in me experience. An ssh server running on port 443 (HTTPS) can come in very handy. ssh -D gives you a socks proxy,

Re: [Zope-dev] setup.py extra dependencies

2009-03-05 Thread Laurence Rowe
Gary Poster wrote: On Mar 5, 2009, at 1:43 PM, Martijn Faassen wrote: Hi there, I know opinions are divergent about 'extra' dependencies in setup.py. These ar dependencies that effectively make a single project with a single dependency structure into a number of virtual packages that each

Re: [Zope-dev] Plans for Zope 2.12

2009-01-25 Thread Laurence Rowe
Andreas Jung wrote: - complete eggification (apparently pretty much done) We have to define what eggification means exactly. By now the Zope2.buildout seems to work fine with Python 2.4-2.6. I think we want to see Zope2 being easy_install-able. This means basically: - a source code

  1   2   >