On Thu, Aug 16, 2007 at 01:55:26PM -0700, Mike Orr wrote:
> First, apologies for the mistakes in the tutorial.  I'm going to
> convert my own application today, so that will be a practical test.
> But I did say to check back in 24 hours in case there are corrections.
> Let's make that 48 hours from now, to take care of any remaining
> beasties.

I should have taken that warning more seriously. :) Something made we
want to be on the bleeding edge and I wasted hours until I understood
that the "in a hurry article" couldn't have worked as it was. And the
link to the previous revision explaining how things are supposed to work
with SAContext was wrong. Thanks to Mike Bayer who jumped in when I
bugged him on IRC and made some quick corrections. I'm glad he works so
closely with the Pylons project so that database access is getting well
connected to Pylons.

Please don't take my posting as ranting and demanding. I appreciate the
work invested into Pylons, SQLAlchemy, Paster and SAContext. I chose to
try 0.9.6r1 then 0.9.6rc2. I wanted to be top-of-the-line with
SQLAlchemy 4.0 beta1 and beta2. Of course I would have had less trouble
if I were still using Pylons 0.9.5. I somehow thought that it might be a
nice idea to use the newer APIs already but I shouldn't be too surprised
that things are still evolving. Especially with release candidates and
beta versions.

All changes have been improvements so far. 0.9.6 is a bit clearer than
0.9.5. SQLAlchemy 0.3.9 suddenly started to make easy things easy. So I
would miss something if the API were stable but ugly. Let it evolve.

> "paster shell" use needs to be tested, along with standalone
> applications using the model.  I believe standalone apps can just
> borrow the config code in websetup.py.

Paster shell failed sooner today and I had to bind to an engine
manually:

    model.Session.configure(bind=g.sa_engine)

After changing my model/__init__.py it works without manually binding
the engine. Thanks for the correction.

There is one problem left for me now. The code in lib/base.py doesn't seem to
do its job properly:

File '/home/chaas/projekte/dnsdhcp/dnsdhcp/lib/base.py', line 43 in __call__
  model.Session.remove()
File '/usr/lib/python2.4/site-packages/sqlalchemy/orm/scoping.py', line 47 in 
remove
  self.registry.clear()
AttributeError: type object 'ScopedSession' has no attribute 'registry'

Once that's sorted out I hope to be back on the track.

Thanks again,
 Christoph


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to