On Wednesday 24 July 2013 18:34:08 Alan Etkin wrote:

Note: If you are restoring data with the DAL method import_from_csv_file (not 
the Table class method) using id_map={}, which is the method that should be 
used to keep references in sync, you should not have issues keeping reference 
values. I have tested it with a trivial db (a few records and a list:reference 
table field) and it worked. AFAIK, appadmin does not provide an interface to 
make dumps of or loading the entire database, but it is really simple to use 
them in a web2py shell.




BTW: I have noticed that there is a problem on database the dump method (DAL's 
export_to_csv_file) and filed this issue. 


http://code.google.com/p/web2py/issues/detail?id=1605


With that change, you should be able to move data across databases without 
problems (yet not preserving id values).


--          Thank you very much for the help. I think I did run into that 
issue. And not preserving the id values is fine. If I need to have a unique 
identifier across databases I can add one myself that has no relation with 
web2py. But I doubt that that is needed.

https://groups.google.com/groups/opt_out[1].  





--------
[1] https://groups.google.com/groups/opt_out

-- 

--- 
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/groups/opt_out.


Reply via email to