These are chat archives for Sensorica/valuenetwork

20th
Apr 2016
Jim Anastassiou
@snowy13
Apr 20 2016 18:43
@fosterlynn I have a question :) Is there a default navmap and one specifically made for Sensorica? I am referring to the one in the valnet repo Either way loading the help.json file leaves you with a broken navmap.
If it's a new navmap I can update help.json and issue my first pull request :D
Lynn Foster
@fosterlynn
Apr 20 2016 18:45
No, there isn't a special one for Sensorica. I changed it for the new exchange code though. You are running that I assume?
Also, you have to do a collect static to get stuff like that to take in the server.... I can look for syntax.
Oh and there
there's a manual thing you have to do in the data for the home page.
Sorry so complicated - that is part of making the home page user definable.
So yeah, some help somewhere needs updating... :)
Lynn Foster
@fosterlynn
Apr 20 2016 18:50
Looking at your link to the repo, that is the piece you need for the image map code. So that needs to replace the image map code in the Home Page Object, in admin.
Jim Anastassiou
@snowy13
Apr 20 2016 18:52
By manual I'm assuming you mean from the admin ->home page layout -> home page object ? I fixed the brok...you beat me to it :)
yeah I figured it out...used your new navmap code
I was going to change the help.json with your new code
Lynn Foster
@fosterlynn
Apr 20 2016 18:52
I don't know if on the server you are using you need to do the collect static to get the image itself to come in. Does your image match the image map?
So... what is help.json?? :)
Oh Bob just said he told you about collect static
Jim Anastassiou
@snowy13
Apr 20 2016 18:53
I added collect static to local_settings.py to get the right image map
yup
Lynn Foster
@fosterlynn
Apr 20 2016 18:54
ok cool
Jim Anastassiou
@snowy13
Apr 20 2016 18:54
And this to load some starter help:
./manage.py loaddata ./fixtures/help.json
thats from your install.txt
I guess it's only used for testing?
Bob Haugen
@bhaugen
Apr 20 2016 18:56
oh, ok
I understand
just a sec
Jim Anastassiou
@snowy13
Apr 20 2016 18:57
Is it worth that I fix it? or is that never used? Sorry still a newb :|
Bob Haugen
@bhaugen
Apr 20 2016 18:58
yeah, some oldimage map code from the homepage layout got saved in the help.json fixture and overlaid the newer stuff.
We need to fix that in the fixture.
Or set up a new fixture.
I think we need to do it. But thanks for the offer.
We put some fixtures out there for starter objects for new databases quite awhile ago.
Jim Anastassiou
@snowy13
Apr 20 2016 18:59
No prob..just trying to get my feet wet..
Bob Haugen
@bhaugen
Apr 20 2016 18:59
Part of the problem is it's called help.json so we thought it was only the help text.
Apparently not...
so I think we get rid of the homepage layout in help.json and maybe set up another fixture with the good image map code.
I'll add an issue. Can't do it now.
But thanks for exposing the bug.
Jim Anastassiou
@snowy13
Apr 20 2016 19:03
Cool. As long as I don't annoy the both of you. I get excited some times for nerdy things ;)
Bob Haugen
@bhaugen
Apr 20 2016 19:03
Nah, we love it.
You are being very constructive.
We only get annoyed by repetitive overly general complaints that we can't do anything about. Like "it's not intuitive".
We allow each person to say that about 10 times and then it becomes a drinking game.
Lynn Foster
@fosterlynn
Apr 20 2016 19:09
Yeah @snowy13 , appreciate your approach. Gotta go for couple hours....
Jim Anastassiou
@snowy13
Apr 20 2016 19:10
lol