Dear Massimo,
*i used this to export from the first application : *
def export():
db.export_to_csv_file(open('all10082012.csv', 'wb'))
return locals()
*and to import to the other application i use this :*
def importcsv():
db.import_from_csv_file(open('all10082012.csv', 'rb'))
return locals()
Best Regards,
Hassan alnatour
On Tue, Oct 9, 2012 at 10:18 PM, Massimo Di Pierro <
[email protected]> wrote:
> I understand. It can be done but how depends on details.
> Do you use appadmin for import export or the API? Do you do it one table
> at the time or do you export import the whole db?
>
>
> On Tuesday, 9 October 2012 12:01:45 UTC-5, Hassan Alnatour wrote:
>
>> Dear Massimo ,
>>
>> what i want to do is , i have am moving a database using CSV and when i
>> do that the Ids change , cuz its auto generated i think , what can i do
>> to solve this problem , when i move my database the ids changes witch
>> means that everything will change , how can i fix this problem ? and why
>> is not copying the data as is ?
>>
>> Thank you massimo ..
>>
>> Regards,
>>
>>
>> On Tue, Oct 9, 2012 at 6:55 PM, Massimo Di Pierro
>> <[email protected]>wrote:
>>
>>> Not sure I understand the problem. How would you like it to work?
>>>
>>>
>>> On Tuesday, 9 October 2012 10:17:50 UTC-5, Hassan Alnatour wrote:
>>>
>>>> Dear ALL ,
>>>>
>>>> i reviewed the CSV files the exports seems fine but when importing the
>>>> data the ids are the order of the data inserted , how can we fix this ?
>>>>
>>>> Best Regards,
>>>> Hasan alnatour
>>>>
>>>>
>>>> On Tue, Oct 9, 2012 at 6:12 PM, Hassan Alnatour <
>>>> [email protected]> wrote:
>>>>
>>>>> Dear ALL ,
>>>>>
>>>>> when exporting all the tables as CSV , the csv changes the ids to the
>>>>> order of the recorders , this is now right , what can i do to fix this , i
>>>>> want to move the data with the same ids
>>>>>
>>>>> regards,
>>>>>
>>>>> --
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>
>>>
>>>
>>>
>>
>> --
>
>
>
>
--