Wasn't sure how to contact you on ToolServer so I figured this would be the next best place. The script doesn't appear to be working.
./dabfinder.py Web pywikipedia --> --> <type 'exceptions.NameError'> Python 2.5.2: /usr/bin/python Thu Jan 1 00:07:42 2009 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /home/dispenser/public_html/cgi-bin/dabfinder.py in () 130 wikipedia.startContent(form=False) 131 main() 132 finally: 133 wikipedia.endContent(replag=replag() ) 134 wikipedia.stopme() wikipedia = <module 'wikipedia' from '/home/dispenser/public_html/cgi-bin/wikipedia.pyc'>, wikipedia.endContent = <function endContent at 0xb0b230>, replag = <function replag at 0xaf7ed8> /home/dispenser/public_html/cgi-bin/dabfinder.py in replag() 21 """ Lazy man's Replag, determines the date of the newest entry 22 """ 23 c = db.cursor() 24 c.execute("SELECT time_to_sec(timediff(now(),rev_timestamp)) as replag FROM revision ORDER BY rev_timestamp DESC LIMIT 1") 25 return c.fetchone()[0] c undefined, db undefined <type 'exceptions.NameError'>: global name 'db' is not defined args = ("global name 'db' is not defined",) message = "global name 'db' is not defined"
Thanks for such a useful tool! §hep • ¡Talk to me! 00:11, 1 January 2009 (UTC)
Instead of going alphabetically, could you arrange the tool to list dab link be section header? It would make life a lot easier. TomStar81 ( Talk) 04:39, 8 January 2009 (UTC)
When I apply the tool to Daylight saving time, the result says the article links to the disambiguation page DST (disambiguation). But this is done inside a dablink hatnote:
{{About|daylight saving time in general|DST in a specific location|Daylight saving time around the world|other uses of "DST"|DST (disambiguation)|other uses of "summer time"|Summer time (disambiguation)}}
The tool is supposed to ignore links from {{ about}} to dabs, right? It currently is ignoring the link to Summer time (disambiguation) so my hypothesis is that the tool has a limit of ignoring at most one such dab. It should ignore them all. Eubulides ( talk) 19:35, 7 October 2009 (UTC)
How about including an edit summary that we can use on the articles after fixing the links to dabs? Something like, "Fixed disambiguation links using Dablinks." It'd be nice to raise awareness of this tool. Mahanga Talk 18:03, 20 October 2009 (UTC)
Hello. I started to write a userscript that would call your nice tool with callback parameter. Unfortunately, there seems to be a bug with non-Latin characters in template names. When I try to get http://toolserver.org/~dispenser/cgi-bin/dablinks.py?format=json&page=ru:KDE it outputs the error page with the following data inside:
... <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xd0 in position 56: ordinal not in range(128) args = ('ascii', '{"ns":0, "title":"Harmony", "linksback": 0, "template":"\xd0\x9d\xd0\xb5\xd0\xbe\xd0\xb4\xd0\xbd\xd0\xbe\xd0\xb7\xd0\xbd\xd0\xb0\xd1\x87\xd0\xbd\xd0\xbe\xd1\x81\xd1\x82\xd1\x8c"}', 56, 57, 'ordinal not in range(128)') encoding = 'ascii' end = 57 ...
where "template" value exactly corresponds to UTF8 representation of the template name ru:template:Неоднозначность (our version of {{ disambig}}) which is inside ru:Harmony page. Could you please take a look and hopefully fix this issue? Thank you. — AlexSm 17:53, 26 October 2009 (UTC)
I am completely failing to understand how User:Dispenser/Dablinks is telling me how to resolved the dabs. Perhaps it is intended for someone with a deeper background than mine. Jim.henderson ( talk) 19:43, 14 March 2010 (UTC)
Can you make it so I can save from the tool, instead of redirecting to the page to save, and so it stays in the program. After saving, I have to go to my user page to refind the link for the tool. CTJF83 chat 19:30, 18 March 2010 (UTC)
A counter-productive behavior of the bot would be explained if it were set up in light of a misconception. That misconception is
The truth is that there are many Rdr pages with the suffix, always pointing to a Dab with the unsuffixed title. For instance, Jerk (disambiguation) is a Rdr to the Dab pg Jerk, since there is no topic that would be a primary topic for the title "Jerk". The purpose of this is described at WP:Dab#Links to disambiguation pages, and permits countering the above misconception with
By failing to respect the plain intent of editors who place lks to pages so suffixed, the tool misleads users by suggesting that such links either are never valid, or are so rarely valid that the plain intention should not be accepted at face value. I'm not sure that that matters when such a link appears within a prose passage, but they are so common within Dab pages (usually in the "See also" section) and some other kinds of lists that such occurrences cannot reasonably be lumped together with links to Dabs without that suffix. IMO, suggestions to consider "fixing" links from Dab pages to "disambiguation"-suffixed pages (whether Dabs or Rdrs to Dabs) should not ever be displayed on the corresponding talk pages. I also think it would probably be better to never suggest on talk pages the "fixing" of links to "disambiguation"-suffixed pages, than to list them when they appear in See-also sections or in non-prose portions of {{
SIA}} pages.
That being said, i found the tool's talk page annotation quite useful in the last 6 hours of my editing, and appreciate its creation!
--
Jerzy•
t 07:11, 27 May 2010 (UTC)
Your tool is listing circular redirects for this article which don't exist. (Or at least I can't find them.) Help? — D'Ranged 1 talk 06:26, 3 May 2011 (UTC)
Dabsolver incorrectly reports the section link in [[Royal National Theatre#National Theatre Studio|RNT Studio]] as invalid when it is fine (see RNT Studio) and unhelpfully attempts to change it to [[Royal National Theatre|RNT Studio]] without even offering a choice about whether to change this. I therefore had to abandon using Dabsolver.
Jim Craigie ( talk) 12:56, 11 November 2011 (UTC)
First one is mundane: why is this calling the template a disambig?
Second, I've noticed that if you aren't logged in, it can take a long time for Dab solver to load. Any more, when I see it hanging, I just open an empty link to Dabfix, log in, and reload Dab solver. Works for me, but could be a problem for inexperienced users. -- JaGa talk 15:55, 11 November 2011 (UTC)
wpEditToken
and only echos it for the edit box (and enables "Save Page").Check this out: [1]
But if you look at the article, it does link to the disambiguation page Will Brown. -- JaGa talk 20:13, 15 November 2011 (UTC)
hi.
it turns out there is a problem with the tool when used in "json/callback" mode, when one of the articles it tries to return contains double quotes in its name.
you can see an example in this link, that returns as one of the disambiguationlinks he:ש"ס.
the problem is the generated callback (note the title of first "disambiguationlinks"):
dabLinksAjaxCheck({"query":{"pages":{"0":{"pageid":null, "ns":0, "title":"צבי הירשהורן", "disambiguationlinks":[{"ns":0, "title":"ש"ס", "linksback": 0, "template":"פירושונים"},{"ns":0, "title":"אהבת ישראל", "linksback": 0, "template":"פירושונים"},{"ns":0, "title":"ישראל פרידמן", "linksback": 0, "template":"פירושונים"}]}}}})
specifically, note: "title":"ש"ס". this cause the callback to fail with "Uncaught SyntaxError: Unexpected identifier"
quotes as part of an article name are pretty common on hewiki, because in hebrew quotes are used to denote acronyms.
thanks, peace - קיפודנחש ( talk) 18:08, 18 December 2011 (UTC)
tools:~dispenser/cgi-bin/dablinks.py?ref=simple:ABC has problems with simple:, it seems like it doesn't even know what simple: is.
In a unrelated note, is there a way to exclude namespaces, or only concentrate on article space? Josh Parris 04:06, 27 March 2012 (UTC)
Hello, Dispenser. I see here a section about lack of demand, written in 2009. Now I brought some demand to you: your tool works good in russian wikipedia, but refuses to work in Templates namespace, which is called "Шаблон" in russian. Script returns "No dab links found" or smth like that, and if I move template's code to a namespace #0, then it works fine. Could you please fix it? In ruwiki we have alot of disambig links in templates. -- Rave ( talk) 20:24, 5 January 2013 (UTC)
I thought dablinks was updated constantly or at least daily. When running the dab for Sandwich, it's showing links that don't exist. Namely, the redirect Grilled cheese redirects to Cheese sandwich, not to Grilled cheese (disambiguation) as indicated by dablinks. And there's no backlink to Sarnie, either. Why would the tool show this? Ibadibam ( talk) 00:01, 20 April 2013 (UTC)
Hi Dispenser. I love dablinks. Any way of limiting the tool to main namespace only (on Czech Wikipedia)? Regards Littledogboy ( talk) 16:07, 19 June 2013 (UTC)
The link in summary - as seen in cawiki - points to https://toolserver.org/~dispenser/view/Dab_solver , wich is outdated. It should be updated to the present tool.
Anyway, this tool is great.-- Pere prlpz ( talk) 22:46, 14 December 2014 (UTC)
I'm trying to use the tool to sort dablinks on my watchlist. I'm clicking on fix and then selecting the relevant option from the drop down list. I then save my changes but the tool then appears to be blanking the article up to the Dablink I've just tried to fix. Happened here and here. Any ideas? 5 albert square ( talk) 16:40, 24 November 2015 (UTC)
Above it was mentioned that on the landing page, there were a checkbox to turn off the common fixes. I don't see that checkbox. This is the landing page, right? I'm viewing the page on a tablet PC. -- Distelfinck ( talk) 18:50, 14 December 2015 (UTC)
Hi everyone,
Dablinks is not working for me?
I go on to the tool, click Dab solver and click Watchlist Dablinks. Under there, ITV is showing as a disambiguation page, I click on Fix list and the following error appears:
No webservice
The URI you have requested, /dplbot/dab_fix_list.php?title=ITV&client=watchlist_points, is not currently serviced.
If you have reached this page from somewhere else... This URI is part of the dplbot tool, maintained by Russell Blau and JaGa.
That tool might not have a web interface, or it may currently be disabled.
If you're pretty sure this shouldn't be an error, you may wish to notify the tool's maintainers (above) about the error and how you ended up here.
If you maintain this tool You have not enabled a web service for your tool, or it has stopped working because of a fatal error. You may wish to check your logs or common causes for errors in the help documentation
Any ideas?-- 5 albert square ( talk) 21:14, 21 January 2016 (UTC)
Wasn't sure how to contact you on ToolServer so I figured this would be the next best place. The script doesn't appear to be working.
./dabfinder.py Web pywikipedia --> --> <type 'exceptions.NameError'> Python 2.5.2: /usr/bin/python Thu Jan 1 00:07:42 2009 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /home/dispenser/public_html/cgi-bin/dabfinder.py in () 130 wikipedia.startContent(form=False) 131 main() 132 finally: 133 wikipedia.endContent(replag=replag() ) 134 wikipedia.stopme() wikipedia = <module 'wikipedia' from '/home/dispenser/public_html/cgi-bin/wikipedia.pyc'>, wikipedia.endContent = <function endContent at 0xb0b230>, replag = <function replag at 0xaf7ed8> /home/dispenser/public_html/cgi-bin/dabfinder.py in replag() 21 """ Lazy man's Replag, determines the date of the newest entry 22 """ 23 c = db.cursor() 24 c.execute("SELECT time_to_sec(timediff(now(),rev_timestamp)) as replag FROM revision ORDER BY rev_timestamp DESC LIMIT 1") 25 return c.fetchone()[0] c undefined, db undefined <type 'exceptions.NameError'>: global name 'db' is not defined args = ("global name 'db' is not defined",) message = "global name 'db' is not defined"
Thanks for such a useful tool! §hep • ¡Talk to me! 00:11, 1 January 2009 (UTC)
Instead of going alphabetically, could you arrange the tool to list dab link be section header? It would make life a lot easier. TomStar81 ( Talk) 04:39, 8 January 2009 (UTC)
When I apply the tool to Daylight saving time, the result says the article links to the disambiguation page DST (disambiguation). But this is done inside a dablink hatnote:
{{About|daylight saving time in general|DST in a specific location|Daylight saving time around the world|other uses of "DST"|DST (disambiguation)|other uses of "summer time"|Summer time (disambiguation)}}
The tool is supposed to ignore links from {{ about}} to dabs, right? It currently is ignoring the link to Summer time (disambiguation) so my hypothesis is that the tool has a limit of ignoring at most one such dab. It should ignore them all. Eubulides ( talk) 19:35, 7 October 2009 (UTC)
How about including an edit summary that we can use on the articles after fixing the links to dabs? Something like, "Fixed disambiguation links using Dablinks." It'd be nice to raise awareness of this tool. Mahanga Talk 18:03, 20 October 2009 (UTC)
Hello. I started to write a userscript that would call your nice tool with callback parameter. Unfortunately, there seems to be a bug with non-Latin characters in template names. When I try to get http://toolserver.org/~dispenser/cgi-bin/dablinks.py?format=json&page=ru:KDE it outputs the error page with the following data inside:
... <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xd0 in position 56: ordinal not in range(128) args = ('ascii', '{"ns":0, "title":"Harmony", "linksback": 0, "template":"\xd0\x9d\xd0\xb5\xd0\xbe\xd0\xb4\xd0\xbd\xd0\xbe\xd0\xb7\xd0\xbd\xd0\xb0\xd1\x87\xd0\xbd\xd0\xbe\xd1\x81\xd1\x82\xd1\x8c"}', 56, 57, 'ordinal not in range(128)') encoding = 'ascii' end = 57 ...
where "template" value exactly corresponds to UTF8 representation of the template name ru:template:Неоднозначность (our version of {{ disambig}}) which is inside ru:Harmony page. Could you please take a look and hopefully fix this issue? Thank you. — AlexSm 17:53, 26 October 2009 (UTC)
I am completely failing to understand how User:Dispenser/Dablinks is telling me how to resolved the dabs. Perhaps it is intended for someone with a deeper background than mine. Jim.henderson ( talk) 19:43, 14 March 2010 (UTC)
Can you make it so I can save from the tool, instead of redirecting to the page to save, and so it stays in the program. After saving, I have to go to my user page to refind the link for the tool. CTJF83 chat 19:30, 18 March 2010 (UTC)
A counter-productive behavior of the bot would be explained if it were set up in light of a misconception. That misconception is
The truth is that there are many Rdr pages with the suffix, always pointing to a Dab with the unsuffixed title. For instance, Jerk (disambiguation) is a Rdr to the Dab pg Jerk, since there is no topic that would be a primary topic for the title "Jerk". The purpose of this is described at WP:Dab#Links to disambiguation pages, and permits countering the above misconception with
By failing to respect the plain intent of editors who place lks to pages so suffixed, the tool misleads users by suggesting that such links either are never valid, or are so rarely valid that the plain intention should not be accepted at face value. I'm not sure that that matters when such a link appears within a prose passage, but they are so common within Dab pages (usually in the "See also" section) and some other kinds of lists that such occurrences cannot reasonably be lumped together with links to Dabs without that suffix. IMO, suggestions to consider "fixing" links from Dab pages to "disambiguation"-suffixed pages (whether Dabs or Rdrs to Dabs) should not ever be displayed on the corresponding talk pages. I also think it would probably be better to never suggest on talk pages the "fixing" of links to "disambiguation"-suffixed pages, than to list them when they appear in See-also sections or in non-prose portions of {{
SIA}} pages.
That being said, i found the tool's talk page annotation quite useful in the last 6 hours of my editing, and appreciate its creation!
--
Jerzy•
t 07:11, 27 May 2010 (UTC)
Your tool is listing circular redirects for this article which don't exist. (Or at least I can't find them.) Help? — D'Ranged 1 talk 06:26, 3 May 2011 (UTC)
Dabsolver incorrectly reports the section link in [[Royal National Theatre#National Theatre Studio|RNT Studio]] as invalid when it is fine (see RNT Studio) and unhelpfully attempts to change it to [[Royal National Theatre|RNT Studio]] without even offering a choice about whether to change this. I therefore had to abandon using Dabsolver.
Jim Craigie ( talk) 12:56, 11 November 2011 (UTC)
First one is mundane: why is this calling the template a disambig?
Second, I've noticed that if you aren't logged in, it can take a long time for Dab solver to load. Any more, when I see it hanging, I just open an empty link to Dabfix, log in, and reload Dab solver. Works for me, but could be a problem for inexperienced users. -- JaGa talk 15:55, 11 November 2011 (UTC)
wpEditToken
and only echos it for the edit box (and enables "Save Page").Check this out: [1]
But if you look at the article, it does link to the disambiguation page Will Brown. -- JaGa talk 20:13, 15 November 2011 (UTC)
hi.
it turns out there is a problem with the tool when used in "json/callback" mode, when one of the articles it tries to return contains double quotes in its name.
you can see an example in this link, that returns as one of the disambiguationlinks he:ש"ס.
the problem is the generated callback (note the title of first "disambiguationlinks"):
dabLinksAjaxCheck({"query":{"pages":{"0":{"pageid":null, "ns":0, "title":"צבי הירשהורן", "disambiguationlinks":[{"ns":0, "title":"ש"ס", "linksback": 0, "template":"פירושונים"},{"ns":0, "title":"אהבת ישראל", "linksback": 0, "template":"פירושונים"},{"ns":0, "title":"ישראל פרידמן", "linksback": 0, "template":"פירושונים"}]}}}})
specifically, note: "title":"ש"ס". this cause the callback to fail with "Uncaught SyntaxError: Unexpected identifier"
quotes as part of an article name are pretty common on hewiki, because in hebrew quotes are used to denote acronyms.
thanks, peace - קיפודנחש ( talk) 18:08, 18 December 2011 (UTC)
tools:~dispenser/cgi-bin/dablinks.py?ref=simple:ABC has problems with simple:, it seems like it doesn't even know what simple: is.
In a unrelated note, is there a way to exclude namespaces, or only concentrate on article space? Josh Parris 04:06, 27 March 2012 (UTC)
Hello, Dispenser. I see here a section about lack of demand, written in 2009. Now I brought some demand to you: your tool works good in russian wikipedia, but refuses to work in Templates namespace, which is called "Шаблон" in russian. Script returns "No dab links found" or smth like that, and if I move template's code to a namespace #0, then it works fine. Could you please fix it? In ruwiki we have alot of disambig links in templates. -- Rave ( talk) 20:24, 5 January 2013 (UTC)
I thought dablinks was updated constantly or at least daily. When running the dab for Sandwich, it's showing links that don't exist. Namely, the redirect Grilled cheese redirects to Cheese sandwich, not to Grilled cheese (disambiguation) as indicated by dablinks. And there's no backlink to Sarnie, either. Why would the tool show this? Ibadibam ( talk) 00:01, 20 April 2013 (UTC)
Hi Dispenser. I love dablinks. Any way of limiting the tool to main namespace only (on Czech Wikipedia)? Regards Littledogboy ( talk) 16:07, 19 June 2013 (UTC)
The link in summary - as seen in cawiki - points to https://toolserver.org/~dispenser/view/Dab_solver , wich is outdated. It should be updated to the present tool.
Anyway, this tool is great.-- Pere prlpz ( talk) 22:46, 14 December 2014 (UTC)
I'm trying to use the tool to sort dablinks on my watchlist. I'm clicking on fix and then selecting the relevant option from the drop down list. I then save my changes but the tool then appears to be blanking the article up to the Dablink I've just tried to fix. Happened here and here. Any ideas? 5 albert square ( talk) 16:40, 24 November 2015 (UTC)
Above it was mentioned that on the landing page, there were a checkbox to turn off the common fixes. I don't see that checkbox. This is the landing page, right? I'm viewing the page on a tablet PC. -- Distelfinck ( talk) 18:50, 14 December 2015 (UTC)
Hi everyone,
Dablinks is not working for me?
I go on to the tool, click Dab solver and click Watchlist Dablinks. Under there, ITV is showing as a disambiguation page, I click on Fix list and the following error appears:
No webservice
The URI you have requested, /dplbot/dab_fix_list.php?title=ITV&client=watchlist_points, is not currently serviced.
If you have reached this page from somewhere else... This URI is part of the dplbot tool, maintained by Russell Blau and JaGa.
That tool might not have a web interface, or it may currently be disabled.
If you're pretty sure this shouldn't be an error, you may wish to notify the tool's maintainers (above) about the error and how you ended up here.
If you maintain this tool You have not enabled a web service for your tool, or it has stopped working because of a fatal error. You may wish to check your logs or common causes for errors in the help documentation
Any ideas?-- 5 albert square ( talk) 21:14, 21 January 2016 (UTC)