you can override:
def setup_model(model, metadata, **p)
and I believe the only other modification I made was to use my own
model with the following arguments:
__table_args__ = {'useexisting':True}
populate_existing=reload
I still maintained the Group and Role tables, but, added one field to
my existing user table and defined only the fields I needed in
setup_model:
model.users_table = Table(
"clients",
metadata,
Column("client_id", types.Integer,
primary_key=True),
Column("username", types.String(255), unique=True,
nullable=False),
Column("passwd", types.String(255), nullable=False),
Column("group_uid", types.Integer,
ForeignKey("groups.uid")),
)
My existing system didn't have group_uid, and I needed to expose
client_id as well as username, so, I modified a few methods for that.
--
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.