Re: [Arches] Re: Accessing languages via Django

2016-07-11 Thread Alexei Peters
Hi Andrea,
I'm still unsure when this is happening, but I'm going to take a stab at
this anyway!  :)

I'm making this assumption, that the dropdowns (eg
SITE_FUNCTION_CERTAINTY_TYPE.E55)
are being populated only with the concepts in the selected language.  That
is if I've set the site to display everything in English, then the
dropdowns are only displaying the English preflabels.

If that's the case, then when you say from your email of July 4th

>  It would appear that the problem lies with the viewModel not correctly
> picking up the labels when the language selected is not the one with which
> the branches were originally saved.

that you are correct.

You go on to say:

> This branch had been added, originally, in English, but the labels passed
> by the "load" method have been altered to adhere to the selected language
> (Arabic).


I think this is the problem.  The dropdowns reference value id's (eg:
d30fef92-728b-46f6-a4c5-b42e552a0326 and 92c37d46-dc23-4869-b868-b978d9f972aa)
and not concept ids.  It could be that those value ids in your data

{"nodes":[{"value":"d30fef92-728b-46f6-a4c5-b42e552a0326","label":"عالي","child_entities":[],"entitytypeid":"SITE_FUNCTION_CERTAINTY_TYPE.E55","parentid":"679aa456-943d-4b2d-8c25-947c1f635307","entityid":"86e23739-93f0-40d4-8793-d1dc5043a4f9","property":"P2","businesstablename":"domains"},{"value":"92c37d46-dc23-4869-b868-b978d9f972aa","label":"ديني","child_entities":[],"entitytypeid":"SITE_FUNCTION_TYPE.E55","parentid":"6b8526b0-62ec-4860-9bee-ddf6830d3ff8","entityid":"679aa456-943d-4b2d-8c25-947c1f635307","property":"P2","businesstablename":"domains"}]}


don't reference id's in the dropdowns.  I would then expect that when you
click to edit a branch that the value referenced in the data can't be found
in the dropdowns options and the write method get's a blank value (I've
actually confirmed this happens).

There's also a file called js/plugins/knockout-select2.js that has an
"update" method that you might be interested in.  It's one of the first
things that gets called when a user clicks to edit a value that's attached
to a dropdown.

Hopefully this helps.
-Alexei



Director of Web Development - Farallon Geographics, Inc. - 971.227.3173

On Thu, Jul 7, 2016 at 5:30 AM,  wrote:

> And here is a screenshot of my debugging of branch-list.js. As you can
> see, in the writeable observable, the read correctly maps the valueid of
> the concept 'Not Applicable', which is stored in ret. However, the 'write'
> callback does not obtain ret, and the argument 'value' is therefore void.
>
>
> 
>
>
>
> On Wednesday, July 6, 2016 at 5:34:59 PM UTC+1, zerbini...@gmail.com
> wrote:
>
>> Alexei,
>>
>> I have narrowed it down a bit further. The writable computed observable
>> that is returned by getEditedNode correctly reads the values retrieved by
>> the method getEditedBranch(), but then, if the concept is in Arabic, it
>> does not pass it to the "write" callback, despite the variable 'ret' (which
>> is returned by the 'read' method in the observable) correctly storing the
>> value of the Arabic concept. 'ret', in this case, is essentially not passed
>> to the 'write' callback. However, if I add a new branch when the platform
>> language is Arabic, save the form and then edit it, all works fine: 'read'
>> passes ret to the object 'value' of the 'write' callback and no problem
>> arises. I don't understand why the problem is occurring, but I am certain
>> that it happens at the juncture between read and write in getEditedNode.
>>
>>
>> Andrea
>>
>> On Monday, July 4, 2016 at 7:38:19 PM UTC+1, zerbini...@gmail.com wrote:
>>
>>> Hi Alexei,
>>>
>>> I have been debugging branch-list.js, and particularly the method
>>> getEditedNode. It would appear that the problem lies with the viewModel not
>>> correctly picking up the labels when the language selected is not the one
>>> with which the branches were originally saved.
>>> The form data is correctly passed by forms.py with labels in the
>>> selected language. So, a console log this.data[this.dataKey].branch_lists
>>> of  on the nodes SITE_FUNCTION_CERTAINTY_TYPE and SITE_FUNCTION_CERTAINTY
>>> returns this:
>>>
>>>
>>> {"nodes":[{"value":"d30fef92-728b-46f6-a4c5-b42e552a0326","label":"عالي","child_entities":[],"entitytypeid":"SITE_FUNCTION_CERTAINTY_TYPE.E55","parentid":"679aa456-943d-4b2d-8c25-947c1f635307","entityid":"86e23739-93f0-40d4-8793-d1dc5043a4f9","property":"P2","businesstablename":"domains"},{"value":"92c37d46-dc23-4869-b868-b978d9f972aa","label":"ديني","child_entities":[],"entitytypeid":"SITE_FUNCTION_TYPE.E55","parentid":"6b8526b0-62ec-4860-9bee-ddf6830d3ff8","entityid":"679aa456-943d-4b2d-8c25-947c1f635307","property":"P2","businesstablename":"domains"}]}
>>>
>>>
>>> This branch had been added, originally, in English, but the labels
>>> passed by the "lo

