On a second thought.... why is this not supported?
Because I am not convinced this is a good idea.
If every record of table A only references one record of table B and
vice versa then perhaps there should be only one table AB.
If this is a one (A) to many (B) relation then A cannot contain a
reference to B because would not be unique.
If this is a many to many then there should be a link table. In your
case:
db.define_table('ports',
Field('name','string')
)
db.define_table('agents',
field('name','string')
)
db.define_table('port_agents',
Field('port_id', db.ports),
Field('agent_id',db.agents)
)
It is also possible that I do not understand the problem you are
working on and I am completely wrong.
Massimo