[web2py] Re: Model with many to many defined across multiple database instances

2010-09-01 Thread ron_m
> > Commenting out the following lines shows servers as a drop down list > on the insert site_servers form, leaving the line active causes the > servers line to be a text input field. > > # Test for uniqueness across site_id and server_id > db.site_servers.server_id.requires = IS_NOT_IN_DB(db > > (

[web2py] Re: Model with many to many defined across multiple database instances

2010-08-23 Thread ron_m
To simplify I just used standard id fields, copied the scaffold (welcome) application with create new application in admin and then in db.py changed the db line to match MySQL and created the database else: # else use a normal relational database # db = DA