Family Maps don't work in Narrative Web Report

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Family Maps don't work in Narrative Web Report

Doug
Family Maps have not been working properly in NarWeb for
some time now, though they were fine in earlier gramps
versions.  This was reported as bug #6813 a couple of months
ago.

It's not clear to me whether the bug is considered still
active or it's being overlooked because the relationship
report shows a RESOLVED bug.

What's the current situation? Is there any prospect of progress?

Doug

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Family Maps don't work in Narrative Web Report

jerome

> It's not clear to me whether the bug is considered still
active or it's being overlooked because the relationship
report shows a RESOLVED bug.

I tested this feature after having fixed a typo before Gramps 3.4.2: the related resolved bug.
I tested Gramps 3.4.5 (4.0.x) and it still failed! => confirmed and not a regression: something else!

Gramps 3.4.2 has been released on 2012.10.28

http://sourceforge.net/p/gramps/code/HEAD/log/?path=/branches/maintenance/gramps34/src/plugins/webreport/NarrativeWeb.py

It seems to be related to these changes:

@@ -260,20 +301,27 @@ function initialize(){ var map = new OpenLayers.Map('place_canvas'); -    var wms = new OpenLayers.Layer.WMS( -      "OpenLayers WMS", -      "http://vmap0.tiles.osgeo.org/wms/vmap0", -      {'layers':'basic'}); -    map.addLayer(wms); - -    map.setCenter(new OpenLayers.LonLat(0, 0), 0); +    var osm = new OpenLayers.Layer.OSM() +    map.addLayer(osm); +  +    var lonLat = new OpenLayers.LonLat(%s, %s) +        .transform( +            new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984 +            map.getProjectionObject() // to Spherical Mercator Projection +        ); +    var zoom =16; +  +    map.setCenter(lonLat, zoom); var markers = new OpenLayers.Layer.Markers("Markers"); +    markers.addMarker(new OpenLayers.Marker(lonLat)); map.addLayer(markers); -      marker = new OpenLayers.Marker(new OpenLayers.LonLat(%s, %s); -      markers.addMarker(marker);  -      map.addControl(new
 OpenLayers.Control.LayerSwitcher()); +    // add overview control +    map.addControl(new OpenLayers.Control.OverviewMap()); + +    // add a layer switcher +    map.addControl(new OpenLayers.Control.LayerSwitcher()); }"""

+    def display_family_relationships(self, family, place_lat_long): +        """ +        Displays a family's relationships ... + +        @param: family -- the family to be displayed +        @param: place_lat_long -- for use in Family Map Pages. This will be None +        if called from Family pages, which do not create a Family Map +        """ +        with Html("div", class_ ="subsection", id ="families") as section: +            section += Html("h4", _("Families"), inline =True) + +            table_class = "infolist" +            with Html("table", class_ = table_class) as table: +                section += table +                for person_handle in [family.get_father_handle(), family.get_mother_handle()]: +                    person = self.dbase_.get_person_from_handle(person_handle) +                    if person: +                        table += self.display_spouse(person, family, place_lat_long) + +                details =
 self.display_family_details(family, place_lat_long) +                if details is not None: +                    table += details +        return section

etc ...


http://sourceforge.net/p/gramps/code/HEAD/tree//branches/maintenance/gramps34/src/plugins/webreport/NarrativeWeb.py?diff=20538

which sound also correct!

So, I do not know more (yet).




----- Mail original -----
De : doug <[hidden email]>
À : Gramps-developers mailing list <[hidden email]>
Cc :
Envoyé le : Mercredi 14 août 2013 12h58
Objet : [Gramps-devel] Family Maps don't work in Narrative Web Report

Family Maps have not been working properly in NarWeb for
some time now, though they were fine in earlier gramps
versions.  This was reported as bug #6813 a couple of months
ago.

It's not clear to me whether the bug is considered still
active or it's being overlooked because the relationship
report shows a RESOLVED bug.

What's the current situation? Is there any prospect of progress?

Doug

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Family Maps don't work in Narrative Web Report

jerome
I did changes between revisions 20595 and 20605

http://sourceforge.net/p/gramps/code/20605/tree//branches/maintenance/gramps34/src/plugins/webreport/NarrativeWeb.py?diff=20595

but I cannot understand why it fails on family maps because it works on individuals!




----- Mail original -----
De : jerome <[hidden email]>
À : doug <[hidden email]>; Gramps-developers mailing list <[hidden email]>
Cc :
Envoyé le : Mercredi 14 août 2013 14h57
Objet : Re: [Gramps-devel] Family Maps don't work in Narrative Web Report


> It's not clear to me whether the bug is considered still
active or it's being overlooked because the relationship
report shows a RESOLVED bug.

I tested this feature after having fixed a typo before Gramps 3.4.2: the related resolved bug.
I tested Gramps 3.4.5 (4.0.x) and it still failed! => confirmed and not a regression: something else!

Gramps 3.4.2 has been released on 2012.10.28

http://sourceforge.net/p/gramps/code/HEAD/log/?path=/branches/maintenance/gramps34/src/plugins/webreport/NarrativeWeb.py

It seems to be related to these changes:

@@ -260,20 +301,27 @@ function initialize(){ var map = new OpenLayers.Map('place_canvas'); -    var wms = new OpenLayers.Layer.WMS( -      "OpenLayers WMS", -      "http://vmap0.tiles.osgeo.org/wms/vmap0", -      {'layers':'basic'}); -    map.addLayer(wms); - -    map.setCenter(new OpenLayers.LonLat(0, 0), 0); +    var osm = new OpenLayers.Layer.OSM() +    map.addLayer(osm); +  +    var lonLat = new OpenLayers.LonLat(%s, %s) +        .transform( +            new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984 +            map.getProjectionObject() // to Spherical Mercator Projection +        ); +    var zoom =16; +  +    map.setCenter(lonLat, zoom); var markers = new OpenLayers.Layer.Markers("Markers"); +    markers.addMarker(new OpenLayers.Marker(lonLat)); map.addLayer(markers); -      marker = new OpenLayers.Marker(new OpenLayers.LonLat(%s, %s); -      markers.addMarker(marker); 
 -      map.addControl(new
OpenLayers.Control.LayerSwitcher()); +    // add overview control +    map.addControl(new OpenLayers.Control.OverviewMap()); + +    // add a layer switcher +    map.addControl(new OpenLayers.Control.LayerSwitcher()); }"""

+    def display_family_relationships(self, family, place_lat_long): +        """ +        Displays a family's relationships ... + +        @param: family -- the family to be displayed +        @param: place_lat_long -- for use in Family Map Pages. This will be None +        if called from Family pages, which do not create a Family Map +        """ +        with Html("div", class_ ="subsection", id ="families") as section: +            section += Html("h4", _("Families"), inline =True) + +            table_class = "infolist" +            with Html("table", class_ = table_class) as table: +                section += table +                for person_handle in [family.get_father_handle(), family.get_mother_handle()]: +                    person = self.dbase_.get_person_from_handle(person_handle) +                    if person: +                        table +=
 self.display_spouse(person, family, place_lat_long) + +                details =
self.display_family_details(family, place_lat_long) +                if details is not None: +                    table += details +        return section

etc ...


http://sourceforge.net/p/gramps/code/HEAD/tree//branches/maintenance/gramps34/src/plugins/webreport/NarrativeWeb.py?diff=20538

which sound also correct!

So, I do not know more (yet).




----- Mail original -----
De : doug <[hidden email]>
À : Gramps-developers mailing list <[hidden email]>
Cc :
Envoyé le : Mercredi 14 août 2013 12h58
Objet : [Gramps-devel] Family Maps don't work in Narrative Web Report

Family Maps have not been working properly in NarWeb for
some time now, though they were fine in earlier gramps
versions.  This was reported as bug #6813 a couple of months
ago.

It's not clear to me whether the bug is considered still
active or it's being overlooked because the relationship
report shows a RESOLVED bug.

What's the current situation? Is there any prospect of progress?

Doug

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Family Maps don't work in Narrative Web Report

jerome
It looks like we should also migrate 'osm_markers' javascript section (NarrativeWeb.py), which is still based on http://vmap0.tiles.osgeo.org maps layer hosting.

We can find some samples on openstreetmap wiki[1].

[1] https://wiki.openstreetmap.org/wiki/OpenLayers_Simple_Example





----- Mail original -----
De : jerome <[hidden email]>
À : doug <[hidden email]>; Gramps-developers mailing list <[hidden email]>
Cc :
Envoyé le : Mercredi 14 août 2013 15h19
Objet : Re: [Gramps-devel] Family Maps don't work in Narrative Web Report

I did changes between revisions 20595 and 20605

http://sourceforge.net/p/gramps/code/20605/tree//branches/maintenance/gramps34/src/plugins/webreport/NarrativeWeb.py?diff=20595

but I cannot understand why it fails on family maps because it works on individuals!




----- Mail original -----
De : jerome <[hidden email]>
À : doug <[hidden email]>; Gramps-developers mailing list <[hidden email]>
Cc :
Envoyé le : Mercredi 14 août 2013 14h57
Objet : Re: [Gramps-devel] Family Maps don't work in Narrative Web Report


> It's not clear to me whether the bug is considered still
active or it's being overlooked because the relationship
report shows a RESOLVED bug.

I tested this feature after having fixed a typo before Gramps 3.4.2: the related resolved bug.
I tested Gramps 3.4.5 (4.0.x) and it still failed! => confirmed and not a regression: something else!

Gramps 3.4.2 has been released on 2012.10.28

http://sourceforge.net/p/gramps/code/HEAD/log/?path=/branches/maintenance/gramps34/src/plugins/webreport/NarrativeWeb.py

It seems to be related to these changes:

@@ -260,20 +301,27 @@ function initialize(){ var map = new OpenLayers.Map('place_canvas'); -    var wms = new OpenLayers.Layer.WMS( -      "OpenLayers WMS", -      "http://vmap0.tiles.osgeo.org/wms/vmap0", -      {'layers':'basic'}); -    map.addLayer(wms); - -    map.setCenter(new OpenLayers.LonLat(0, 0), 0); +    var osm = new OpenLayers.Layer.OSM() +    map.addLayer(osm); +  +    var lonLat = new OpenLayers.LonLat(%s, %s) +        .transform( +            new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984 +            map.getProjectionObject() // to Spherical Mercator Projection +        ); +    var zoom =16; +  +    map.setCenter(lonLat, zoom); var markers = new OpenLayers.Layer.Markers("Markers"); +    markers.addMarker(new OpenLayers.Marker(lonLat)); map.addLayer(markers); -      marker = new OpenLayers.Marker(new OpenLayers.LonLat(%s, %s); -      markers.addMarker(marker); 
-      map.addControl(new
OpenLayers.Control.LayerSwitcher()); +    // add overview control +    map.addControl(new OpenLayers.Control.OverviewMap()); + +    // add a layer switcher +    map.addControl(new OpenLayers.Control.LayerSwitcher()); }"""

+    def display_family_relationships(self, family, place_lat_long): +        """ +        Displays a family's relationships ... + +        @param: family -- the family to be displayed +        @param: place_lat_long -- for use in Family Map Pages. This will be None +        if called from Family pages, which do not create a Family Map +        """ +        with Html("div", class_ ="subsection", id ="families") as section: +            section += Html("h4", _("Families"), inline =True) + +            table_class = "infolist" +            with Html("table", class_ = table_class) as table: +                section += table +                for person_handle in [family.get_father_handle(), family.get_mother_handle()]: +                    person = self.dbase_.get_person_from_handle(person_handle) +                    if person: +                        table +=
self.display_spouse(person, family, place_lat_long) + +                details =
self.display_family_details(family, place_lat_long) +                if details is not None: +                    table += details +        return section

etc ...


http://sourceforge.net/p/gramps/code/HEAD/tree//branches/maintenance/gramps34/src/plugins/webreport/NarrativeWeb.py?diff=20538

which sound also correct!

So, I do not know more (yet).




----- Mail original -----
De : doug <[hidden email]>
À : Gramps-developers mailing list <[hidden email]>
Cc :
Envoyé le : Mercredi 14 août 2013 12h58
Objet : [Gramps-devel] Family Maps don't work in Narrative Web Report

Family Maps have not been working properly in NarWeb for
some time now, though they were fine in earlier gramps
versions.  This was reported as bug #6813 a couple of months
ago.

It's not clear to me whether the bug is considered still
active or it's being overlooked because the relationship
report shows a RESOLVED bug.

What's the current situation? Is there any prospect of progress?

Doug

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Family Maps don't work in Narrative Web Report

jerome
In reply to this post by jerome

I misunderstood that you was calling Google Maps API ... :-[

If so, it seems rather something related to the refactoring and
backport (4.0 -> 3.4.3, 3.4.4, 3.4.5)? 

Around events list and family map:
 def display_family_relationships(self, family, place_lat_long).

I do not understand this comment: "This will be None if called from
Family pages, which do not create a Family Map". Do it mean that there
is multiple ways for generating family map?



Le mer. 14 août 2013 at 14:57,jerome <[hidden email]> a écrit :

>
>>  It's not clear to me whether the bug is considered still
>>
> active or it's being overlooked because the relationship
> report shows a RESOLVED bug.
>
> I tested this feature after having fixed a typo before Gramps 3.4.2:
> the related resolved bug.
> I tested Gramps 3.4.5 (4.0.x) and it still failed! => confirmed and
> not a regression: something else!
>
> Gramps 3.4.2 has been released on 2012.10.28
>
> http://sourceforge.net/p/gramps/code/HEAD/log/?path=/branches/maintenance/gramps34/src/plugins/webreport/NarrativeWeb.py
>
> It seems to be related to these changes:
>
> @@ -260,20 +301,27 @@ function initialize(){ var map = new
> OpenLayers.Map('place_canvas'); -    var wms = new
> OpenLayers.Layer.WMS( -      "OpenLayers WMS", -      
> "http://vmap0.tiles.osgeo.org/wms/vmap0", -      {'layers':'basic'});
> -    map.addLayer(wms); - -    map.setCenter(new OpenLayers.LonLat(0,
> 0), 0); +    var osm = new OpenLayers.Layer.OSM() +    
> map.addLayer(osm); +  +    var lonLat = new OpenLayers.LonLat(%s, %s)
> +        .transform( +            new
> OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984 +      
>       map.getProjectionObject() // to Spherical Mercator Projection +
>        ); +    var zoom =16; +  +    map.setCenter(lonLat, zoom); var
> markers = new OpenLayers.Layer.Markers("Markers"); +    
> markers.addMarker(new OpenLayers.Marker(lonLat));
> map.addLayer(markers); -      marker = new OpenLayers.Marker(new
> OpenLayers.LonLat(%s, %s); -      markers.addMarker(marker);  -      
> map.addControl(new
>  OpenLayers.Control.LayerSwitcher()); +    // add overview control +  
>   map.addControl(new OpenLayers.Control.OverviewMap()); + +    // add
> a layer switcher +    map.addControl(new
> OpenLayers.Control.LayerSwitcher()); }"""
>
> +    def display_family_relationships(self, family, place_lat_long):
> +        """ +        Displays a family's relationships ... + +      
>  @param: family -- the family to be displayed +        @param:
> place_lat_long -- for use in Family Map Pages. This will be None +    
>     if called from Family pages, which do not create a Family Map +  
>      """ +        with Html("div", class_ ="subsection", id
> ="families") as section: +            section += Html("h4",
> _("Families"), inline =True) + +            table_class = "infolist"
> +            with Html("table", class_ = table_class) as table: +    
>            section += table +                for person_handle in
> [family.get_father_handle(), family.get_mother_handle()]: +          
>          person = self.dbase_.get_person_from_handle(person_handle) +
>                    if person: +                        table +=
> self.display_spouse(person, family, place_lat_long) + +              
>  details =
>  self.display_family_details(family, place_lat_long) +                
> if details is not None: +                    table += details +      
>  return section
>
> etc ...
>
>
> http://sourceforge.net/p/gramps/code/HEAD/tree//branches/maintenance/gramps34/src/plugins/webreport/NarrativeWeb.py?diff=20538
>
> which sound also correct!
>
> So, I do not know more (yet).
>
>
>
>
> ----- Mail original -----
> De : doug <[hidden email]>
> À : Gramps-developers mailing list
> <[hidden email]>
> Cc :
> Envoyé le : Mercredi 14 août 2013 12h58
> Objet : [Gramps-devel] Family Maps don't work in Narrative Web Report
>
> Family Maps have not been working properly in NarWeb for
> some time now, though they were fine in earlier gramps
> versions.  This was reported as bug #6813 a couple of months
> ago.
>
> It's not clear to me whether the bug is considered still
> active or it's being overlooked because the relationship
> report shows a RESOLVED bug.
>
> What's the current situation? Is there any prospect of progress?
>
> Doug
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Gramps-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>
>


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Family Maps don't work in Narrative Web Report

jerome

Doug,


Maybe I also misunderstood the cause (or object) of this issue, but
does this simple change can fix your issue?


Index: plugins/webreport/NarrativeWeb.py
===================================================================
--- plugins/webreport/NarrativeWeb.py (révision 22869)
+++ plugins/webreport/NarrativeWeb.py (copie de travail)
@@ -5505,7 +5505,7 @@
                 individualdetail +=
self.display_ind_associations(assocs)
 
             # for use in family map pages...
- if len(place_lat_long):
+ if len(place_lat_long) > 1:
                 if self.report.options["familymappages"]:
                     # save of, string_io and cur_fname
before creating a new page
                     sof = of


It seems that it does not work when there is only one place reference
on the family map. If so, the simplier workaround can be to ignore
creation of family map when there is only one place referenced.

PS: does someone know what 'drop' means on 'Google family map layer'?
It is an option on the drop down list (gramps) but it displays nothing
("Family Links" and "Markers" are working).


Le jeu. 15 août 2013 at 13:32,Jerome <[hidden email]> a écrit :

>
> I misunderstood that you was calling Google Maps API ... :-[
>
> If so, it seems rather something related to the refactoring and
> backport (4.0 -> 3.4.3, 3.4.4, 3.4.5)? 
>
> Around events list and family map:
>  def display_family_relationships(self, family, place_lat_long).
>
> I do not understand this comment: "This will be None if called from
> Family pages, which do not create a Family Map". Do(Does) it mean
> that there
> is multiple ways for generating family map?
>
>
>
> Le mer. 14 août 2013 at 14:57,jerome <[hidden email]> a écrit :
>>  
>>>   It's not clear to me whether the bug is considered still
>>>  
>>>
>>  active or it's being overlooked because the relationship
>>  report shows a RESOLVED bug.
>>  
>>  I tested this feature after having fixed a typo before Gramps
>> 3.4.2:
>>  the related resolved bug.
>>  I tested Gramps 3.4.5 (4.0.x) and it still failed! => confirmed and
>>  not a regression: something else!
>>  
>>  Gramps 3.4.2 has been released on 2012.10.28
>>  
>>  
>> http://sourceforge.net/p/gramps/code/HEAD/log/?path=/branches/maintenance/gramps34/src/plugins/webreport/NarrativeWeb.py
>>  
>>  It seems to be related to these changes:
>>  
>>  @@ -260,20 +301,27 @@ function initialize(){ var map = new
>>  OpenLayers.Map('place_canvas'); -    var wms = new
>>  OpenLayers.Layer.WMS( -      "OpenLayers WMS", -      
>>  "http://vmap0.tiles.osgeo.org/wms/vmap0", -      
>> {'layers':'basic'});
>>  -    map.addLayer(wms); - -    map.setCenter(new
>> OpenLayers.LonLat(0,
>>  0), 0); +    var osm = new OpenLayers.Layer.OSM() +    
>>  map.addLayer(osm); +  +    var lonLat = new OpenLayers.LonLat(%s,
>> %s)
>>  +        .transform( +            new
>>  OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984 +    
>>  
>>        map.getProjectionObject() // to Spherical Mercator Projection
>> +
>>         ); +    var zoom =16; +  +    map.setCenter(lonLat, zoom);
>> var
>>  markers = new OpenLayers.Layer.Markers("Markers"); +    
>>  markers.addMarker(new OpenLayers.Marker(lonLat));
>>  map.addLayer(markers); -      marker = new OpenLayers.Marker(new
>>  OpenLayers.LonLat(%s, %s); -      markers.addMarker(marker);  -    
>>  
>>  map.addControl(new
>>   OpenLayers.Control.LayerSwitcher()); +    // add overview control
>> +  
>>    map.addControl(new OpenLayers.Control.OverviewMap()); + +    //
>> add
>>  a layer switcher +    map.addControl(new
>>  OpenLayers.Control.LayerSwitcher()); }"""
>>  
>>  +    def display_family_relationships(self, family,
>> place_lat_long):
>>  +        """ +        Displays a family's relationships ... + +    
>>  
>>   @param: family -- the family to be displayed +        @param:
>>  place_lat_long -- for use in Family Map Pages. This will be None +  
>>  
>>      if called from Family pages, which do not create a Family Map +
>>  
>>       """ +        with Html("div", class_ ="subsection", id
>>  ="families") as section: +            section += Html("h4",
>>  _("Families"), inline =True) + +            table_class =
>> "infolist"
>>  +            with Html("table", class_ = table_class) as table: +  
>>  
>>             section += table +                for person_handle in
>>  [family.get_father_handle(), family.get_mother_handle()]: +        
>>  
>>           person = self.dbase_.get_person_from_handle(person_handle)
>> +
>>                     if person: +                        table +=
>>  self.display_spouse(person, family, place_lat_long) + +            
>>  
>>   details =
>>   self.display_family_details(family, place_lat_long) +              
>>  
>>  if details is not None: +                    table += details +    
>>  
>>   return section
>>  
>>  etc ...
>>  
>>  
>>  
>> http://sourceforge.net/p/gramps/code/HEAD/tree//branches/maintenance/gramps34/src/plugins/webreport/NarrativeWeb.py?diff=20538
>>  
>>  which sound also correct!
>>  
>>  So, I do not know more (yet).
>>  
>>  
>>  
>>  
>>  ----- Mail original -----
>>  De : doug <[hidden email]>
>>  À : Gramps-developers mailing list
>>  <[hidden email]>
>>  Cc :
>>  Envoyé le : Mercredi 14 août 2013 12h58
>>  Objet : [Gramps-devel] Family Maps don't work in Narrative Web
>> Report
>>  
>>  Family Maps have not been working properly in NarWeb for
>>  some time now, though they were fine in earlier gramps
>>  versions.  This was reported as bug #6813 a couple of months
>>  ago.
>>  
>>  It's not clear to me whether the bug is considered still
>>  active or it's being overlooked because the relationship
>>  report shows a RESOLVED bug.
>>  
>>  What's the current situation? Is there any prospect of progress?
>>  
>>  Doug
>>  
>>  
>> ------------------------------------------------------------------------------
>>  Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>  It's a free troubleshooting tool designed for production.
>>  Get down to code-level detail for bottlenecks, with <2% overhead.
>>  Download for free and get started troubleshooting in minutes.
>>  
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>  _______________________________________________
>>  Gramps-devel mailing list
>>  [hidden email]
>>  https://lists.sourceforge.net/lists/listinfo/gramps-devel
>>  
>>  
>>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Gramps-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Family Maps don't work in Narrative Web Report

Doug
On 15/08/13 14:48, Jerome wrote:

>
> Doug,
>
>
> Maybe I also misunderstood the cause (or object) of this
> issue, but does this simple change can fix your issue?
>
>
> Index: plugins/webreport/NarrativeWeb.py
> ===================================================================
>
> --- plugins/webreport/NarrativeWeb.py    (révision 22869)
> +++ plugins/webreport/NarrativeWeb.py    (copie de travail)
> @@ -5505,7 +5505,7 @@
> Â  Â  Â  Â  Â  Â  Â  Â  Â individualdetail +=
> self.display_ind_associations(assocs)
> Â
> Â  Â  Â  Â  Â  Â  Â # for use in family map pages...
> - if len(place_lat_long):
> + if len(place_lat_long) > 1:
> Â  Â  Â  Â  Â  Â  Â  Â  Â if
> self.report.options["familymappages"]:
> Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â # save of, string_io and
> cur_fname before creating a new page
> Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â sof = of
>
>
> It seems that it does not work when there is only one place
> reference on the family map. If so, the simplier workaround
> can be to ignore creation of family map when there is only
> one place referenced.
>
> PS: does someone know what 'drop' means on 'Google family
> map layer'?
> It is an option on the drop down list (gramps) but it
> displays nothing ("Family Links" and "Markers" are working).
>
>
<snip>

Jerome,

No, it doesn't change anything. The same few individuals
have maps, the others nothing.

Doug


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel