Dominic, Could you give a high level overview of what is going on here and how you were able to implement the Parent -> Child model in a single form?
Following your links, I wasn't able to discern where/if the input form was actually accepting values for multiple tables. I need similar functionality to Portly, and don't really want to go the iframe route. Specifically I need to show the 'children' of a table in the same input form as the parent. Thanks Geoff On Fri, 2010-09-03 at 05:28 -0700, Dominic wrote: > We (Sahana-Eden) use to do such things with web2py, in connection with > a RESTful API. > > See for example: > http://vita.sahanafoundation.org/eden/pr/person/1 > http://vita.sahanafoundation.org/eden/pr/person/1/address > > It can also speak several XML formats, of course, and JSON; > http://vita.sahanafoundation.org/eden/pr/person/1.xml > http://vita.sahanafoundation.org/eden/pr/person.json > > The code behind that looks like: > > Person Model: > http://bazaar.launchpad.net/~flavour/sahana-eden/trunk/annotate/head%3A/models/02_pr.py#L2 > http://bazaar.launchpad.net/~flavour/sahana-eden/trunk/annotate/head%3A/models/04_pr.py#L2 > > The actual Person controller: > http://bazaar.launchpad.net/~flavour/sahana-eden/trunk/annotate/head%3A/controllers/pr.py#L101 > > HTML frontend controller: > http://bazaar.launchpad.net/~flavour/sahana-eden/trunk/annotate/head%3A/models/01_crud.py#L763 > > Backend extensions: > http://bazaar.launchpad.net/~flavour/sahana-eden/trunk/annotate/head%3A/modules/s3xrc.py#L2 > > Regards, > Dominic