Re: [web2py] Problem with document uploading (not with common processing)

2010-06-01 Thread Thadeus Burgess
Add a third table named something like doc_links. So you have activity -- id name docpool --- id name data doc_links - id activity_id docpool_id Now in your form, you insert both (you will need a custom SQLFORM.factory for this). Submit each record, then create a do

[web2py] Problem with document uploading (not with common processing)

2010-06-01 Thread Sverre
The problem is I have 5 tables and each can have many documents per entity. I solved this with a table "docpool". For every new entity in one of the 5 tables I generate a docpool entity (only the ID) and put the docpool.id into the entity. Each document is linked by the docpool.id But now I have