Re: [Arches] undefined Resources

2017-11-14 Thread Darcy Christ
Hi Dennis,

I look forward to that command. It would be very helpful for me.

I am running many clean installs, as I test on our server and my local machine. 
I continue to run those commands below and so if they should include the 
functions, they are not for some reason.

I am wondering whether the pip package is somehow different. I recently worked 
though an issue where the pip package did not have the tests directories 
located in the tagged 4.01 release. This inconsistency does not seem like a 
good idea. It was certainly confusing for me.

Regards,
Darcy



> On Nov 15, 2017, at 11:24 AM, Dennis Wuthrich <dwuthr...@fargeo.com> wrote:
> 
> Darcy,
> 
> Importing graphs that have already configured the function should not require 
> any additional effort on your part.
> 
> FYI, we’re finishing up a command that will let you import a “package” that 
> includes graphs, cards, menu, relationships, basemaps, overlays  (all fully 
> configured), along with functions and (optionally) thesauri.  This should 
> make importing a full Arches application a one command operation.
> 
> -Dennis
> 
> 
> 
> 
>> On Nov 14, 2017, at 6:20 PM, Darcy Christ <da...@1000camels.com 
>> <mailto:da...@1000camels.com>> wrote:
>> 
>> Hi Dennis,
>> 
>> Thank you for the quick response. That is great about the re-index function.
>> 
>> I think my issue was trying to get a test system set up as a way to explore 
>> the system. It certainly seems strange that I can pre-populate the HIP 
>> resources, but that they are not fully set up to show working information. 
>> No sure if there is a way to import the functions along with the resource 
>> graphs:
>> 
>>  python manage.py packages -o import_graphs
>>  python manage.py packages -o python manage.py packages -o 
>> import_reference_data -s arches/db/schemes/arches_concept_scheme.rdf -ow 
>> overwrite -st keep
>>  python manage.py packages -o python manage.py packages -o 
>> import_reference_data -s arches/db/schemes/arches_concept_collections.rdf 
>> -ow overwrite -st keep
>> 
>> 
>> Regards,
>> Darcy
>> 
>> 
>> Darcy W. Christ
>> Digital Generalist
>> @1000camels
>> 
>> 
>> 
>>> On Nov 15, 2017, at 11:16 AM, Dennis Wuthrich <dwuthr...@fargeo.com 
>>> <mailto:dwuthr...@fargeo.com>> wrote:
>>> 
>>> Darcy,
>>> 
>>> To update all records, just press the re-index button in the function.
>>> 
>>> As to your question about “a better default”:  Arches allows you to define 
>>> your resource models dynamically, so it doesn’t know which nodes you want 
>>> to use for populating the search and map popups.
>>> 
>>> Once you’ve configured the function and saved the resource model, all 
>>> subsequent users of you model will automatically use the defaults you 
>>> define.
>>> 
>>> 
>>> -Dennis
>>> 
>>> 
>>> 
>>> 
>>>> On Nov 14, 2017, at 6:10 PM, Darcy Christ <da...@1000camels.com 
>>>> <mailto:da...@1000camels.com>> wrote:
>>>> 
>>>> Thank you, Philip. Your instructions were very helpful.
>>>> 
>>>> I am confused about a few things:
>>>> 
>>>>Does this change only affects new records? If so, how can I fix 
>>>> existing records?
>>>> 
>>>>Why wouldn’t the system, and perhaps I mean the example HIP Resources 
>>>> which I imported, have a better default established?
>>>> 
>>>> 
>>>> 
>>>> 
>>>> Regards,
>>>> Darcy
>>>> 
>>>> 
>>>> Darcy W. Christ
>>>> Digital Generalist
>>>> @1000camels
>>>> 
>>>> 
>>>> 
>>>>> On Nov 14, 2017, at 8:56 PM, Carlisle, Philip 
>>>>> <philip.carli...@historicengland.org.uk 
>>>>> <mailto:philip.carli...@historicengland.org.uk>> wrote:
>>>>> 
>>>>> Hi Darcy,
>>>>> I’ve had a go at creating a resource and as you say it came back with 
>>>>> undefined resource.
>>>>>  
>>>>> However I think I’ve solved the problem.
>>>>>  
>>>>> For each model you need to modify the Define Resource Descriptors 
>>>>> Function to select the node which you would like to display, in this case 
>>>>> 
>>>>>  
>>>>> You can easily identify those resource models which 

Re: [Arches] undefined Resources

2017-11-14 Thread Darcy Christ
Hi Dennis,

Thank you for the quick response. That is great about the re-index function.

I think my issue was trying to get a test system set up as a way to explore the 
system. It certainly seems strange that I can pre-populate the HIP resources, 
but that they are not fully set up to show working information. No sure if 
there is a way to import the functions along with the resource graphs:

python manage.py packages -o import_graphs
python manage.py packages -o python manage.py packages -o 
import_reference_data -s arches/db/schemes/arches_concept_scheme.rdf -ow 
overwrite -st keep
python manage.py packages -o python manage.py packages -o 
import_reference_data -s arches/db/schemes/arches_concept_collections.rdf -ow 
overwrite -st keep


Regards,
Darcy


Darcy W. Christ
Digital Generalist
@1000camels



> On Nov 15, 2017, at 11:16 AM, Dennis Wuthrich <dwuthr...@fargeo.com> wrote:
> 
> Darcy,
> 
> To update all records, just press the re-index button in the function.
> 
> As to your question about “a better default”:  Arches allows you to define 
> your resource models dynamically, so it doesn’t know which nodes you want to 
> use for populating the search and map popups.
> 
> Once you’ve configured the function and saved the resource model, all 
> subsequent users of you model will automatically use the defaults you define.
> 
> 
> -Dennis
> 
> 
> 
> 
>> On Nov 14, 2017, at 6:10 PM, Darcy Christ <da...@1000camels.com 
>> <mailto:da...@1000camels.com>> wrote:
>> 
>> Thank you, Philip. Your instructions were very helpful.
>> 
>> I am confused about a few things:
>> 
>>  Does this change only affects new records? If so, how can I fix 
>> existing records?
>> 
>>  Why wouldn’t the system, and perhaps I mean the example HIP Resources 
>> which I imported, have a better default established?
>> 
>> 
>> 
>> 
>> Regards,
>> Darcy
>> 
>> 
>> Darcy W. Christ
>> Digital Generalist
>> @1000camels
>> 
>> 
>> 
>>> On Nov 14, 2017, at 8:56 PM, Carlisle, Philip 
>>> <philip.carli...@historicengland.org.uk 
>>> <mailto:philip.carli...@historicengland.org.uk>> wrote:
>>> 
>>> Hi Darcy,
>>> I’ve had a go at creating a resource and as you say it came back with 
>>> undefined resource.
>>>  
>>> However I think I’ve solved the problem.
>>>  
>>> For each model you need to modify the Define Resource Descriptors Function 
>>> to select the node which you would like to display, in this case 
>>>  
>>> You can easily identify those resource models which have this function 
>>> already set up by adding a new resource.
>>> 
>>> If in the top left it says Resource Editor – undefined resource it hasn’t 
>>> been done.
>>>  
>>> If it has been done it will show something like Resource Editor -  
>>> (where the name of the node selected for display is in <>)
>>>  
>>> Here’s the workflow to add the node
>>> 1. In Arches Designer select the resource model you want to add the 
>>> function to and from the ‘Manage…’ dropdown select  Functions
>>> 2. From the Function library select ‘ Define Resource Descriptors’ – 
>>> The Define Resource Descriptors card will open.
>>> 3. In the Card Name field use the dropdown to select the card which 
>>> contains the node you wish to display (in this case Name) – the Primary 
>>> Name Template field will auto populate with a suggestion (something like 
>>> , )
>>> 4. Click in the Primary Name Template field and modify it until it 
>>> meets your requirement.
>>> 5. Save the edits and next time you add a resource it should show 
>>> “Resource Editor - ”
>>>  
>>> Once you’ve added the function it will appear in the menu on the left of 
>>> the Function Manager Card
>>>  
>>> I added added the function for the Heritage Resource Model and I also added 
>>> a report for Heritage Resource Group Resource Model as I created a new 
>>> resource but it didn’t show up.
>>>  
>>> The records I created are Testrecord (Heritage Resource Group) and 
>>> PhilTestRecord (Heritage Resource)
>>>  
>>> I hope this helps and that I’ve not misunderstood you again.
>>>  
>>> Phil
>>>  
>>>  
>>> Phil Carlisle
>>> Knowledge Organization Specialist
>>> Listing Group, Historic England
>>> Direct Dial: +44 (0)1793 414824
>>> 

