Revision: 7113 Author: alexsh Date: 2009-08-05 21:39:21 +0000 (Wed, 05 Aug 2009)
Log Message: ----------- query.py: set useAPI default True..(query.php is removed for long times, not necessary to set it default)
Modified Paths: -------------- trunk/pywikipedia/query.py
Modified: trunk/pywikipedia/query.py =================================================================== --- trunk/pywikipedia/query.py 2009-08-05 21:25:39 UTC (rev 7112) +++ trunk/pywikipedia/query.py 2009-08-05 21:39:21 UTC (rev 7113) @@ -14,8 +14,7 @@ 'rvprop' :'user|timestamp|content', }
- print query.GetData(params, - useAPI = True, encodeTitle = False) + print query.GetData(params, encodeTitle = False)
""" # @@ -28,7 +27,7 @@
import wikipedia, simplejson, urllib, time
-def GetData(params, site = None, verbose = False, useAPI = False, retryCount = 5, encodeTitle = True, sysop = False, back_response = False): +def GetData(params, site = None, verbose = False, useAPI = True, retryCount = 5, encodeTitle = True, sysop = False, back_response = False): """Get data from the query api, and convert it into a data object """ if site is None: