Hi Adam and Cyrus,

Thanks for this very useful information. 

Working in the shell I would try to load the 


*ResourceInstances:from arches.app.models import ResourceInstance*but on 
that i get 
*ImportError: cannot import name ResourceInstance*which I guess is the 
difficulty descibed by Cyrus related to how "access the resource proxy mode
l"

This is not blocking me from further exploring Arches but I am thankful for 
any hints you might have on this issue.


On Tuesday, April 24, 2018 at 11:34:40 AM UTC-4, Adam Cox wrote:
>
> Anjo, if you are interested in working with the django shell, here are two 
> good resources for you to start with:
>
> The graphical data model for Arches will show you all of the models 
> involved and their properties: 
> https://github.com/archesproject/arches/wiki/Data-Model#graphical-data-models.
>  
> Combine this with clear_resources() which is used in remove_resources, 
> https://github.com/archesproject/arches/blob/master/arches/app/utils/data_management/resources/remover.py#L25
>  
> and you can probably figure out some slightly more advanced bulk resource 
> removal.
>
> Also, consider the actual Resource.delete() method 
> https://github.com/archesproject/arches/blob/master/arches/app/models/resource.py#L232.
>  
> That method seems to handle elasticsearch entries, so I'm not sure why they 
> are handled separately in clear_resources(), but these are all good things 
> to investigate in the django shell.
>
> Adam
>
> On Friday, April 20, 2018 at 1:47:52 PM UTC-5, Anjo Weichbrodt wrote:
>>
>> Hi,
>>
>>  I would like  to delete some resource models in the Arches designer.
>> Clicking on <manage> ---> <delete>  would take away initially the 
>> resource model from the list, but up on refreshing it would come back again.
>> What am I missing?
>>
>> Thanks,
>> Anjo
>>
>>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to