Re: [Arches] undefined Resources

2017-11-14 Thread Darcy Christ
Thank you, Philip. Your instructions were very helpful.

I am confused about a few things:

Does this change only affects new records? If so, how can I fix 
existing records?

Why wouldn’t the system, and perhaps I mean the example HIP Resources 
which I imported, have a better default established?




Regards,
Darcy


Darcy W. Christ
Digital Generalist
@1000camels



> On Nov 14, 2017, at 8:56 PM, Carlisle, Philip 
> <philip.carli...@historicengland.org.uk> wrote:
> 
> Hi Darcy,
> I’ve had a go at creating a resource and as you say it came back with 
> undefined resource.
>  
> However I think I’ve solved the problem.
>  
> For each model you need to modify the Define Resource Descriptors Function to 
> select the node which you would like to display, in this case 
>  
> You can easily identify those resource models which have this function 
> already set up by adding a new resource.
> 
> If in the top left it says Resource Editor – undefined resource it hasn’t 
> been done.
>  
> If it has been done it will show something like Resource Editor -  
> (where the name of the node selected for display is in <>)
>  
> Here’s the workflow to add the node
> 1. In Arches Designer select the resource model you want to add the 
> function to and from the ‘Manage…’ dropdown select  Functions
> 2. From the Function library select ‘ Define Resource Descriptors’ – 
> The Define Resource Descriptors card will open.
> 3. In the Card Name field use the dropdown to select the card which 
> contains the node you wish to display (in this case Name) – the Primary Name 
> Template field will auto populate with a suggestion (something like  Type>, )
> 4. Click in the Primary Name Template field and modify it until it meets 
> your requirement.
> 5. Save the edits and next time you add a resource it should show 
> “Resource Editor - ”
>  
> Once you’ve added the function it will appear in the menu on the left of the 
> Function Manager Card
>  
> I added added the function for the Heritage Resource Model and I also added a 
> report for Heritage Resource Group Resource Model as I created a new resource 
> but it didn’t show up.
>  
> The records I created are Testrecord (Heritage Resource Group) and 
> PhilTestRecord (Heritage Resource)
>  
> I hope this helps and that I’ve not misunderstood you again.
>  
> Phil
>  
>  
> Phil Carlisle
> Knowledge Organization Specialist
> Listing Group, Historic England
> Direct Dial: +44 (0)1793 414824
>  
> http://thesaurus.historicengland.org.uk/ 
> <http://thesaurus.historicengland.org.uk/> 
> http://www.heritagedata.org/blog/ <http://www.heritagedata.org/blog/>
>  
> Listing Information Services fosters an environment where colleagues are 
> valued for their skills and knowledge, and where communication, customer 
> focus and working in partnership are at the heart of everything we do.
>  
>  
> From: archesproject@googlegroups.com <mailto:archesproject@googlegroups.com> 
> [mailto:archesproject@googlegroups.com 
> <mailto:archesproject@googlegroups.com>] On Behalf Of Darcy Christ
> Sent: 14 November 2017 05:40
> To: Arches Project
> Subject: [Arches] undefined Resources
>  
> Hi,
>  
> I continue to struggle with getting a proper installation of Arches v4 
> running. I have been focused on getting the system up and for planning on 
> building a migration path from v3. However, now I am faced with a very 
> fundamental issue. When I try to create a resource, and add a name, the 
> resource comes out as undefined. This is the same on a linux and mac os x 
> install. It is the same on a version of 4.01 installed via pip and a version 
> installed by git clone and install from the developer documentation.
>  
> I am running a complete reinstall each time.
>  
> I am also add sample data, either just the first 3 lines or all of them.
> 
> 
> python manage.py packages -o import_reference_data -s 
> arches/db/schemes/arches_concept_scheme.rdf -ow overwrite -st keep
> python manage.py packages -o import_reference_data -s 
> arches/db/schemes/arches_concept_collections.rdf -ow overwrite -st keep
> python manage.py packages -o import_graphs
> python manage.py packages -o import_business_data -s 
> tests/fixtures/data/csv/heritage_resource_model.csv -ow overwrite
> python manage.py packages -o add_tileserver_layer -m 
> arches/tileserver/world.xml -n world_basemap -b
> python manage.py packages -o add_tileserver_layer -m 
> arches/tileserver/hillshade.xml -n hillshade
>  
> You can see one of my installs here: http://heritage.hku.hk/hongkong_v4/ 
> <http://heritage.hku.hk/hongkong_v4/>
> It still has the default 

[Arches] undefined Resources

2017-11-13 Thread Darcy Christ
Hi,

I continue to struggle with getting a proper installation of Arches v4 
running. I have been focused on getting the system up and for planning on 
building a migration path from v3. However, now I am faced with a very 
fundamental issue. When I try to create a resource, and add a name, the 
resource comes out as undefined. This is the same on a linux and mac os x 
install. It is the same on a version of 4.01 installed via pip and a 
version installed by git clone and install from the developer documentation.

I am running a complete reinstall each time.

I am also add sample data, either just the first 3 lines or all of them.

