[Zope-dev] Re: SiteRoot and VHM

2005-04-07 Thread Laurence Rowe
-1 for removing it. I think it's a cool feature :-) I like the ability to use a 'blank' SiteRoot (one with a blank base and path) in conjunction with an access rule to set request variables when I access my site in through a particular point (eg set the plone_skin variable when I access my site

[Zope-dev] Re: SiteRoot and VHM

2005-04-07 Thread Laurence Rowe
Paul Winkler wrote: On Thu, Apr 07, 2005 at 12:55:09PM +0100, Laurence Rowe wrote: -1 for removing it. I think it's a cool feature :-) I like the ability to use a 'blank' SiteRoot (one with a blank base and path) in conjunction with an access rule to set request variables when I access my site

[Zope-dev] Re: ZOBD and pointers

2005-06-20 Thread Laurence Rowe
As far as I am aware, ZODB will store a list of pointers to the lists of z objects. What you should be careful of for efficient use of ZODB is that your list is stored in an efficient way, well if the list is updated often or long anyway. When you pack your ZODB does it take up a lot less

[Zope-dev] Re: url with space %20 on end fails

2006-05-12 Thread Laurence Rowe
See http://www.zope.org/Collectors/Zope/1991 Should be resolved in 2.8 and 2.9 Laurence On Fri, 12 May 2006 15:07:00 +0100, Erik Dahl [EMAIL PROTECTED] wrote: I have an object that has a space at the end of its id (I know this is bogus but I guess its a valid id). its url is:

[Zope-dev] Re: ZClassNG proposal makes Archetypes Easy.

2007-04-24 Thread Laurence Rowe
I actually think TTW schema generation has some validity (so content types can be easily generated by users). Restricted Python (in python scripts) just kind of sucks though for being almost python but a little different. You could keep python code on the filesystem seperate and just write

[Zope-dev] WSGIPublisher and Five

2007-05-20 Thread Laurence Rowe
I'm trying to work out how to use WSGI with Zope, as I believe that this is the way to attach a filter to Zope output. However the seem to be some issues with Zope 2.10.3. Setting use-wsgi on in zope.conf seems to break Five. The interfaces tab is no longer visible in the ZMI and Plone stops

[Zope-dev] Re: many conflict errors

2007-05-29 Thread Laurence Rowe
Perry wrote: Tres Seaver schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 -- 2007-05-25T10:19:01 ERROR Zope.SiteErrorLog http://uniben.waeup.org/campus/students/C172676/study_course/create_level Traceback (innermost last): Module Zope2.App.startup, line 173, in

[Zope-dev] Re: compiling intSet.c on Zope 2.8.8

2007-08-10 Thread Laurence Rowe
Chris Withers wrote: Laurence Rowe wrote: This is just an idea, but zeo is backwards compatible right? So perhaps you could connect a 2.7 client to a 2.8 zeo server and as long as you know the oids of the intSets you should be able to load them and do your conversion. An interesting idea

[Zope-dev] Re: compiling intSet.c on Zope 2.8.8

2007-08-10 Thread Laurence Rowe
This is just an idea, but zeo is backwards compatible right? So perhaps you could connect a 2.7 client to a 2.8 zeo server and as long as you know the oids of the intSets you should be able to load them and do your conversion. Laurence Chris Withers wrote: Dieter Maurer wrote: The reason

[Zope-dev] Re: compiling intSet.c on Zope 2.8.8

2007-08-12 Thread Laurence Rowe
Dieter Maurer wrote: Laurence Rowe wrote at 2007-8-10 15:34 +0100: ... Assuming that the 2.7 client won't be able to read 2.8 BTrees A 2.7 client is able to read *and* write BTrees. BTrees already exist for a very long time; even very old Zope versions can read and write them. I know

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-28 Thread Laurence Rowe
Philipp von Weitershausen wrote: snip / I believe that datetime is not even importable in TTW code and datetime objects not accessible in TTW code -- at least, they have not been until recently... allow_module('datetime') is all you had to do. Ok, admittedly, pure-TTW developers who can't or

[Zope-dev] request.locale

2007-09-06 Thread Laurence Rowe
Quite a lot of zope3 code (zc.datetimewidget for instance) expects to be able to access request.locale. ZPublisher does not provide this and to get around the limitation you must manually set request.locale in your view using Products.CMFDefault.formlib.form.getLocale. This seems brittle. I

[Zope-dev] Re: More resilient indexes

