I am using assign_mapper instead of ActiveMapper:
# in model.py
from sqlalchemy.ext.assignmapper import assign_mapper
from turbogears.database import metadata, session
class User(object):
# your custom user class
pass
users = Table('users', metadata, autoload=True) #load table definition
from the database
assign_mapper(session.context, User, users)
Ksenia
On 9/16/06, Olli Wang <[EMAIL PROTECTED]> wrote:
>
> I found a para "--without-activemapper" by searching mailing list, but
> that doesn't work. I'm doubt how to write model without ActiveMapper.
> Any help?
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---