python manage.py packages -o import_reference_data -s 
arches/db/schemes/arches_concept_scheme.rdf -ow overwrite -st keep
python manage.py packages -o import_reference_data -s 
arches/db/schemes/arches_concept_collections.rdf -ow overwrite -st keep
python manage.py packages -o import_graphs
python manage.py packages -o import_business_data -s 
tests/fixtures/data/csv/heritage_resource_model.csv -ow overwrite
python manage.py packages -o add_tileserver_layer -m 
arches/tileserver/world.xml -n world_basemap -b
python manage.py packages -o add_tileserver_layer -m 
arches/tileserver/hillshade.xml -n hillshade


You can see one of my installs here: http://heritage.hku.hk/hongkong_v4/
It still has the default password if anyone wants to confirm the behaviour. 
Just try to create a Resource, and give it a name.

Any help is appreciated/


Regards,
Darcy

-- 
-- 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.


Re: [Arches] Hiding certain resources

2017-11-06 Thread Darcy Christ
Hi Phil,

I think you are misunderstanding what I am saying. Arches is a database that 
allows people to collect heritage information to share with the public. It is 
completely reasonable to enter data and not immediately make it public. 
Especially while developing, collaborating and validating the resource. Every 
CMS I have worked with has this feature. I am happy to develop it. All I am 
looking for is some help understanding Arches. 

Regards,
Darcy


Darcy W. Christ
@1000camels

> On 6 Nov 2017, at 7:16 pm, Carlisle, Philip 
> <philip.carli...@historicengland.org.uk> wrote:
> 
> Thanks for clarifying Darcy.
> As a publically funded body we cannot hide specific resources but we can 
> limit access to certain attributes of a resource.
>  
> I think a function which allowed you to filter and hide resources labelled 
> with a specific tag should work.
>  
> Regards
>  
> Phil
>  
>  
>  
> Phil Carlisle
> Knowledge Organization Specialist
> Listing Group, Historic England
> Direct Dial: +44 (0)1793 414824
>  
> http://thesaurus.historicengland.org.uk/ 
> http://www.heritagedata.org/blog/
>  
> Listing Information Services fosters an environment where colleagues are 
> valued for their skills and knowledge, and where communication, customer 
> focus and working in partnership are at the heart of everything we do.
>  
>  
> From: Darcy Christ [mailto:da...@1000camels.com] 
> Sent: 06 November 2017 10:53
> To: Carlisle, Philip
> Cc: Alexei Peters; Arches Project
> Subject: Re: [Arches] Hiding certain resources
>  
> I want to hide specific resources, not all of a given resource model. These 
> are heritage sites that cannot be made public yet, until there are more legal 
> protections.
>  
> 
> Darcy W. Christ
> @1000camels
> 
> On 6 Nov 2017, at 6:36 pm, Carlisle, Philip 
> <philip.carli...@historicengland.org.uk> wrote:
> 
> Hi both,
> I thought this was possible using the Permission Manager?
>  
> If you define a user/group as Public then you can use the permission manager 
> to define No Access for each node in a resource model. For example you could 
> provide rudimentary details of a site and its type but not show its geometry 
> or location. For internal users these would be available.
>  
> That’s my understanding but I may be mistaken.
>  
> Phil
>  
> Phil Carlisle
> Knowledge Organization Specialist
> Listing Group, Historic England
> Direct Dial: +44 (0)1793 414824
>  
> http://thesaurus.historicengland.org.uk/ 
> http://www.heritagedata.org/blog/
>  
> Listing Information Services fosters an environment where colleagues are 
> valued for their skills and knowledge, and where communication, customer 
> focus and working in partnership are at the heart of everything we do.
>  
>  
>  
> 
> 
> We help people understand, enjoy and value the historic environment, and 
> protect it for the future. Historic England is a public body, and we champion 
> everyone’s heritage, across England.
> Follow us:  Facebook  |  Twitter  |  Instagram Sign up to our newsletter  
>
> 
> Help us create a list of the 100 places which tell England's remarkable story 
> and its impact on the world. A History of England in 100 Places sponsored by 
> Ecclesiastical. 
> 
> 
> This e-mail (and any attachments) is confidential and may contain personal 
> views which are not the views of Historic England unless specifically stated. 
> If you have received it in error, please delete it from your system and 
> notify the sender immediately. Do not use, copy or disclose the information 
> in any way nor act in reliance on it. Any information sent to Historic 
> England may become publicly available.
>  
> From: archesproject@googlegroups.com [mailto:archesproject@googlegroups.com] 
> On Behalf Of Darcy Christ
> Sent: 06 November 2017 05:49
> To: Alexei Peters
> Cc: Arches Project
> Subject: Re: [Arches] Hiding certain resources
>  
> This would be for v4.
>  
> 
> Darcy W. Christ
> @1000camels
> 
> On 6 Nov 2017, at 1:46 pm, Alexei Peters <apet...@fargeo.com> wrote:
> 
> Hi Darcy,
> First off, are you using Arches v3 or v4?
> -Alexei
>  
> On Nov 4, 2017 11:01 PM, "Darcy Christ" <da...@1000camels.com> wrote:
> Hi Alexei,
>  
> It’s a very important feature we need to implement. What do you think about 
> using a keyword to filter specific resources? Would you be able to some 
> guidance on where you think this filter would need to be applied? We would 
> need to make sure that not only the reports themselves would not be visible, 
> but also that it wouldn’t appear in searches or on the map. I am not familiar 
> with the code enough

Re: [Arches] Hiding certain resources

2017-11-06 Thread Darcy Christ
I want to hide specific resources, not all of a given resource model. These are 
heritage sites that cannot be made public yet, until there are more legal 
protections.


Darcy W. Christ
@1000camels