Re: [Arches] How Arches url system works

2016-07-11 Thread Adam Cox
Hello Amit,

Arches is built on the Django framework, which, yes uses a very different
url system than you are expecting. URLs don't simply resolve to the
location of an html file, they put to a "view", which is a python class
that is passed to a template html file (which has it's own js file in
arches). Here's some of the official Django documentation that deals with
urls: https://docs.djangoproject.com/en/1.9/topics/http/urls/

You'll find the html that you are looking for in templates/views/forms/,
but you'll have to look in the virtualenv arches_hip module, not in your
app.  Just take the template in arches_hip that you want to modify, copy
it, and paste it into the corresponding location in your app.  (If you want
to modify the js as well, you'll find it in media/js/views/forms/.)  Then
you can modify the new files in your app, and Django will use them instead
of the defaults inside the virtual environment.

Good luck!

Adam

On Mon, Jul 11, 2016 at 4:47 AM, amit ray  wrote:

> Hello,
> I'm a newbie to Arches environment, working on an Arches project. The
> arches default installation site is working correctly.But I want some
> changes to the default Arches installation files like location.htm and
> other. I can locate some HTML files but for others, I'm not able to find
> the exact path to the directory as we do on a general site.
>
> Is Arches uses a different system to arrange URLs? For example, consider
> this URL
> http://10.2.2.33:8000/resources/HERITAGE_RESOURCE_GROUP.E27/district_classification/
>
>
> I tried to locate the resources directory or district_classification
> directory in my server but unable to locate this. I want to change the
> classification HTML file there.
> Any Help will be appreciated.
>
> Thanks
> Amit
>
> --
> -- 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] How Arches url system works

2016-07-11 Thread amit ray
Hello,
I'm a newbie to Arches environment, working on an Arches project. The 
arches default installation site is working correctly.But I want some 
changes to the default Arches installation files like location.htm and 
other. I can locate some HTML files but for others, I'm not able to find 
the exact path to the directory as we do on a general site. 

Is Arches uses a different system to arrange URLs? For example, consider 
this 
URL 
http://10.2.2.33:8000/resources/HERITAGE_RESOURCE_GROUP.E27/district_classification/
 

I tried to locate the resources directory or district_classification 
directory in my server but unable to locate this. I want to change the 
classification HTML file there.
Any Help will be appreciated.

Thanks 
Amit

-- 
-- 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: Signing in

