6 | | In S2 this is done by record ids being UUIDs (Universally Unique IDs) built from each instance's 'base_uuid' |
| 6 | This can be done in Web2Py using UUIDs (Universally Unique IDs) & CSV Export/Import: |
| 7 | * http://groups.google.com/group/web2py/browse_thread/thread/c08d1b05ddda672c |
| 8 | |
| 9 | {{{ |
| 10 | import uuid |
| 11 | SQLField('uuid',default=str(uuid.uuid4())) |
| 12 | }}} |
| 13 | |
| 14 | CSV import/export threads: |
| 15 | * http://groups.google.com/group/web2py/browse_thread/thread/be927ccf4d9745d2/637e45ccc2cf2583 |
| 16 | * http://groups.google.com/group/web2py/browse_thread/thread/55d923a51eca2c90 |
| 17 | |
| 18 | other related threads: |
| 19 | * http://groups.google.com/group/web2py/browse_thread/thread/af3f7ad5271a10c6/c5e96141c13a29ad |
| 20 | * http://groups.google.com/group/web2py/browse_thread/thread/7d639c98b5b8dcd2/c0fe17ccbdd12eb7 |
| 21 | |
| 22 | There is a simple 1-table example appliance which has the ability to do syncs via XML-RPC: |
| 23 | * http://mdp.cti.depaul.edu/appliances/default/download/app.source.312926207134.txt |
| 24 | |
| 25 | |
| 26 | In S2 the record ids are UUIDs built from each instance's 'base_uuid' |
21 | | |
22 | | Web2Py users have tried to solve the same issue: |
23 | | * http://groups.google.com/group/web2py/browse_thread/thread/af3f7ad5271a10c6/c5e96141c13a29ad |
24 | | |
25 | | Inc through UUIDs: |
26 | | * http://groups.google.com/group/web2py/browse_thread/thread/7d639c98b5b8dcd2/c0fe17ccbdd12eb7 |
27 | | |
28 | | {{{ |
29 | | import uuid |
30 | | SQLField('uuid',default=str(uuid.uuid4())) |
31 | | }}} |
32 | | |
33 | | There is a simple 1-table example appliance which has the ability to do syncs via XML-RPC: |
34 | | * http://mdp.cti.depaul.edu/appliances/default/download/app.source.312926207134.txt |
35 | | |
36 | | We can use CSV to do database synchronization: |
37 | | * http://groups.google.com/group/web2py/browse_thread/thread/be927ccf4d9745d2/637e45ccc2cf2583 |
38 | | * http://groups.google.com/group/web2py/browse_thread/thread/55d923a51eca2c90 |
39 | | |
40 | | |