> On 6 Nov 2017, at 6:36 pm, Carlisle, Philip 
> <philip.carli...@historicengland.org.uk> wrote:
> 
> Hi both,
> I thought this was possible using the Permission Manager?
>  
> If you define a user/group as Public then you can use the permission manager 
> to define No Access for each node in a resource model. For example you could 
> provide rudimentary details of a site and its type but not show its geometry 
> or location. For internal users these would be available.
>  
> That’s my understanding but I may be mistaken.
>  
> Phil
>  
> Phil Carlisle
> Knowledge Organization Specialist
> Listing Group, Historic England
> Direct Dial: +44 (0)1793 414824
>  
> http://thesaurus.historicengland.org.uk/ 
> http://www.heritagedata.org/blog/
>  
> Listing Information Services fosters an environment where colleagues are 
> valued for their skills and knowledge, and where communication, customer 
> focus and working in partnership are at the heart of everything we do.
>  
>  
> 
> 
> 
> We help people understand, enjoy and value the historic environment, and 
> protect it for the future. Historic England is a public body, and we champion 
> everyone’s heritage, across England.
> Follow us:  Facebook  |  Twitter  |  Instagram Sign up to our newsletter  
>
> 
> Help us create a list of the 100 places which tell England's remarkable story 
> and its impact on the world. A History of England in 100 Places sponsored by 
> Ecclesiastical. 
> 
> 
> This e-mail (and any attachments) is confidential and may contain personal 
> views which are not the views of Historic England unless specifically stated. 
> If you have received it in error, please delete it from your system and 
> notify the sender immediately. Do not use, copy or disclose the information 
> in any way nor act in reliance on it. Any information sent to Historic 
> England may become publicly available.
> 
> From: archesproject@googlegroups.com [mailto:archesproject@googlegroups.com] 
> On Behalf Of Darcy Christ
> Sent: 06 November 2017 05:49
> To: Alexei Peters
> Cc: Arches Project
> Subject: Re: [Arches] Hiding certain resources
>  
> This would be for v4.
>  
> 
> Darcy W. Christ
> @1000camels
> 
> On 6 Nov 2017, at 1:46 pm, Alexei Peters <apet...@fargeo.com> wrote:
> 
> Hi Darcy,
> First off, are you using Arches v3 or v4?
> -Alexei
>  
> On Nov 4, 2017 11:01 PM, "Darcy Christ" <da...@1000camels.com> wrote:
> Hi Alexei,
>  
> It’s a very important feature we need to implement. What do you think about 
> using a keyword to filter specific resources? Would you be able to some 
> guidance on where you think this filter would need to be applied? We would 
> need to make sure that not only the reports themselves would not be visible, 
> but also that it wouldn’t appear in searches or on the map. I am not familiar 
> with the code enough to know whether there is somewhere in the methods that 
> load the resources that I could apply. Filter.
>  
> 
> Darcy W. Christ
> @1000camels
> 
> On 5 Nov 2017, at 5:26 am, Alexei Peters <apet...@fargeo.com> wrote:
> 
> Hi Darcy,
> There currently isn't a way to do this, but it's a use-case that we're aware 
> of.
> -Alexei
> 
>  
> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>  
> On Sat, Nov 4, 2017 at 12:44 AM, Darcy Christ <da...@1000camels.com> wrote:
> Is there a way to hide specific resources from anonymous users?
> 
> We are working on a project where there is a need to have some heritage sites 
> in the system not be publicly available. I can imagine some way to hide 
> resources with a given keyword. Does this makes sense? Has anyone done this?
>  
> Regards,
> Darcy
> -- 
> -- 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.
>  
> -- 
> -- To post, send email to archesproject@googlegroups.com. To unsubscribe, 
> send email to archesproject+unsubscr...@googlegroups.com. For more 
> information, visit https://groups.google

Re: [Arches] Hiding certain resources

2017-11-05 Thread Darcy Christ
This would be for v4.


Darcy W. Christ
@1000camels

> On 6 Nov 2017, at 1:46 pm, Alexei Peters <apet...@fargeo.com> wrote:
> 
> Hi Darcy,
> First off, are you using Arches v3 or v4?
> -Alexei
> 
>> On Nov 4, 2017 11:01 PM, "Darcy Christ" <da...@1000camels.com> wrote:
>> Hi Alexei,
>> 
>> It’s a very important feature we need to implement. What do you think about 
>> using a keyword to filter specific resources? Would you be able to some 
>> guidance on where you think this filter would need to be applied? We would 
>> need to make sure that not only the reports themselves would not be visible, 
>> but also that it wouldn’t appear in searches or on the map. I am not 
>> familiar with the code enough to know whether there is somewhere in the 
>> methods that load the resources that I could apply. Filter.
>> 
>> 
>> Darcy W. Christ
>> @1000camels
>> 
>>> On 5 Nov 2017, at 5:26 am, Alexei Peters <apet...@fargeo.com> wrote:
>>> 
>>> Hi Darcy,
>>> There currently isn't a way to do this, but it's a use-case that we're 
>>> aware of.
>>> -Alexei
>>> 
>>> 
>>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>> 
>>>> On Sat, Nov 4, 2017 at 12:44 AM, Darcy Christ <da...@1000camels.com> wrote:
>>>> Is there a way to hide specific resources from anonymous users?
>>>> 
>>>> We are working on a project where there is a need to have some heritage 
>>>> sites in the system not be publicly available. I can imagine some way to 
>>>> hide resources with a given keyword. Does this makes sense? Has anyone 
>>>> done this?
>>>> 
>>>> Regards,
>>>> Darcy
>>>> -- 
>>>> -- 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.
>>> 

-- 
-- 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.


[Arches] Hiding certain resources

2017-11-04 Thread Darcy Christ
Is there a way to hide specific resources from anonymous users?

We are working on a project where there is a need to have some heritage 
sites in the system not be publicly available. I can imagine some way to 
hide resources with a given keyword. Does this makes sense? Has anyone done 
this?

Regards,
Darcy

-- 
-- 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.


Re: [Arches] Cookies and Sessions

2017-11-02 Thread Darcy Christ
I’ve added this to settings.py and restarted Apache and it is not working yet. 
Any idea what I might be missing?



Darcy W. Christ
Digital Generalist
@1000camels



> On Nov 3, 2017, at 11:19 AM, Adam Cox <mr.adam...@gmail.com> wrote:
> 
> Hey Darcy, yeah, what you should do is add the SESSION_COOKIE_NAME to your 
> settings (or local settings) with a unique value for each app. What I have 
> done in the past is:
> 
> SESSION_COOKIE_NAME = PACKAGE_NAME
> 
> This is a standard Django setting, and you can read a little more about it 
> here: 
> https://docs.djangoproject.com/en/1.11/ref/settings/#session-cookie-name 
> <https://docs.djangoproject.com/en/1.11/ref/settings/#session-cookie-name>
> 
> Adam
> 
> On Thu, Nov 2, 2017 at 9:47 PM, Darcy Christ <da...@1000camels.com 
> <mailto:da...@1000camels.com>> wrote:
> I'm trying to run two versions of Arches v4 and their sessions seem to be 
> conflicting. Is there a settling that would allow me to run them both, be 
> logged into both, within the same browser session?
> 
> Regards,
> Darcy
> 
> --
> -- To post, send email to archesproject@googlegroups.com 
> <mailto:archesproject@googlegroups.com>. To unsubscribe, send email to 
> archesproject+unsubscr...@googlegroups.com 
> <mailto:archesproject%2bunsubscr...@googlegroups.com>. For more information, 
> visit https://groups.google.com/d/forum/archesproject?hl=en 
> <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 
> <mailto:archesproject+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 
> 
> --
> -- 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 
> <https://groups.google.com/d/forum/archesproject?hl=en>
> ---
> You received this message because you are subscribed to a topic in the Google 
> Groups "Arches Project" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/archesproject/fctRcAOIljc/unsubscribe 
> <https://groups.google.com/d/topic/archesproject/fctRcAOIljc/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> archesproject+unsubscr...@googlegroups.com 
> <mailto:archesproject+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
-- 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.


signature.asc
Description: Message signed with OpenPGP


[Arches] Confusion with initial setup of v4

2017-09-21 Thread Darcy Christ
Hi,

I am still fumbling around trying to understand v4. After several attempts 
to get it installed on both my dev machine (mac osx) and our production 
(centos), I seem to have a working version. However, something doesn't seem 
quite right. It may be a matter of me not understanding what I am looking 
at.