2007-09-19 Thread Laurence Rowe
Roché Compaan wrote: snip / I use QueueCatalog often and I know how it works. But if an application requires immediate indexing then QueueCatalog is not a solution. Sorry if I was unclear but what I'm really asking is if it is possible to improve the conflict handling of the current indexes

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-09-26 Thread Laurence Rowe
Andreas Jung wrote: snip / Just for the logs: I gave up my work on an inplace DateTime migration.. too compliated, too much cruft would have to remain for backward compatibility. Let's see how we can address the issue in a reasonable way :-) To enable an evolutionary approach DateTime -

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-09-27 Thread Laurence Rowe
Dieter Maurer wrote: Laurence Rowe wrote at 2007-9-26 11:08 +0100: ... To enable an evolutionary approach DateTime - datetime conversions must be made round-tripable. This is currently difficult as DateTimes have a resolution of milliseconds and datetimes a resolution of microseconds. I

[Zope-dev] Re: Changing DateTime to use pytz

2007-10-04 Thread Laurence Rowe
I've been working on this too today (well datetime handling anyway). Please see my patch at https://bugs.launchpad.net/zope2/+bug/149060 Laurence Amos Latteier wrote: Hi, I wanted to let folks know that I've created the amos-datetime-pytz branch with my changes. Please let me know when/if

[Zope-dev] Re: Changing DateTime to use pytz

2007-10-05 Thread Laurence Rowe
Lennart Regebro wrote: On 10/5/07, Laurence Rowe [EMAIL PROTECTED] wrote: I've tested my patch (datetime.datetime support) against Amos's branch and it applies cleanly and all tests pass. Cool! Are there tests to make sure old pickles still work, or do we know that this is the case for sure

[Zope-dev] Re: Changing DateTime to use pytz

2007-10-05 Thread Laurence Rowe
. Laurence Laurence Rowe wrote: I've been working on this too today (well datetime handling anyway). Please see my patch at https://bugs.launchpad.net/zope2/+bug/149060 Laurence Amos Latteier wrote: Hi, I wanted to let folks know that I've created the amos-datetime-pytz branch with my changes

[Zope-dev] Re: Changing DateTime to use pytz

2007-10-05 Thread Laurence Rowe
Lennart Regebro wrote: On 10/5/07, Laurence Rowe [EMAIL PROTECTED] wrote: If anyone thinks it is important I could an explicit upgrade path for instances with a _millis attribute too (most current instances I would assume). I think the code must work with current instances without modifying

[Zope-dev] Re: Schedule for Zope 2.11

2007-10-17 Thread Laurence Rowe
I'd like to see the DateTime pytz work and my datetime comapatibility patch merged as well. (they work fine together). Laurence Andreas Jung wrote: Hi, any probleme with the following schedule for Zope 2.11: beta 1 - end of October RC 1 - around Dec 15th final - end of the year Since I am

[Zope-dev] Re: Schedule for Zope 2.11

2007-10-18 Thread Laurence Rowe
I've checked in my datetime.datetime conversions patch Is there any reason that the pytz import is not required? I would like to add support for conversion to timezone aware datetimes, and would like to rely on pytz being available. Laurence Amos Latteier wrote: On 10/17/07, Laurence Rowe

[Zope-dev] Re: SVN: Zope/trunk/ Moved two implements declarations from Five into the proper classes.

2007-10-23 Thread Laurence Rowe
Philipp von Weitershausen wrote: Hanno Schlichting wrote: Log message for revision 80945: Moved two implements declarations from Five into the proper classes. I object to this change. HTTPRequest does not really fulfil the IBrowserRequest interface, and ObjectManager isn't a real

[Zope-dev] Re: SVN: Zope/trunk/ Moved two implements declarations from Five into the proper classes.

2007-10-23 Thread Laurence Rowe
Lennart Regebro wrote: On 10/23/07, Laurence Rowe [EMAIL PROTECTED] wrote: Philipp von Weitershausen wrote: Hanno Schlichting wrote: Log message for revision 80945: Moved two implements declarations from Five into the proper classes. I object to this change. HTTPRequest does not really

Re: [Zope-dev] Re: SVN: Zope/trunk/ Moved two implements declarations from Five into the proper classes.

2007-10-23 Thread Laurence Rowe
On 23/10/2007, Dieter Maurer [EMAIL PROTECTED] wrote: Laurence Rowe wrote at 2007-10-23 12:00 +0100: Lennart Regebro wrote: ... I guess we need to either actually implement the relevant interfaces, or split the interfaces into something that can be implemented... Preferably not too

[Zope-dev] Moving all timezone support to use pytz in r81039

2007-10-24 Thread Laurence Rowe
* Move all timezone usage to use pytz * Add support to timezone aware datetime conversion * Correct capitalization of

[Zope-dev] Re: SVN: Zope/trunk/lib/python/DateTime/tests/testDateTime.py Fix test. According to http://en.wikipedia.org/wiki/ISO_8601

2007-10-30 Thread Laurence Rowe
Andreas Jung wrote: --On 27. Oktober 2007 18:01:25 -0400 Tres Seaver [EMAIL PROTECTED] wrote: DateTime('2006-01-01')._tz 'US/Eastern' Yeah, that's completely odd. But standards compliant. The previous behaviour was contrary to the specification. According to

[Zope-dev] Re: Sessions, ConflictError and emails

2008-02-19 Thread Laurence Rowe
See the discussion on plone-dev a while ago, link integrity checking will make Plone 3.0 broken and dangerous. Worth trying with 2.9.8 at least. Laurence --On 18. August 2007 21:03:43 +0200 Andreas Jung [EMAIL PROTECTED] wrote: --On 23. Juli 2007 08:53:32 +0200 Wichert Akkerman [EMAIL

[Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-09 Thread Laurence Rowe
approaches to SQLAlchemy integration with Zope: * z3c.zalchemy (Christian Theune) * z3c.sqlalchemy (Andreas Jung) * collective.lead (Laurence Rowe) All of these are in various states of brokenness. z3c.zalchemy doesn't work with SQLAlchemy trunk. collective.lead works with it, but only if you

[Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-10 Thread Laurence Rowe
Martin Aspeli wrote: Laurence Rowe wrote: Should one phase commit be set as the default to make it easier to work with sqlite (and mssql)? Probably yes. Ideally we'd guess based on the URL scheme but allow it to be set explicitly, IMHO. Single phase would be the fallback, I guess. I don't

[Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-10 Thread Laurence Rowe
Martin Aspeli wrote: Martijn Faassen wrote: Martijn Pieters wrote: On Tue, Apr 8, 2008 at 11:54 PM, Martijn Faassen [EMAIL PROTECTED] wrote: All of these are in various states of brokenness. z3c.zalchemy doesn't work with SQLAlchemy trunk. collective.lead works with it, but only if you

[Zope-dev] zope.sqlalchemy

2008-05-05 Thread Laurence Rowe
Following discussions with Kapil, Christian and Martin I've developed zope.sqlalchemy. The aim is to provide a common base for transaction integration. It does not attempt to define any particular way to handle database configuration as there is not yet consensus on the best way to handle it.

[Zope-dev] Re: zope.sqlalchemy

2008-05-06 Thread Laurence Rowe
Martijn Faassen wrote: Hey, Laurence Rowe wrote: See pypi or the readme for details, but briefly usage is something like: engine = create_engine('sqlite:///') Session = scoped_session(sessionmaker( ... bind=engine, transactional=True, autoflush=True, ... extension

[Zope-dev] Re: zope.sqlalchemy

2008-05-07 Thread Laurence Rowe
Martijn Faassen wrote: Hi there (especially Christian), I think we can work with explicits saves. In many cases the user won't have to worry about it anyway as the container object will do it for them (besides making the relation), or this 'query container' we spoke of will do it for them

[Zope-dev] Re: zope.sqlalchemy

2008-05-07 Thread Laurence Rowe
Martijn Faassen wrote: Hi there, Laurence Rowe wrote: [snip] The code would get a session through: Session = getUtility(IScopedSession, 'my-app') session = Session() The drawback is that this is more typing. You do a utility lookup and an instantiation as opposed to simply importing

[Zope-dev] Re: zope.sqlalchemy

2008-05-07 Thread Laurence Rowe
Michael Bayer wrote: On May 7, 2008, at 7:08 AM, Martijn Faassen wrote: Hi there (especially Christian), I think we can work with explicits saves. In many cases the user won't have to worry about it anyway as the container object will do it for them (besides making the relation), or this

[Zope-dev] Re: zope.sqlalchemy

2008-05-07 Thread Laurence Rowe
Michael Bayer wrote: So I will ask you, why can't your application simply have a SalesAddress and an EngineeringAddress class ? You could even produce them transparently using a custom __new__() method, i.e. class Address(object): def __new__(cls, *args, **kwargs): if

[Zope-dev] Re: zope.sqlalchemy

2008-05-07 Thread Laurence Rowe
Laurence Rowe wrote: Martijn Faassen wrote: Hey Laurence, Laurence Rowe wrote: [snip] We'll have to stick with scoped sesssions because of threading, but the engine as local utility pattern should still work. #myapplication/__init__.py Session = scoped_session(sessionmaker(bind

[Zope-dev] Re: zope.sqlalchemy

2008-05-09 Thread Laurence Rowe
You need an svn checkout of SQLAlchemy until 0.4.6 is released. Laurence Andreas Jung wrote: --On 6. Mai 2008 06:01:14 +0200 Andreas Jung [EMAIL PROTECTED] wrote: --On 6. Mai 2008 02:26:58 +0100 Laurence Rowe [EMAIL PROTECTED] wrote: Following discussions with Kapil, Christian

[Zope-dev] Re: zope.sqlalchemy, integration ideas

2008-05-23 Thread Laurence Rowe
We need to differentiate between the interface for session configuration and session usage from an application. For session usage I think it is fairly simple. We should define an ISessionContext interface such that: class ISessionContext(Interface): def __call__(): return a

[Zope-dev] Re: zope.sqlalchemy, integration ideas

2008-05-24 Thread Laurence Rowe
Brian Sutherland wrote: On Fri, May 23, 2008 at 11:39:39PM +0100, Laurence Rowe wrote: We need to differentiate between the interface for session configuration and session usage from an application. For session usage I think it is fairly simple. We should define an ISessionContext interface

[Zope-dev] Re: zope.sqlalchemy, integration ideas

2008-05-25 Thread Laurence Rowe
Brian Sutherland wrote: On Sat, May 24, 2008 at 09:30:18PM +0100, Laurence Rowe wrote: Brian Sutherland wrote: On Fri, May 23, 2008 at 11:39:39PM +0100, Laurence Rowe wrote: We need to differentiate between the interface for session configuration and session usage from an application

[Zope-dev] Re: zope.sqlalchemy, integration ideas

2008-05-28 Thread Laurence Rowe
Martijn Faassen wrote: Laurence Rowe wrote: We need to differentiate between the interface for session configuration and session usage from an application. Session configuration? I'm talking about engine configuration. A session doesn't need to be configured, except with a session, I think

[Zope-dev] Re: zope.sqlalchemy, integration ideas

2008-05-29 Thread Laurence Rowe
Martijn Faassen wrote: Laurence Rowe wrote: Martijn Faassen wrote: [snip] Before we talk more about session configuration, please explain why we're not talking about engine configuration. :) Engine configuration is a subset of session configuration. You cannot have a single ScopedSession

[Zope-dev] Re: Zope3 on Google AppEngine

2008-05-30 Thread Laurence Rowe
Hermann Himmelbauer wrote: Am Sonntag, 25. Mai 2008 13:32 schrieb Andreas Jung: --On 24. Mai 2008 15:44:01 +0200 Hermann Himmelbauer [EMAIL PROTECTED] wrote: I currently use SQLAlchemy, but it seems that transactions are managed on the RDB-level only, which means that the object state is

[Zope-dev] Re: Strange serializing error when commiting - zope.sqlalchemy

2008-06-03 Thread Laurence Rowe
Hermann Himmelbauer wrote: Am Montag, 2. Juni 2008 20:04 schrieb Hermann Himmelbauer: Hi, In my zope3 tests, I set up some basic test data. After that, I'm calling transaction.commit(). However, I get the following traceback: --- snip --- File copy_reg.py, line

[Zope-dev] Re: Strange serializing error when commiting - zope.sqlalchemy

2008-06-03 Thread Laurence Rowe
Laurence Rowe wrote: Hermann Himmelbauer wrote: Am Montag, 2. Juni 2008 20:04 schrieb Hermann Himmelbauer: Hi, In my zope3 tests, I set up some basic test data. After that, I'm calling transaction.commit(). However, I get the following traceback: --- snip

Re: [Zope-dev] Re: Strange serializing error when commiting - zope.sqlalchemy

2008-06-03 Thread Laurence Rowe
Hermann Himmelbauer [EMAIL PROTECTED]: Am Dienstag, 3. Juni 2008 12:21 schrieb Laurence Rowe: Laurence Rowe wrote: I found it by myself: I registered a zope.sqlalchemy related utility, which stores an engine (self.engine = create_engine(DSN,...)) and a scoped session (self.Session

[Zope-dev] Re: SQLAlchemy (zope.sqlalchemy) integration

2008-06-04 Thread Laurence Rowe
Hermann Himmelbauer wrote: Hi, Regarding to the discussion some days ago with the SQLAlchemy Zope3 integration, I still have problems with retrieving the session. I currently use a utility for the engine, which seems to work well. However, for retrieving the session, I tried to use the

[Zope-dev] Re: SQLAlchemy (zope.sqlalchemy) integration

2008-06-05 Thread Laurence Rowe
Hermann Himmelbauer wrote: Am Mittwoch, 4. Juni 2008 22:09 schrieb Laurence Rowe: Hermann Himmelbauer wrote: In my application, I then use getSASession() to retrieve my session. However, what I think is not that beautiful is the s.bind = engine part. Are there any suggestions how to improve

[Zope-dev] Re: SQLAlchemy (zope.sqlalchemy) integration

2008-06-06 Thread Laurence Rowe
Hermann Himmelbauer wrote: Am Donnerstag, 5. Juni 2008 19:38 schrieb Laurence Rowe: Hermann Himmelbauer wrote: Am Mittwoch, 4. Juni 2008 22:09 schrieb Laurence Rowe: Hermann Himmelbauer wrote: In my application, I then use getSASession() to retrieve my session. However, what I think

[Zope-dev] Re: SQLAlchemy integration experiment

2008-06-16 Thread Laurence Rowe
they'd get created at the right time. It might also be possible to simply implement the engine method on IDatabase to create the engine when called the first time, and then cache it in a volatile property. I think this is something Laurence Rowe has been talking about. I'm not sure whether it's

[Zope-dev] Re: SQLAlchemy integration experiment

2008-06-17 Thread Laurence Rowe
Martijn Faassen wrote: Hi there, On Tue, Jun 17, 2008 at 2:30 PM, Brian Sutherland [EMAIL PROTECTED] wrote: [snip] Just commenting that IDatabase.engine is not used by any code external to the Database object. There's no use case for it to be public. While I am not sure we have a strong use

Re: [Zope-dev] Re: SQLAlchemy integration experiment

2008-06-17 Thread Laurence Rowe
2008/6/17 Michael Bayer [EMAIL PROTECTED]: On Jun 17, 2008, at 10:09 AM, Laurence Rowe wrote: I'm not sure connection pooling is really useful in a threaded environment with recycled sessions. You want n threads = n connections. If we started creating new sessions each request then things

[Zope-dev] Re: SQLAlchemy integration experiment

2008-06-17 Thread Laurence Rowe
Martin Aspeli wrote: Martijn Faassen wrote: Martin Aspeli wrote: Brian Sutherland wrote: [snip] For some reason this raises a warning bell in my head. I keep on thinking: this is zope, the session is a classic case for a utility, we should be getting it in views by an interface. FWIW, I had

[Zope-dev] Re: [ZODB-Dev] Re: Advice on ZODB with large datasets

2008-06-19 Thread Laurence Rowe
`records` by ZODB. Other objects do not have a _p_oid attribute and have to be saved as part of their parent record. Laurence 2008/6/19 [EMAIL PROTECTED]: Laurence Rowe wrote: [EMAIL PROTECTED] wrote: Does your record class inherit from persistent.Persistent? 650k integers + object pointers should

[Zope-dev] Re: [ZODB-Dev] Re: Advice on ZODB with large datasets

2008-06-19 Thread Laurence Rowe
Sorry, wrong list. ___ 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

[Zope-dev] Re: made zope.sqlalchemy work with SA 0.5beta1

2008-06-19 Thread Laurence Rowe
Martijn Faassen wrote: Hi there, I've made zope.sqlalchemy work with SQLAlchemy 0.5 beta 1, recently released. This involved: * the 'transactional=True' argument has become 'autocommit=False' * various accesses that the tests were doing to get query.table and such didn't work anymore. I

[Zope-dev] Re: could zope.sqlalchemy flush before committing?

2008-07-19 Thread Laurence Rowe
Michael Bayer wrote: On Jul 19, 2008, at 10:29 AM, Brandon Craig Rhodes wrote: Laurence Rowe [EMAIL PROTECTED] writes: This is now fixed in trunk. For the moment I'm depending on SQLAlchemy trunk for the new after_attach hook until beta3 is released. Could the fix be backported and a new

[Zope-dev] Re: zope.sqlalchemy dependencies does not respect setup.py dev egg

2008-08-04 Thread Laurence Rowe
zope.sqlalchemy specifically requires a SessionExtension hook added in 0.4.7 and 0.5.0b3 to fix a bug that came to light in porting dobbin over to use it: New objects added to a session did not cause a transaction join, so were not committed at the end of the transaction unless the database was

Re: [Zope-dev] Possible bug in zope.sqlalchemy - missing commit()

2008-08-31 Thread Laurence Rowe
Hermann Himmelbauer wrote: Hi, I'm experiencing some possible bug with sqlalchemy here: - I query for some data - Update some data - Make no flush (autoflush is set to False) Then no commit is issued, hence my data is not updated in the database. At least, I looked at the function

Re: [Zope-dev] weird release of transaction module

2008-08-31 Thread Laurence Rowe
Hanno Schlichting wrote: Martijn Faassen wrote: I just looked at the PyPI page of 'transaction': http://pypi.python.org/pypi/transaction And I see some weirdnesses: * it's called 'transaction 1.0a1' * the 'changes' claim however: 1.0 (unreleased) What's up? Clearly something went

Re: [Zope-dev] zope.sqlalchemy locks up transaction

2008-09-17 Thread Laurence Rowe
Brian Sutherland wrote: On Tue, Sep 16, 2008 at 02:01:07PM +0100, Laurence Rowe wrote: Brian Sutherland wrote: Hi, I've recently seen a situation where zope.sqlalchemy locked up the transaction machinery. I'm not sure exactly what happened, but have attached a failing test for at least one

Re: [Zope-dev] zope.sqlalchemy locks up transaction

2008-09-19 Thread Laurence Rowe
2008/9/19 Hermann Himmelbauer [EMAIL PROTECTED]: Am Donnerstag 18 September 2008 07:08:56 schrieb Dieter Maurer: Brian Sutherland wrote at 2008-9-17 12:33 +0200: On Tue, Sep 16, 2008 at 02:01:07PM +0100, Laurence Rowe wrote: Brian Sutherland wrote: Hi, I've recently seen a situation

Re: [Zope-dev] zope.sqlalchemy locks up transaction

2008-09-19 Thread Laurence Rowe
2008/9/19 Laurence Rowe [EMAIL PROTECTED]: 2008/9/19 Hermann Himmelbauer [EMAIL PROTECTED]: Am Donnerstag 18 September 2008 07:08:56 schrieb Dieter Maurer: Brian Sutherland wrote at 2008-9-17 12:33 +0200: On Tue, Sep 16, 2008 at 02:01:07PM +0100, Laurence Rowe wrote: Brian Sutherland wrote

Re: [Zope-dev] ZopePublication Competing writes/reads

2008-10-21 Thread Laurence Rowe
Hermann Himmelbauer wrote: Hi, Just by chance, I pressed the reload button of my browser for quite some time, so that my Zope3-based site was reloaded over and over. I was surprised to find the following in the logs: 2008-10-20T18:45:15 WARNING ZopePublication Competing writes/reads

Re: [Zope-dev] zope.sqlalchemy: Decoupling Zope3 and SQLAlchemy commit - how? Should I?

2008-11-02 Thread Laurence Rowe
This depends on whether you have other resources involved in the transaction or not. I would assume that you will only have the sql database committing in the transaction, in which case it makes not a blind bit of difference if you commit separately or not - just make sure each individual task is

Re: [Zope-dev] catalog performance: query plan

2008-11-10 Thread Laurence Rowe
Lennart Regebro wrote: On Sun, Nov 9, 2008 at 19:58, Roché Compaan [EMAIL PROTECTED] wrote: Since I'm in full agreement that we need to fix indexes that are problematic, I started doing some benchmarks on the large data set that gave us so many headaches. It is probably not surprising that the

Re: [Zope-dev] zope.globalrequest?

2009-01-18 Thread Laurence Rowe
Roger Ineichen wrote: just a sample; In my point of view an application like a wiki or forum etc. should get developed as a python application without to require a global request because it's just a (MVC) model part. There should never be a request involved. If such a wiki needs a last

Re: [Zope-dev] zope.globalrequest?

2009-01-18 Thread Laurence Rowe
Roger Ineichen wrote: The most convincing reason for me to persevere with the current pattern of views is that it offers the possibility of adaption on the request. This is something that repoze.bfg is exploring and I think could be helpful, for instance registering separate views on

Re: [Zope-dev] ZODB change notifications

2009-01-20 Thread Laurence Rowe
Rowan Woodhouse wrote: Hi, I've got two clients accessing the same object at the same time (one is Zope and the other is a worker interfacing to another system). In the worker client I need to detect a change to the value of an attribute made by the Zope client. I can do this by polling

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

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

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

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

[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

[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

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

  1   2   >