https://bugzilla.wikimedia.org/show_bug.cgi?id=29640
--- Comment #6 from Ryan Kaldari <[email protected]> 2011-06-29 21:35:21 UTC --- The beauty of the ajax.js method is that it gives you a simple yes or no answer. There are many other cases as well in which the API user simply wants a true or false result rather than a tree of complex data to parse. This is one reason why so many Bot writers use 3rd party API frameworks to interact with MediaWiki rather than using our API directly. Perhaps one day we could implement an action=check API method that is just for doing simple checks that return boolean results. action=check&prop=filenameexists... action=check&prop=filehashexists... action=check&prop=useremailable... ...especially since most of the action=query methods have a weird way of expressing boolean values (empty string for true, undefined for false). -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