To begin with, I cannot for the life of me find Map Settings –> Mapbox API, 
as stated in this documentation: 
https://arches4.readthedocs.io/en/latest/initial-configuration/#map-settings

I have logged on with admin/admin.

So many of the icons on the left side do nothing, including 'Dashboard', 
'System Settings', 'Field Project Manager', 'Import/Export Manager' and 
'Profile Manager'. I suspect my installation is not good, but I am not sure 
what is wrong or what to do about it.

Here is an example of one version I have tried to 
configure: http://heritage.hku.hk/hongkong_v4/


One last thing, which might point to an issue. Although I have installed 
bower, when I access the search, I see this in the log:

[21/Sep/2017 01:05:07] "GET /search HTTP/1.1" 200 143878
[21/Sep/2017 01:05:07] "GET 
/media/bower_components/nvd3/build/nv.d3.min.css HTTP/1.1" 404 1848
[21/Sep/2017 01:05:07] "GET 
/media/bower_components/leaflet/dist/leaflet.css HTTP/1.1" 404 1848
[21/Sep/2017 01:05:07] "GET 
/media/bower_components/leaflet-draw/dist/leaflet.draw.css HTTP/1.1" 404 
1878
[21/Sep/2017 01:05:08] "GET /media/bower_components/mapbox-gl-draw/index.js 
HTTP/1.1" 404 1845


Any help is appreciated


Regards,
Darcy

-- 
-- 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.


Re: [Arches] Issues exporting data from V3

2017-09-18 Thread Darcy Christ
Hi Adam,

Still not sure how to get past this. I see it is an n-dash (I should have 
looked this up, rather than assumed it was related to Chinese).

The question for me is why is this code assuming all ascii since it allowed 
an ndash into the database?

Is there a way to fix this code, rather update the content?


Darcy


On Saturday, September 16, 2017 at 12:59:44 AM UTC+10, Adam Cox wrote:
>
> Darcy, it looks like this is not a chinese character, but a long dash.
>
> This issue seems to be well-summed up in this stack exchange answer: 
> https://stackoverflow.com/a/5387966/3873885
>
> Essentially, in this line
>
> csvwriter.writerow({k: str(v).encode('utf8') for k, v in 
> csv_record.items()})
>
> the str() operation is encoding v (which in this case is a unicode object) 
> to ascii, the default encoding for a str object in python 2.7. Then, that 
> ascii-encoded string is further encoded into utf-8. I assume the initial 
> str() operation is meant to handle integers and other non-text obects, but 
> you've found an example where because  u'\u2013' (unicode character 2013 
> <http://www.fileformat.info/info/unicode/char/2013/index.htm>) cannot be 
> encoded in ascii, it hits an error even before it has a chance to encode to 
> utf-8. 
> So, I think that line in the code could be improved.
>
> It looks like that line comes from the related resource export 
> <https://github.com/archesproject/arches/blob/stable/3.x/arches/management/commands/packages.py#L352>
>  
> process. Maybe you have a long dash in one of the notes that you have about 
> a resource to resource relationship? Otherwise, I'm really not sure where 
> that problem character would come from...
>
> Hope that's at least a little helpful.
>
> Adam
>
> On Thu, Sep 14, 2017 at 8:01 PM, Darcy Christ <da...@1000camels.com 
> > wrote:
>
>> I am having trouble exporting data from v3
>>
>> I have add this to my config:
>>
>> EXPORT_CONFIG = os.path.normpath(os.path.join(PACKAGE_ROOT, 
>> 'source_data', 'business_data', 'resource_export_mappings.json'))
>>
>>
>> And then I get an error while trying to export. Given that it is related 
>> to encoding, could it be any chinese characters I might have in the data?
>>
>>
>> (hkarches) [hkarches@heritage hongkong]$ python manage.py packages -o 
>> export_resources -d '../hongkong_data'
>> operation: export_resources
>> package: hongkong
>> Writing 3 ACTIVITY.E7 resources
>> Writing 370 INFORMATION_RESOURCE.E73 resources
>> Writing 1205 HERITAGE_RESOURCE.E18 resources
>> Writing 545 ACTOR.E39 resources
>> Writing 6 HISTORICAL_EVENT.E5 resources
>> Writing 0 HERITAGE_RESOURCE_GROUP.E27 resources
>> Traceback (most recent call last):
>>   File "manage.py", line 28, in 
>> execute_from_command_line(sys.argv)
>>   File 
>> "/home/hkarches/lib/python2.7/site-packages/django/core/management/__init__.py",
>>  
>> line 399, in execute_from_command_line
>> utility.execute()
>>   File 
>> "/home/hkarches/lib/python2.7/site-packages/django/core/management/__init__.py",
>>  
>> line 392, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File 
>> "/home/hkarches/lib/python2.7/site-packages/django/core/management/base.py", 
>> line 242, in run_from_argv
>> self.execute(*args, **options.__dict__)
>>   File 
>> "/home/hkarches/lib/python2.7/site-packages/django/core/management/base.py", 
>> line 285, in execute
>> output = self.handle(*args, **options)
>>   File 
>> "/home/hkarches/lib/python2.7/site-packages/arches/management/commands/packages.py",
>>  
>> line 106, in handle
>> self.export_resources(package_name, options['dest_dir'])
>>   File 
>> "/home/hkarches/lib/python2.7/site-packages/arches/management/commands/packages.py",
>>  
>> line 351, in export_resources
>> csvwriter.writerow({k: str(v).encode('utf8') for k, v in 
>> csv_record.items()})
>>   File 
>> "/home/hkarches/lib/python2.7/site-packages/arches/management/commands/packages.py",
>>  
>> line 351, in 
>> csvwriter.writerow({k: str(v).encode('utf8') for k, v in 
>> csv_record.items()})
>> UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in 
>> position 220: ordinal not in range(128)
>>
>> -- 
>> -- To post, send email to arches...@googlegroups.com . To 
>> unsubscribe, send email to archesprojec...@googlegroups.com . 
>> For more information, visit 
>> https://groups

[Arches] Issues exporting data from V3

2017-09-14 Thread Darcy Christ
I am having trouble exporting data from v3

I have add this to my config:

EXPORT_CONFIG = os.path.normpath(os.path.join(PACKAGE_ROOT, 'source_data', 
'business_data', 'resource_export_mappings.json'))


And then I get an error while trying to export. Given that it is related to 
encoding, could it be any chinese characters I might have in the data?


(hkarches) [hkarches@heritage hongkong]$ python manage.py packages -o 
export_resources -d '../hongkong_data'
operation: export_resources
package: hongkong
Writing 3 ACTIVITY.E7 resources
Writing 370 INFORMATION_RESOURCE.E73 resources
Writing 1205 HERITAGE_RESOURCE.E18 resources
Writing 545 ACTOR.E39 resources
Writing 6 HISTORICAL_EVENT.E5 resources
Writing 0 HERITAGE_RESOURCE_GROUP.E27 resources
Traceback (most recent call last):
  File "manage.py", line 28, in 
