W liście John Brennan z dnia środa 28 stycznia 2009:
> Here, my get_all() method works like a charm.  BUT the save() method
> gives me this error:
> sqlalchemy.exceptions.InvalidRequestError: Class 'type' entity name
> 'None' has no mapper associated with it

This would be using SA to emulate ActiveRecord style, which I consider 
inferior, but anyway...

Did you really map the Book class? If so, how do you call get_all()? On a new 
Book object? - it's not a classmethod as I see, so something fishy is going 
on gere.

By the way, the way I do separation of model and controller can be seen here:
http://pastebin.com/m6fac67f0

It's sqlalchemy, but not pylons (so disregard calls to dependency() etc). Also 
you probably won't need Serivice objects, you would do well with plain module 
methods (I need them to be able to look up SA session through dependency())

-- 
Paweł Stradomski

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