2016-07-11 Thread Roshan Bhurtha
Hi Vincent. Thanks for the welcome!
I am glad you like our web site, but as I have said previously there is a 
lot more to do . There are some bugs to be removed and our user interface 
for  3DHOP is primitive. It needs a good overhaul. Our primary objective 
was to show case a subset of our data, where users can then request more if 
they like it.

I will start a thread regarding the use of 3DHOP if anyone wants to talk 
about it. I also just started with the Arches install and don't have 
anything up & running.

Your facebook page has interesting projects and I am looking forward to see 
your web site !

regards
Roshan

On Thursday, 7 July 2016 16:31:59 UTC+2, Vincent Meijer wrote:
>
> Hi Roshan,
>
> Welcome to Arches! Your experience with documenting heritage and building 
> websites will be a valuable addition to the team. 
> Your website looks really good. I especially liked the animations where 
> the monument walls are stripped down to show what's behind them.
>
> We both have quite similar jobs: I work for the Center for Virtualization 
> and Applied Spatial Technologies (CVAST) at the University of South 
> Florida. The center collects GIS and 3D data of (archaeological) heritage 
> sites and objects. (No website live yet, but here's our Facebook page: 
> https://www.facebook.com/USFCVAST/ 
> 
>  
> ) 
> Like you, I am tasked with anything IT, but I also go on field 
> expeditions. I just came back from a trip to Spain to scan monuments with 
> terrestrial laser scanners and photogrammetry. 
>
> I am also looking for ways of presenting our 3D data on Arches. For now I 
> plan on implementing 3DHOP for meshes and Potree for point clouds. I think 
> there are more people here interested in that, so I was hoping you could 
> start a new thread for us to explain how you integrated 3DHOP in your 
> current website. Have you automated anything? How do you store and deploy 
> the models? Things like that could be interesting for all of us. 
>
> Thanks and again: welcome to Arches!
>
> Vincent
>
>
> On Wednesday, 6 July 2016 05:59:35 UTC-4, Roshan Bhurtha wrote:
>>
>> Hi Ed.
>> I am Roshan Bhurtha, from the Zamani Project, Geomatics Division, 
>> University of Cape Town. I am an Electrical Engineer/Programmer and I work 
>> in a team which documents heritage sites in the Middle East and Africa.
>> We have been documenting heritage sites for more than a decade and worked 
>> with international institutions, incl. the Getty ( Valley of the Queens 
>> Project). My function in the team is: writing code when needed for our 
>> laser scan processing pipeline, processing 3D terrestrial lidar, automating 
>> processes, teaching programming, fieldwork (the most interesting part), 
>> metadata stuff,  and some admin :)
>>  
>> Arches looks like a very nice way to present our data to the public ( and 
>> we have a lot of it ). I want a system that can help me manage users with 
>> different access levels, with the possibility to upload download data and 
>> present our massive 3D data sets and GIS data on the web. We do that, 
>> partially on our web site, but there is lots of room for improvements (
>> www.zamaniproject.org) ! 
>> I currently use FTP when having to dish out data to people, but starts to 
>> be a pain.
>>
>> We are based at the beautiful University of Cape Town, at the foot of the 
>> Devil's Peak. Out of my window is, unfortunately, another set of ugly 
>> windows. But a 1 minute walk out of the office building gives me a nice 
>> panoramic view of the city.
>>
>> I look forward to Arches!
>> Roshan
>>
>>
>>
>>
>>
>>
>>  
>>
>> On Thursday, 22 August 2013 17:29:37 UTC+2, Edmund Lee wrote:
>>>
>>> Hello all, ... and welcome in particular to those who have joined the 
>>> Arches Discussion Forum recently.
>>>
>>> This online group was initially set up for the project team, and has 
>>> just recently been opened up as the public, so some of us haven't met 
>>> before. How about we all share a bit of background, just like we would if 
>>> we were meeting in the real world? If that sounds good to you, reply to 
>>> this thread and share with the group some or all of the following:
>>>
>>>- what is your interest in Arches?
>>>
>>>
>>>- where in the world are you working?
>>>
>>> and, just to make it a bit more fun,
>>>
>>>- what can you see out of the window? Is there any heritage in your 
>>>view?
>>>
>>> I look forward to getting to know everyone a bit better!
>>>
>>>
>>> Ed
>>>
>>

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

