> Before init_model:
> from sqlalchemy import Table
> from sqlalchemy.orm import mapper, relation
>
> Inside the init_model do:
>    recall_table = Table('recall_db', metadata,
> autoload=True,autoload_with=engine)
>
>    class Recall(object):
>        def __init__(self, **kw):
>            """automatically mapping attributes"""
>            for key, value in kw.iteritems():
>                setattr(self, key, value)
>
>    #Mapping of Table to Python Object Class
>    mapper(Recall, recall_table,primary_key=[recall_table.c.RECORD_ID])
>
>


So now that I have the table in the __init__ file and autoloaded, is
there a reason it does not show up in the admin interface? Do I need
to somehow map it for the admin interface to see it?

Thanks,
Lucas

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to