Wes Duff wrote: > Hello, I was wondering if anyone can tell me how to access a column > using active mapper. > > Or maybe you might know of a good documentational site for > ActiveMapper?
ActiveMapper is deprecated and not recommended. That being said... > class Document(ActiveMapper): > class mapping: > __table__='document' > id = column(Integer, primary_key=True) > title = column(Unicode) > name = column(Unicode) > > This is not my real table I am using just an example. > > How can I access "title" in my controller `Document.table.c.title` is how you access the column object directly from the table. > Would also help if there were some good documentation out there for > ActiveMapper. There isn't, and likely won't ever be, since its a deprecated extension that will disappear at some point in the future. > P.S. I cannot change to something else. I must stay with ActiveMapper Thats a shame, since ActiveMapper is not going to be around forever. I'd suggest switching to plain SQLAlchemy or Elixir (http://elixir.ematia.de) if you really want something sort of like ActiveMapper. You are best off learning plain SQLAlchemy first, though, since you'll need to understand it to use ActiveMapper *or* Elixir. -- Jonathan LaCour http://cleverdevil.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" 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/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
