Hi, Adam. 

I am sorry that I didn't maintain the link and I am grateful if you could 
save and improve the scripts in your repo. Thank you.

Best,
Jae


On Saturday, May 6, 2017 at 8:24:33 PM UTC+9, Adam Cox wrote:
>
> Hi Jae, would you mind if I add my edited version of this script to a v3 
> utilities repo that I have here: 
> https://github.com/mradamcox/arches3_utils? I have a few scripts in there 
> now, for making/validating authority documents, etc. but it would be good 
> to add this one as it is important in 2 ways: 1) it facilitates a database 
> dump/reload of all resources and 2) it would serve as a very good starting 
> point for anyone planning to migrate their resources from v3 to v4.
>
> Please let me know, sooner the better. If you'd rather place it in your 
> own repo, that would be great too!
>
> Cheers,
> Adam
>
> On Tuesday, March 29, 2016 at 10:41:54 AM UTC-5, Jae Hun Lee wrote:
>>
>> Hello,
>>
>> I've created a small python script that convert JSON to .ARCHES. I hope I 
>> can get help from this community for testing it. 
>> The link to the script: 
>> https://github.com/oixhwotl/archesproject3/raw/master/exported/arches_json_to_arches.py
>>
>> The Arches command for exporting data is shown as below:
>> $ python manage.py packages -o export_resources -d <new_out_file_path>
>> (e.g) ...:~/my_hip_app2$ python packages -o export_resource -d 
>> exported/backup_201603292124
>>
>> The script needs two arguments, and creates a sample.arches file under 
>> <path_to_source_data>/business_data/
>> $ python arches_json_to_arches.py <new_out_file_path> 
>> <path_to_source_data>
>> (e.g) ...:~/my_hip_app2$ python exported/arches_json_to_arches.py 
>> exported/backup_201603292124 my_hip_app/source_data
>>
>> If BUSISNESS_DATA_FILES is set in settings.py, you can reinitialize 
>> Arches with following command:
>> python manage.py packages -o install
>>
>> or you can just add the new .arches with following command:
>> $ python manage.py packages -o import_resources -s 
>> <path_to_source_data>/business_data/sample.arches
>> (e.g) ...:~/my_hip_app2$ python manage.py packages -o import_resources 
>> my_hip_app/source_data/business_data/sample.arches
>>
>> It has one problem. It can't recover RELATION_TYPE field in .relations 
>> file.
>>
>> Can anybody help me by testing it? I must warn you that you should have 
>> your data backed up some place safe. If this script works without any 
>> problem, then I don't have to explain how to create .arches files to my 
>> project stakeholders. Thank you in advance.
>>
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to