On Friday, July 8, 2016 at 8:39:01 AM UTC-4, Carlos Cesar Caballero wrote:
>
> Thanks Anthony for your time and answers, I will use another tool for this 
> project then, the DB already exist with the "Identifying Relationship" 
> structure and I can't change it.
>

That's an important detail that you left out. If you are working with a 
legacy database and you cannot change the schema, the DAL supports that, 
though with some limitations. See 
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Legacy-databases-and-keyed-tables
 
(it says keyed tables are only supported on a limited set of backends, but 
I'm not sure if that is true, so try it out with your database). The main 
limitation is that keyed tables can only reference other keyed tables, but 
in this case, that sounds like exactly what you want.

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to