[Zope-dev] http://collector.zope.org/Zope/1347 - Zeo help

2004-05-22 Thread Laurence
the output from gdb on the collector. I've been searching all day and hopefully someone can point me in the right direction. http://collector.zope.org/Zope/1347 Any ideas? Thanks, Laurence ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org

[Zope-dev] Re: SiteRoot and VHM

2005-04-07 Thread Laurence Rowe
apache and lose some flexibility. Laurence Florent Guillaume wrote: After spending an hour helping someone debug a site that had an hidden SiteRoot somewhere that prevented a virtual host monster from working, it was suggested to me that if there's a virtual host monster, it should take precedence

[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
. My notes here may be helpful too http://zopelabs.com/cookbook/1114086617 Hope that helps, Laurence Yair Benita wrote: Hi All, As my ZODB data files become larger and larger I am looking at ways to make the structure of my objects more efficient. To simplify my question, suppose I have two

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

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

2007-04-24 Thread Laurence Rowe
seem to lead to yet another attempt at dynamic schema generation whilst breaking compatibility with ZClasses. Laurence Christopher Lozinski wrote: For those who have not been following this thread, here is the proposal. http://wiki.zope.org/zope2/ZClassesNG I will go ahead and change the name

[Zope-dev] WSGIPublisher and Five

2007-05-20 Thread Laurence Rowe
to Zope output using WSGI you'd make my day. Laurence Index: Test.py === --- Test.py (revision 75846) +++ Test.py (working copy) @@ -92,6 +92,7 @@ $Id$ ''' +#' W 2 __version__='$Revision: 1.41 $'[11:-2

[Zope-dev] Re: many conflict errors

2007-05-29 Thread Laurence Rowe
some stuff on finding the path of an object http://plone.org/documentation/how-to/debug-zodb-bloat/ and http://www.zopelabs.com/cookbook/1114086617 The scripts need to be updated for recent ZODBs (change one import I think). Laurence ___ Zope-Dev

[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
with set and frozenset which are now built in. Laurence ___ 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

[Zope-dev] request.locale

2007-09-06 Thread Laurence Rowe
think it would be desirable to include such functionality in Zope 2. If there is support for this, where should it go? ZPublisher.HTTPRequst or somewhere in Five seem like prime candidates. Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org http

[Zope-dev] Re: More resilient indexes

2007-09-19 Thread Laurence Rowe
concurrent indexing? Would concurrently updating the metadata records (there is an option in QueueCatalog for this) be sufficient? Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross

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

2007-09-26 Thread Laurence Rowe
objects * add an asdatetime method which will return a datetime object (avoiding any issues with floating point conversions). If there is support for this I will supply a patch. Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org

[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

[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
. The only place I've run into problems using unicode names is in the ZCatalog (or maybe CatalogTool) where there is a test that a name isinstance str. Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev

[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
should not break as only the timezone name (the _tz attribute) is stored on the pickle. The old _timezone class, _zmap and _zlst are moved to tests/legacy.py so that they may be used in the compatibility test. DateTimeZone.py is no longer used except for compatibility tests. Laurence

[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
, either revert the change or fix it. Andreas 'Fixed' in r81213. Laurence ___ 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

[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
and transaction management then we should probably push for it to be included as a sqlalchemy extension module. Laurence Martin Aspeli wrote: Martijn Faassen wrote: Hi there, [I originally picked this up on a thread on zope3-users, but this deserves its own thread here] There are at least three

[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
it to run unit tests and for developers that just need to adjust the styling and such. The production environment will run against Oracle. The elro-tpc branch (which, I was told, is the future) doesn't appear to work with sqlite out of the box. I think this is a temporary bug, as Laurence pointed out

[Zope-dev] zope.sqlalchemy

2008-05-05 Thread Laurence Rowe
. Laurence ___ 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-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
The code would get a session through: Session = getUtility(IScopedSession, 'my-app') session = Session() Mappers are registered with the metadata, so nothing special need be done here. Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org http

[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
thread.get_ident(), id(zope.component.getSiteManager()) Laurence ___ 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

[Zope-dev] Re: zope.sqlalchemy

2008-05-07 Thread Laurence Rowe
. Laurence ___ 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 )

[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
would be somewhat similar to collective.lead currently (registering one as a local utility). Laurence Martijn Faassen wrote: Hi there, Today I had a discussion with Jasper Spaans about how to go about improving megrok.rdb, Grok's relational database integration which aims to integrate Grok

[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
support for this use case. It should mean that zope.sqlalchemy no longer has to do session.clear() on a savepoint rollback. Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

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

2008-06-03 Thread Laurence Rowe
solution is to register the Session object as a global utility. Laurence ___ 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

[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
= getUtility(ISessionContext, name=sitename)() Also sqlalchemy.orm.session.object_session can be used to return the session of a currently mapped object. You could register it as an adapter for ISession too, and then ISession(context) should return the session wherever you need it. Laurence 2008/6/3

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

2008-06-04 Thread Laurence Rowe
() Laurence ___ 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 )

[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
): # we use the application name as the unique id. Can we use # something more clever and universally working? return self.__parent__.__name__ [snip] [snip] As Laurence has suggested, the session persists, so IDatabase.configuration will only be called once per thread. Not sure

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
about what patterns we promote and how it fits with the rest of our story. I don't think scoped sessions really map well to a utility: session = getUtility(ISession)() is just too ugly. Better to stick with Session() or ISession(context) Laurence

[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
/sqlalchemy-0.5-support I'd like to merge the branch to the trunk as soon as possible, but I need Laurence's go first. Laurence, any chance we'll be doing a release for 0.4* from the trunk? Or we could delegate that work to a I've made the branch backwards compatible with 0.4 and merged

[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
was accessed. SQLAlchemy 0.4.7 or 0.5beta3 now required. Other than that nothing really changed since 0.2, you should be able to just use that. Laurence David Pratt wrote: Hi. I have been working with z3c.dobbin 0.4.1 which uses zope.sqlalchemy and z3c.saconfig. The last usable state was 4 days

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

2008-08-31 Thread Laurence Rowe
or explicitly flush. Laurence ___ 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

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

2008-08-31 Thread Laurence Rowe
a problem. Laurence ___ 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

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
not suffer from the same problem. Laurence ___ 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

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

2008-11-02 Thread Laurence Rowe
is a separate item in the queue and ensure your queue processor can retry failures. Laurence 2008/11/2 Hermann Himmelbauer [EMAIL PROTECTED]: Hi, In one of my Zope3 projects, I use lovely.remotetask to run specific tasks in background. These tasks do lengthy database operations via zope.sqlalchemy

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

2008-11-10 Thread Laurence Rowe
itself only one load would be required for each object. If this same keyreference were used in the indexes of the catalog instead of rowids then result sets could be merged. The downside is that the set intersections would require double the memory of the current 32 bit ids. Laurence

Re: [Zope-dev] zope.globalrequest?

2009-01-18 Thread Laurence Rowe
access to the request without explicitly including it in its method signature. If they choose to use it from a model, it's their foot and they are free to shoot it if they wish. Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org

Re: [Zope-dev] zope.globalrequest?

2009-01-18 Thread Laurence Rowe
, it is a different pattern to the one used by pure zope 3 right now, but it is a pattern that would have allowed the transition of CMF tools to utilities. The perfect is the enemy of the good. - Voltaire Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org

Re: [Zope-dev] ZODB change notifications

2009-01-20 Thread Laurence Rowe
the value of the attribute that I'm interested in but I am wondering if there is a more elegant and efficient way of doing this. Any ideas? Perhaps try hooking into the ZEO cache invalidation mechanism. Laurence ___ Zope-Dev maillist - Zope-Dev

Re: [Zope-dev] Plans for Zope 2.12

2009-01-25 Thread Laurence Rowe
the trunk setup.py instal_requires include: 'SQLAlchemy=0.5.0beta3dev-r4954', or 'SQLAlchemy=0.4.7dev', Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related

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

2009-03-05 Thread Laurence Rowe
, but only downloaded to the project's setup directory if they're not already installed locally. http://peak.telecommunity.com/DevCenter/setuptools I've seen this used at least here: http://svn.supervisord.org/supervisor/trunk/setup.py Laurence ___ Zope

Re: [Zope-dev] Zope Source Code Repository

2009-04-04 Thread Laurence Rowe
, tsocks makes using this transparent (e.g. tsocks bin/buildout). Failing that, 3G modems are quite reasonable nowdays. Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding

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
, __setitem__ and so on. We have code for all three of these in plone.folder which could be pushed down to OFS an BTreeFolder2 quite easily. +1 Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev

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
would be a view for KeyError anyway. *wink* It's perfectly possible to register a view for a class instead of an interface. (Not that I am familiar with the new views for errors stuff). Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org http

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

2009-05-14 Thread Laurence Rowe
__init__(self, context, request): ... self.context, self.request = context, request ... def __getitem__(self, key): ... return int(key) ... smgr.registerAdapter(Foo, (None, IRequest), IBrowserView, name='foo') app.unrestrictedTraverse('@@foo/12345') 12345 Laurence

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
being URL accessible? It's used fairly often in Plone products to expose static css / js / images. Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists

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

2009-06-24 Thread Laurence Rowe
of None and only supply the parameter if the config option is set. Laurence ___ 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

Re: [Zope-dev] zope.filerepresentation

2009-10-01 Thread Laurence Rowe
() # position in file. Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org

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

2010-01-05 Thread Laurence Rowe
://mail.zope.org/pipermail/zodb-dev/2009-December/013084.html Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo

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

2010-01-05 Thread Laurence Rowe
think this is analogous to 404 Not Found errors. It should be possible to handle them with the combination of: * raise a NotModified exception in an IPubAfterTraversal handler * in a NotModified exception view, setStatus 304 Not Modified an return an empty string. Laurence

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

2010-01-10 Thread Laurence Rowe
whether this was an intended change or not, and if so, how to deal with the breakage in a way that's compatible with 2.10 and 2.12. I blame Laurence. :-p Better blame DateTime :-) Fixing one issue in DateTime is likely to trigger another new bug. The DateTime is just fragile. I believe

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

2010-04-17 Thread Laurence Rowe
you know to update the docs. repoze.bfg seemed to make an attempt at this, though it is currently disabled. http://svn.repoze.org/repoze.bfg/trunk/repoze/bfg/tests/test_docs.py Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org

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

2010-06-08 Thread Laurence Rowe
would lead to a critical error and inconsistent state between the transactional resources. Laurence Laurence. ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related

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
, the error is caught, logged, and then it continues. Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo

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
. Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo

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
= the current tid of the connection. Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https

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
problem that Zope 2.12 is incompatible with zope.sendmail 3.7.x / trunk due to a zope.component 3.8 dependency. I think this issue is serious enough to warrant backporting this fix to the zope.sendmail 3.6.x branch. Patches attached for comment. Laurence aftercommit.diff Description: Binary data

[Zope-dev] zope.sqlalchemy 0.6 release

2010-07-24 Thread Laurence Rowe
``transaction_manager`` attribute to data managers for compliance with IDataManager interface. Release available from http://pypi.python.org/pypi/zope.sqlalchemy Laurence ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev

  1   2   >