[Arches] Re: Signing in

2016-07-11 Thread Roshan Bhurtha
Hi Ed. Thanks for the warm welcome. I am glad you like our web page but we 
have a lot more work to do on it.
I only started looking at Arches and going though the installation process 
and that of  *Arches-HIP *

thanks!
Roshan

On Thursday, 7 July 2016 11:00:21 UTC+2, Edmund Lee wrote:
>
> Hi Roshan, and welcome to the Arches group! You are joining hundreds of 
> members from around the world who have an interest in the development of 
> the Arches software.
>
> I'm sorry to hear you don't have a great view from you window, but your 
> project website looks truly amazing. Many thanks for the link.
>
> There are many GIS experts here who can I'm sure contribute thoughts on 
> any question you may have. I'm less familiar with the potential for Arches 
> to handle large 3D datasets, though it's a proposal that has been discussed 
> previously here e.g. 
>
>
> https://docs.google.com/document/d/1Qa9cvqq3-8paIaD5yIi-qdjJdehylCp9mcZ8SEif2W4/edit
>
> Can anyone else on the project team comment on 3D data handling? Perhaps 
> we need a discussion thread to cover that?
>
> All good wishes
>
> Ed
>
> On Wednesday, July 6, 2016 at 10:59:35 AM UTC+1, Roshan Bhurtha wrote:
>
>> Hi Ed.
>> I am Roshan Bhurtha, from the Zamani Project, Geomatics Division, 
>> University of Cape Town. I am an Electrical Engineer/Programmer and I work 
>> in a team which documents heritage sites in the Middle East and Africa.
>> We have been documenting heritage sites for more than a decade and worked 
>> with international institutions, incl. the Getty ( Valley of the Queens 
>> Project). My function in the team is: writing code when needed for our 
>> laser scan processing pipeline, processing 3D terrestrial lidar, automating 
>> processes, teaching programming, fieldwork (the most interesting part), 
>> metadata stuff,  and some admin :)
>>  
>> Arches looks like a very nice way to present our data to the public ( and 
>> we have a lot of it ). I want a system that can help me manage users with 
>> different access levels, with the possibility to upload download data and 
>> present our massive 3D data sets and GIS data on the web. We do that, 
>> partially on our web site, but there is lots of room for improvements (
>> www.zamaniproject.org) ! 
>> I currently use FTP when having to dish out data to people, but starts to 
>> be a pain.
>>
>> We are based at the beautiful University of Cape Town, at the foot of the 
>> Devil's Peak. Out of my window is, unfortunately, another set of ugly 
>> windows. But a 1 minute walk out of the office building gives me a nice 
>> panoramic view of the city.
>>
>> I look forward to Arches!
>> Roshan
>>
>>
>>
>>
>>
>>
>>  
>>
>> On Thursday, 22 August 2013 17:29:37 UTC+2, Edmund Lee wrote:
>>>
>>> Hello all, ... and welcome in particular to those who have joined the 
>>> Arches Discussion Forum recently.
>>>
>>> This online group was initially set up for the project team, and has 
>>> just recently been opened up as the public, so some of us haven't met 
>>> before. How about we all share a bit of background, just like we would if 
>>> we were meeting in the real world? If that sounds good to you, reply to 
>>> this thread and share with the group some or all of the following:
>>>
>>>- what is your interest in Arches?
>>>
>>>
>>>- where in the world are you working?
>>>
>>> and, just to make it a bit more fun,
>>>
>>>- what can you see out of the window? Is there any heritage in your 
>>>view?
>>>
>>> I look forward to getting to know everyone a bit better!
>>>
>>>
>>> Ed
>>>
>>

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