execute_from_command_line(sys.argv)
  File 
"/home/hkarches/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 399, in execute_from_command_line
utility.execute()
  File 
"/home/hkarches/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/hkarches/lib/python2.7/site-packages/django/core/management/base.py", 
line 242, in run_from_argv
self.execute(*args, **options.__dict__)
  File 
"/home/hkarches/lib/python2.7/site-packages/django/core/management/base.py", 
line 285, in execute
output = self.handle(*args, **options)
  File 
"/home/hkarches/lib/python2.7/site-packages/arches/management/commands/packages.py",
 
line 106, in handle
self.export_resources(package_name, options['dest_dir'])
  File 
"/home/hkarches/lib/python2.7/site-packages/arches/management/commands/packages.py",
 
line 351, in export_resources
csvwriter.writerow({k: str(v).encode('utf8') for k, v in 
csv_record.items()})
  File 
"/home/hkarches/lib/python2.7/site-packages/arches/management/commands/packages.py",
 
line 351, in 
csvwriter.writerow({k: str(v).encode('utf8') for k, v in 
csv_record.items()})
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in 
position 220: ordinal not in range(128)

-- 
-- 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.


[Arches] Issues installing v4 on osx

2017-04-20 Thread Darcy Christ
I'm having trouble installing v4 on osx. I am using the installer, but I am 
having an issue with how my system seems to be set up. Can anyone help me?

Darcy


Here is where it errors:


   gcc -fno-strict-aliasing -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 
(dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090602 -DHAVE_LO64=1 
-I/Applications/MAMP/Library/include/python2.7 -I. 
-I/usr/local/Cellar/postgresql/9.6.2/include 
-I/usr/local/Cellar/postgresql/9.6.2/include/server -c 
psycopg/microprotocols_proto.c -o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/microprotocols_proto.o
In file included from psycopg/microprotocols_proto.c:27:
In file included from ./psycopg/psycopg.h:33:
./psycopg/config.h:71:13: warning: unused function 'Dprintf' 
[-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
^
1 warning generated.
gcc -fno-strict-aliasing -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 
(dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090602 -DHAVE_LO64=1 
-I/Applications/MAMP/Library/include/python2.7 -I. 
-I/usr/local/Cellar/postgresql/9.6.2/include 
-I/usr/local/Cellar/postgresql/9.6.2/include/server -c psycopg/typecast.c 
-o build/temp.macosx-10.9-x86_64-2.7/psycopg/typecast.o
gcc -bundle -undefined dynamic_lookup -arch x86_64 
build/temp.macosx-10.9-x86_64-2.7/psycopg/psycopgmodule.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/green.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/pqpath.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/utils.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/bytes_format.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/connection_int.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/connection_type.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/cursor_int.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/cursor_type.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/diagnostics_type.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/error_type.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/lobject_int.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/lobject_type.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/notify_type.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/xid_type.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_asis.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_binary.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_datetime.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_list.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pboolean.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pdecimal.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pint.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pfloat.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_qstring.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/microprotocols.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/microprotocols_proto.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/typecast.o -L/usr/local/lib -lpq 
-lssl -lcrypto -o build/lib.macosx-10.9-x86_64-2.7/psycopg2/_psycopg.so
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
error: command 'gcc' failed with exit status 1


Command "/Users/darcy/arches/virtualenv/ENV/bin/python -u -c "import 
setuptools, 
tokenize;__file__='/Users/darcy/arches/virtualenv/ENV/lib/python2.7/site-packages/arches/tmp/psycopg2/setup.py';f=getattr(tokenize,
 
'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/tmp/pip-DOVy2U-record/install-record.txt 
--single-version-externally-managed --compile --install-headers 
/Users/darcy/arches/virtualenv/ENV/include/site/python2.7/psycopg2" failed 
with error code 1 in 
/Users/darcy/arches/virtualenv/ENV/lib/python2.7/site-packages/arches/tmp/psycopg2/

-- 
-- 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.


Re: [Arches] TypeError: sequence item 0: expected string, datetime.datetime

2017-04-20 Thread Darcy Christ
Perfect, Alexei. That worked like a charm!



Darcy W. Christ
Digital Generalist
@1000camels



> On Apr 20, 2017, at 4:36 PM, Alexei Peters <apet...@fargeo.com> wrote:
> 
> Hi Darcy,
> Changing line 191 in 
> "/home/hkarches/lib/python2.7/site-packages/arches_hip/models/resource.py"
> 
> from this:
> entity_data.append(node.value)
> 
> to this:
> entity_data.append(str(node.value))
> 
> should fix the issue you're seeing.
> 
> This is only temporary as nothing has been pushed to the HIP repo yet.
> Cheers,
> Alexei
> 
> PS. v4 should be much more stable!
> 
> 
> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
> 
> On Wed, Apr 19, 2017 at 9:29 PM, Darcy Christ <da...@1000camels.com 
> <mailto:da...@1000camels.com>> wrote:
> We keep getting intermittent errors updating information resources. The 
> messages do not make sense, since we are not even editing dates
> 
> http://dpaste.com/3G0CBAE <http://dpaste.com/3G0CBAE>
> 
> 
> Any help is appreciated.
> 
> 
> 
> We haven't moved to v4 yet, but we're hoping the system is more stable, as 
> we've had tons of issues like this.
> 
> 
> 
> Darcy
> 
> -- 
> -- To post, send email to archesproject@googlegroups.com 
> <mailto:archesproject@googlegroups.com>. To unsubscribe, send email to 
> archesproject+unsubscr...@googlegroups.com 
> <mailto:archesproject%2bunsubscr...@googlegroups.com>. For more information, 
> visit https://groups.google.com/d/forum/archesproject?hl=en 
> <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 
> <mailto:archesproject+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
-- 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.


smime.p7s
Description: S/MIME cryptographic signature


[Arches] TypeError: sequence item 0: expected string, datetime.datetime

2017-04-19 Thread Darcy Christ
We keep getting intermittent errors updating information resources. The 
messages do not make sense, since we are not even editing dates

http://dpaste.com/3G0CBAE


Any help is appreciated.



We haven't moved to v4 yet, but we're hoping the system is more stable, as 
we've had tons of issues like this.



Darcy

-- 
-- 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.


Re: [Arches] Re: elasticsearch configuration recommendations

2017-03-25 Thread Darcy Christ
Thank you, Vincent. I’ve been meaning to start working with Docker. This sounds 
like a good opportunity.


> On Mar 25, 2017, at 4:50 AM, Vincent Meijer <meijer.vinc...@gmail.com> wrote:
> 
> Hey Darcy,
> 
> I think Adam might be able to tell you more about why running one 
> Elasticsearch server for two Arches instances is not a good idea (even though 
> it seems inefficient). 
> 
> Here is a thought you may or may not find interesting: 
> If you want full standardization / repeatable ES installs, I suggest you look 
> into Docker (https://www.docker.com/).
> 
> With Docker you could run any number of Elasticsearch instances in isolation 
> of each other, without having to install them on your server manually. 
> The official Elasticsearch Docker image can be found here: 
> https://hub.docker.com/_/elasticsearch/ (ignore the deprecation message for 
> now). 
> 
> After installing Docker on your server, you create a docker-compose.yml file 
> that looks like this:
> version: '2'
> services:
> elasticsearch:
>   container_name: elasticsearch
>   image: elasticsearch:1.5.2
>   restart: unless-stopped
>   volumes:
> - elasticsearch-data:/var/lib/elasticsearch/data
> - elasticsearch-log:/var/log/elasticsearch
>   ports:
> - "9200:9200"
> 
> volumes:
> elasticsearch-data:
> elasticsearch-log:
> 
> 
> Then you can run your ES container like this:
> docker-compose up -d
> 
> 
> And you will have a clean, isolated Elasticsearch instance running, which 
> listens on port 9200.
> Create another docker-compose.yml with a different port for your second 
> Elasticsearch instance. 
> 
> 
> Be aware that Docker does add an extra level of complexity to your work, but 
> once you know how to use it, it makes life earlier.
> 
> Vincent
> 
> 
> On Friday, 10 March 2017 00:26:26 UTC-5, Darcy Christ wrote:
> Hi,
> 
> I'm running into an issue where certain resources are failing until I rebuild 
> the elasticsearch index. I'm not sure what is happening.
> 
> I'm running two arches installations and I want to be able to use a standard 
> install of elasticsearch so that I can better control its booting and 
> rebooting. I'm not sure I understand why there needs to be two 
> elasticsearches, but in my present setup I am running two on different ports. 
> Is it possible to run just one (or am I misunderstanding how elasticsearch 
> works)?
> 
> Any advise from people on how to improve the stability of this, so that it 
> doesn't have such problems.
> 
> Darcy
> 
> -- 
> -- 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 
> <https://groups.google.com/d/forum/archesproject?hl=en>
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Arches Project" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/archesproject/bPQ74wn_IMI/unsubscribe 
> <https://groups.google.com/d/topic/archesproject/bPQ74wn_IMI/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> archesproject+unsubscr...@googlegroups.com 
> <mailto:archesproject+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
-- 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.


[Arches] Customizing the HTML Editor (summernote)

2017-03-13 Thread Darcy Christ
Hi,

Has anyone customised the HTML editor in Arches? I am hoping to add 
codeview back in as we are getting a lot of extra markup which is messing 
with the display. I know we can remove styles, but copy and paste these 
days brings in so much markup. I'm hoping v4 has a full featured editor.

I've followed Summernote's documentation and have added the button, but it 
is not working yet. I think something may be happening with how the fields 
are copied into the editor when you choose to edit an item. I am 
comfortable navigating the code, just unfamiliar. So if anyone has done 
this, I would appreciate the help. Otherwise, I will report back on how it 
all works when I sort it out.

Darcy

-- 
-- 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.


[Arches] elasticsearch configuration recommendations

2017-03-09 Thread Darcy Christ
Hi,

I'm running into an issue where certain resources are failing until I 
rebuild the elasticsearch index. I'm not sure what is happening.

I'm running two arches installations and I want to be able to use a 
standard install of elasticsearch so that I can better control its booting 
and rebooting. I'm not sure I understand why there needs to be two 
elasticsearches, but in my present setup I am running two on different 
ports. Is it possible to run just one (or am I misunderstanding how 
elasticsearch works)?

Any advise from people on how to improve the stability of this, so that it 
doesn't have such problems.

Darcy

-- 
-- 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.


[Arches] Add Child Concept not available

2017-03-07 Thread Darcy Christ
Why wouldn't 'Add Child' under the Manage Tab be available to me?

https://arches4.readthedocs.io/en/latest/rdm/#adding-a-child-concept


Also, is there something fundamental that I do not understand about 
'Resource To Resource Relationship Types’, such that there is not ability 
to add a top concept? The Manage button simply does not exist.


I am trying to change the relationships dropdowns.


Darcy

-- 
-- 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.


[Arches] Styling Maps

2017-03-05 Thread Darcy Christ
Hi,

Can someone point me towards some documentation or give me an idea how to 
adjust the styles on the maps?

I can probably figure out how to add styles to my own layers, but I am 
specifically unsure how to adjust (and properly override) the styles for 
the searches that are using the Map Filter.


Regards,
Darcy

-- 
-- 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.


[Arches] Re: Arches local installation on virtual machine

2016-04-17 Thread Darcy Christ
Hi Christian,

Make sure you use the installation script: 
https://github.com/archesproject/arches/blob/master/arches/install/ubuntu_trusty_setup.sh

It is very important to do everything within the virtual environment, as 
that makes sure you are working with the right libraries. Python on Linux 
is usually an older version. You must be using Python 2.7. The same goes 
for using Postgresql 9.3. These are requirements right now.

Elasticsearch is essential for using arches. Not only does it power the 
search, but it also handles some caching.

The proper command is "python manage.py *runserver* :"

Hope this helps!


Darcy

-- 
-- 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.


Re: [Arches] Strange error suddenly appeared with the Classification section

2016-04-13 Thread Darcy Christ
I think the circular references, likely caused by reimporting the authority 
files is probably the cause. I am trying to rebuild the whole thing. Adam 
pointed me to a script which has enabled me to dump the json and convert it 
to an arches file. I am still getting errors on the import, but this is 
probably the right direction.

I am looking forward to the next version of Arches, which will make it 
easier to dump and restore an installation.

-- 
-- 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.


[Arches] Re: Need testing of a python script that converts json to .arches

2016-04-13 Thread Darcy Christ
Hi Jae,

Thank you for this script. It might help me with a corrupt database. 
Unfortunately, I have run into an error running the import. I fixed all the 
issues in the .arches file, but not I am hitting this:

LOADING RESOURCES 
(/home/hkarches/hongkong/hongkong/source_data/business_data/sample.arches)

time to parse 
/home/hkarches/hongkong/hongkong/source_data/business_data/sample resources 
= 0.00739693641663

Traceback (most recent call last):

  File "manage.py", line 28, in 

execute_from_command_line(sys.argv)

  File 
"/home/hkarches/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 399, in execute_from_command_line

utility.execute()

  File 
"/home/hkarches/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 392, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)

  File 
"/home/hkarches/lib/python2.7/site-packages/django/core/management/base.py", 
line 242, in run_from_argv

self.execute(*args, **options.__dict__)

  File 
"/home/hkarches/lib/python2.7/site-packages/django/core/management/base.py", 
line 285, in execute

output = self.handle(*args, **options)

  File 
"/home/hkarches/lib/python2.7/site-packages/arches/management/commands/packages.py",
 
line 73, in handle

self.install(package_name)

  File 
"/home/hkarches/lib/python2.7/site-packages/arches/management/commands/packages.py",
 
line 126, in install

install() 

  File "/home/hkarches/hongkong/hongkong/setup.py", line 6, in install

setup.install()

  File "/home/hkarches/lib/python2.7/site-packages/arches_hip/setup.py", 
line 35, in install

load_resources()

  File "/home/hkarches/lib/python2.7/site-packages/arches_hip/setup.py", 
line 85, in load_resources

rl.load(f)

  File 
"/home/hkarches/lib/python2.7/site-packages/arches/app/utils/data_management/resources/importer.py",
 
line 67, in load

results = self.resource_list_to_entities(resources, archesjson)

  File 
"/home/hkarches/lib/python2.7/site-packages/arches/app/utils/data_management/resources/importer.py",
 
line 112, in resource_list_to_entities

master_graph.index()

  File 
"/home/hkarches/lib/python2.7/site-packages/arches/app/models/resource.py", 
line 313, in index

geojson_documents = 
self.prepare_documents_for_map_index(geom_entities=document['geometries'])

  File 
"/home/hkarches/lib/python2.7/site-packages/arches_hip/models/resource.py", 
line 203, in prepare_documents_for_map_index

if node.find_entities_by_type_id('ADDRESS_TYPE.E55')[0].label == 
'Primary':

IndexError: list index out of range


Any idea what is happening?

-- 
-- 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.


Re: [Arches] Strange error suddenly appeared with the Classification section

2016-04-10 Thread Darcy Christ
Found the query in question:

WITH RECURSIVE children AS (
SELECT d.conceptidfrom, d.conceptidto, c2.value, c2.valueid as 
valueid, c.value as valueto, c.valueid as valueidto, c.valuetype as vtype, 
1 AS depth, array[d.conceptidto] AS conceptpath, array[c.valueid] AS idpath 
   ---|NonRecursive Part
FROM concepts.relations d
JOIN concepts.values c ON(c.conceptid = d.conceptidto) 
JOIN concepts.values c2 ON(c2.conceptid = d.conceptidfrom) 
WHERE d.conceptidfrom = 
'5ff92cb0-df58-11e5-ae4b-179456d280d9'
and c2.valuetype = 'prefLabel'
and c.valuetype in ('prefLabel', 'sortorder', 'collector')
and (d.relationtype = 'member' or d.relationtype = 
'hasTopConcept')
UNION
SELECT d.conceptidfrom, d.conceptidto, v2.value, v2.valueid 
as valueid, v.value as valueto, v.valueid as valueidto, v.valuetype as 
vtype, depth+1, (conceptpath || d.conceptidto), (idpath || v.valueid)   
---|RecursivePart
FROM concepts.relations  d
JOIN children b ON(b.conceptidto = d.conceptidfrom) 
JOIN concepts.values v ON(v.conceptid = d.conceptidto) 
JOIN concepts.values v2 ON(v2.conceptid = d.conceptidfrom) 
WHERE  v2.valuetype = 'prefLabel'
and v.valuetype in ('prefLabel','sortorder', 'collector')
and (d.relationtype = 'member' or d.relationtype = 
'hasTopConcept')
) SELECT conceptidfrom, conceptidto, value, valueid, valueto, 
valueidto, depth, idpath, conceptpath, vtype FROM children ORDER BY depth, 
conceptpath;

After running this in Postico, all I get is: 

server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.


Any ideas how to debug this?

-- 
-- 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.


Re: [Arches] Errors exporting Concept Scheme (using nginx)

2016-03-15 Thread Darcy Christ
Ok, I was able to export through the Django dev server. And I found the 
error in the nginx log:

2016/03/13 17:28:20 [error] 22467#0: *138 upstream prematurely closed 
connection while reading response header from upstream, client: 
147.8.206.182, server: heritage.hku.hk, request: "GET 
/yangon/concepts/----0001?f=skos HTTP/1.1", 
upstream: 
"http://unix:/home/hkarches/run/gunicorn_yangon.sock:/yangon/concepts/----0001?f=skos;,
 
host: "heritage.hku.hk", referrer: 
"http://heritage.hku.hk/yangon/rdm/4a89af80-a1b1-4b91-963b-994d7d880953;

2016/03/13 17:28:20 [error] 22467#0: *138 open() 
"/www/heritage.hku.hk/500.html" failed (2: No such file or directory), 
client: 147.8.206.182, server: heritage.hku.hk, request: "GET 
/yangon/concepts/----0001?f=skos HTTP/1.1", 
upstream: 
"http://unix:/home/hkarches/run/gunicorn_yangon.sock:/yangon/concepts/----0001?f=skos;,
 
host: "heritage.hku.hk", referrer: 
"http://heritage.hku.hk/yangon/rdm/4a89af80-a1b1-4b91-963b-994d7d880953;

Not sure what to do about this, since this request is being passed on to 
Django (through gunicorn).


Any suggestions?

-- 
-- 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.


[Arches] Errors exporting Concept Scheme (using nginx)

2016-03-13 Thread Darcy Christ
When I try to export a concept scheme from the RDM, I get a 404 Not Found 
message from nginx. Obviously this is because nginx which is fronting the 
website does not have access to that resource. Is there some configuration 
I need to enable this?

-- 
-- 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.


[Arches] Re: Debugging load_resources

2016-02-24 Thread Darcy Christ
I thought the issue was my files, but I've tried to import the samples (
   python manage.py packages -o load_resources -s 
'../lib/python2.7/site-packages/arches_hip/source_data/sample_data/concepts/sample_authority_files/')
 
and they are failing as well. Perhaps my installation is not good still.

-- 
-- 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.


[Arches] cannot identify image file

2016-02-19 Thread Darcy Christ
My first attempt to upload an image and I seem to be having issues with the 
image processing library:

   cannot identify image file 

You can see the full error here: http://dpaste.com/1N0PK6A


Any ideas what is happening?

-- 
-- 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.


[Arches] Data does not seem to be loading: only seeing "Loading resource data..."

2016-02-11 Thread Darcy Christ
I have successfully installed arches and arches_hip (I think). Before 
running the install, I moved my authority files into place and they appear 
to have been successfully loaded. For some reason, Nothing is really 
happening on the map. I am only seeing "Loading resource data...". Nothing 
ever loads.

Does anyone have any advice on how to debug this or what I could be looking 
for in order to determine what I have done wrong.

Any help is much appreciated.

FYI, my site is at http://147.8.205.97


Regards,
Darcy

-- 
-- 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.


[Arches] Issues with MAP_EXTENT

2016-02-11 Thread Darcy Christ
I've finished installing arches and arches_hip. I'm having issues setting 
the MAP_EXTENT correctly. I am trying to focus my map on Hong Kong. These 
are my settings:

DEFAULT_MAP_X = 2544971

DEFAULT_MAP_Y = 12709869

DEFAULT_MAP_ZOOM = 10

MAP_MIN_ZOOM = 7

MAP_MAX_ZOOM = 19

MAP_EXTENT = '2576628,12668893, 2532369,12753807'


When the map loads, I am somewhere in the Norwegian Sea. Any advice on what 
I should set MAP_EXTENT to?



Regards,
Darcy

-- 
-- 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.