[Zope-dev] Re: [zope.testing.doctest] a nasty surprise

2008-04-11 Thread Balazs Ree
On Thu, 10 Apr 2008 11:50:35 -0400, Benji York wrote: Dieter Maurer wrote: As the community (apparently) strongly favors doctest over unittest, I wrote my first test based on zope.testing.doctest. And promptly, I was badly surprised In order to analyse a difficult problem, I added from

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

2008-04-11 Thread Martin Aspeli
Martijn Faassen wrote: Andreas Jung wrote: --On 10. April 2008 19:10:49 +0200 Brian Sutherland [EMAIL PROTECTED] wrote: Just adding my few requirements: - Integration into the component architecture in such a way that I can specify the db connection parameters in ZCML and that

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

2008-04-11 Thread Brian Sutherland
On Fri, Apr 11, 2008 at 05:07:56AM +0200, Andreas Jung wrote: --On 10. April 2008 21:29:43 +0200 Brian Sutherland [EMAIL PROTECTED] wrote: What defines if something is the instance configuration? Isn't ZCML just another format of configuration file? I agree it's evil to hardcode database

[Zope-dev] Zope Tests: 5 OK

2008-04-11 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Thu Apr 10 11:00:00 2008 UTC to Fri Apr 11 11:00:00 2008 UTC. There were 5 messages: 5 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Tests Date: Thu Apr 10 20:57:43 EDT 2008 URL:

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

2008-04-11 Thread Andreas Jung
--On 11. April 2008 10:09:16 +0200 Brian Sutherland [EMAIL PROTECTED] wrote: On Fri, Apr 11, 2008 at 05:07:56AM +0200, Andreas Jung wrote: --On 10. April 2008 21:29:43 +0200 Brian Sutherland [EMAIL PROTECTED] wrote: What defines if something is the instance configuration? Isn't ZCML just

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

2008-04-11 Thread Andreas Jung
--On 11. April 2008 08:36:43 +0100 Martin Aspeli [EMAIL PROTECTED] wrote: Martijn Faassen wrote: Andreas Jung wrote: --On 10. April 2008 19:10:49 +0200 Brian Sutherland [EMAIL PROTECTED] wrote: Just adding my few requirements: - Integration into the component architecture in such a way

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

2008-04-11 Thread Martin Aspeli
Andreas Jung lists at zopyx.com writes: The way I use collective.lead in my book is to have it look up the database settings in a local utility. That utility is editable via a control panel page in Plone. I suspect that it'd be quite easy to do something similar where the settings were

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

2008-04-11 Thread Martijn Faassen
Brian Sutherland wrote: [snip] Unfortunately, it doesn't seem an option, right now, to avoid using ZCML to setup database connections. So I'm not sure how you want to implement your ideas? collective.lead can do it without ZCML; you set up the right connection by implementing a 'url' property

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

2008-04-11 Thread Martijn Faassen
Andreas Jung wrote: [snip] Possibly a sane and clean solution but way of over-designed. I am interested in simple and robust solutions that work and not in a solution that adds more and more unnecessary layers just the sake of having them :-) It's a 1 liner to set up the connection in this

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

2008-04-11 Thread Reinout van Rees
Brian Sutherland schreef: Unfortunately, it doesn't seem an option, right now, to avoid using ZCML to setup database connections. So I'm not sure how you want to implement your ideas? Something we did for an LDAP connection that needed the same kind of server-dependent config: put an

[Zope-dev] Re: What happened to the infrae.subversion and py eggs?

2008-04-11 Thread Reinout van Rees
Wichert Akkerman schreef: Previously Reinout van Rees wrote: Tres Seaver schreef: Daniel Nouri wrote: 1.0dev-r27844 seems to be gone from PyPI. Such a version should *never* have been released to PyPI (any egg / source dist with an SVN revision number in its filename is *not* suitable for

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

2008-04-11 Thread Bernd Dorn
On 11.04.2008, at 10:09, Brian Sutherland wrote: Unfortunately, it doesn't seem an option, right now, to avoid using ZCML to setup database connections. So I'm not sure how you want to implement your ideas? +1 k, i didn't read the whole thread, but we (lovely systems) use zope.storm

Re: [Zope-dev] Re: What happened to the infrae.subversion and py eggs?

2008-04-11 Thread Wichert Akkerman
Previously Reinout van Rees wrote: Wichert Akkerman schreef: Previously Reinout van Rees wrote: Tres Seaver schreef: Daniel Nouri wrote: 1.0dev-r27844 seems to be gone from PyPI. Such a version should *never* have been released to PyPI (any egg / source dist with an SVN revision number in

Re: [Zope-dev] Re: [zope.testing.doctest] a nasty surprise

2008-04-11 Thread Dieter Maurer
Balazs Ree wrote at 2008-4-11 09:19 +0200: ... In order to analyse a difficult problem, I added from dm.pdb import zpdb; zpdb.set_trace() in the doctest (dm.pdb.zpdb is my Zope aware PDB extension) The standard PDB works fine. I'm sure you're extended version can be tweaked to as well. I

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

2008-04-11 Thread Martijn Faassen
Bernd Dorn wrote: [whether configuration should be in ZCML] although it is a few lines of code to get db uris from somewhere else, and this could also be application code. I'm not against ZCML, as long as those lines of code to get the db URI from application code also exist. A good API to

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

2008-04-11 Thread Stephan Richter
On Friday 11 April 2008, Bernd Dorn wrote: although it is a few lines of code to get db uris from somewhere else,   and this could also be application code if you use paster, you can stick options into your pater ini script. We are currently doing this for a setting in our app. Regards,

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

2008-04-11 Thread Brian Sutherland
On Fri, Apr 11, 2008 at 01:21:45PM +0200, Andreas Jung wrote: Unfortunately, it doesn't seem an option, right now, to avoid using ZCML to setup database connections. So I'm not sure how you want to implement your ideas? I have no need for ideas to be implemented. We're using SA within in