<div dir="ltr">Not sure if this is what you want to do...<br><br>You are saying with this update that:<br><br>any:0 can link to en:12, any:1 can link to en:13, pt:102 can link to en:12, pt:103 can link to en:13, en:104 can link to any:0 and pt:102, en:105 can link to any:1 and pt:103<br>
<br>The following would allow any:0 to link to en:12, any:1 to link to en:13 as well as en:12 to link to any:0, and en:13 to link to any:1<br><br> self.crossnamespace[0] = {<br> '_default': {<br>
'en': [12],<br> }<br> }<br> self.crossnamespace[1] = {<br> '_default': {<br> 'en': [13],<br> }<br> }<br> self.crossnamespace[12] = {<br>
'en': {<br> '_default': [0],<br> }<br> }<br> self.crossnamespace[13] = {<br>
'en': {<br>
'_default': [0],<br>
}<br>
}<br>
<br>If you want en:104 linking to any:0 and pt:102 as well as en:105 link to any:1 and pt:103, you can add the following as well:<br><br> self.crossnamespace[102] = {<br> 'pt': {<br> 'en': [0, 104],<br>
}<br> }<br> self.crossnamespace[103] = {<br> 'pt': {<br> 'en': [1, 105],<br> }<br> }<br> self.crossnamespace[104] = {<br> 'en': {<br>
'_default': [0],<br> 'pt': [0, 102]<br> }<br> }<br> self.crossnamespace[105] = {<br>
'en': {<br>
'_default': [1],<br>
'pt': [1, 103]<br>
}<br>
}<br>
<br>best regards,<br>Stig Meireles Johansen<br><br><div class="gmail_quote">On Thu, Jul 24, 2008 at 9:52 PM, <<a href="mailto:nicdumz@svn.wikimedia.org">nicdumz@svn.wikimedia.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Revision: 5757<br>
Author: nicdumz<br>
Date: 2008-07-24 19:52:06 +0000 (Thu, 24 Jul 2008)<br>
<br>
Log Message:<br>
-----------<br>
Adding crossnamespace support to and from en:Help:<br>
( see for example <a href="http://en.wikipedia.org/wiki/Help:IPA_for_Italian" target="_blank">http://en.wikipedia.org/wiki/Help:IPA_for_Italian</a> , equivalent of <a href="http://it.wikipedia.org/wiki/Fonologia_dell%27italiano" target="_blank">http://it.wikipedia.org/wiki/Fonologia_dell%27italiano</a> and <a href="http://fr.wikipedia.org/wiki/Alphabet_phon%C3%A9tique_international_pour_l%27italien" target="_blank">http://fr.wikipedia.org/wiki/Alphabet_phon%C3%A9tique_international_pour_l%27italien</a> )<br>
<br>
Modified Paths:<br>
--------------<br>
trunk/pywikipedia/families/wikipedia_family.py<br>
<br>
Modified: trunk/pywikipedia/families/wikipedia_family.py<br>
===================================================================<br>
--- trunk/pywikipedia/families/wikipedia_family.py 2008-07-24 19:48:25 UTC (rev 5756)<br>
+++ trunk/pywikipedia/families/wikipedia_family.py 2008-07-24 19:52:06 UTC (rev 5757)<br>
@@ -841,24 +841,27 @@<br>
'_default': {<br>
'pt': [102],<br>
'als': [104],<br>
+ 'en': [12],<br>
'es': [104],<br>
'fr': [104],<br>
- 'lt': [104]<br>
+ 'lt': [104],<br>
}<br>
}<br>
self.crossnamespace[1] = {<br>
'_default': {<br>
'pt': [103],<br>
'als': [105],<br>
+ 'en': [13],<br>
'es': [105],<br>
'fr': [105],<br>
- 'lt': [105]<br>
+ 'lt': [105],<br>
}<br>
}<br>
self.crossnamespace[102] = {<br>
'pt': {<br>
'_default': [0],<br>
'als': [0, 104],<br>
+ 'en': [0, 12],<br>
'es': [0, 104],<br>
'fr': [0, 104],<br>
'lt': [0, 104]<br>
@@ -869,6 +872,7 @@<br>
'_default': [1],<br>
'als': [1, 105],<br>
'es': [1, 105],<br>
+ 'en': [1, 13],<br>
'fr': [1, 105],<br>
'lt': [1, 105]<br>
}<br>
@@ -878,6 +882,10 @@<br>
'_default': [0],<br>
'pt': [0, 102]<br>
},<br>
+ 'en': {<br>
+ '_default': [0],<br>
+ 'pt': [0, 102]<br>
+ },<br>
'es': {<br>
'_default': [0],<br>
'pt': [0, 102]<br>
@@ -896,6 +904,10 @@<br>
'_default': [1],<br>
'pt': [0, 103]<br>
},<br>
+ 'en': {<br>
+ '_default': [1],<br>
+ 'pt': [0, 103]<br>
+ },<br>
'es': {<br>
'_default': [1],<br>
'pt': [0, 103]<br>
<br>
<br>
<br>
_______________________________________________<br>
Pywikipedia-l mailing list<br>
<a href="mailto:Pywikipedia-l@lists.wikimedia.org">Pywikipedia-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l</a><br>
</blockquote></div><br></div>