config.scan() problem

Hi all,
Just starting to work with Pyramid, followed the tutorial to get a
basic site running.  Then I grabbed some files from a TG2.1 app I had
been working on and dropped them into the Pyramid app directory for
future use (Win 7, latest Pyramid, Py 2.6.6).  The next time I
restarted and refreshed the root I got an error from SQLAlchemy
(running in debug mode in Wing Pro).  I traced it back to an old model
file that I had dropped in from the TG2.1 app.  Seems that something
goes wrong (I'm pretty new at all of this...) during the scan?

The error occurs on this line in views.py after the refresh:

root = dbsession.query(MyModel).filter(MyModel.name==u'root').first()

ArgumentError: Column-based expression object expected for argument
'order_by'; got: 'PartTypes.part_types_id', type <type 'str'>

This is probably doing me a favor and is telling me I have an error in
the old model file but it makes me wonder about scanning all files
since it seems like something in the SQLAlchemy setup/config got
confused.  Is there a command that you can put at the top of a file to
abort the scan process for that file?  Or should I just not worry
about it?

Thanks,
Eric

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