Revision: 7059 Author: alexsh Date: 2009-07-14 07:37:25 +0000 (Tue, 14 Jul 2009)
Log Message: ----------- *config.py: preset use_api for run query.getData in all action *family.py: Fix: nice_get_address not use nicepath.
Modified Paths: -------------- trunk/pywikipedia/config.py trunk/pywikipedia/family.py
Modified: trunk/pywikipedia/config.py =================================================================== --- trunk/pywikipedia/config.py 2009-07-14 07:32:04 UTC (rev 7058) +++ trunk/pywikipedia/config.py 2009-07-14 07:37:25 UTC (rev 7059) @@ -76,6 +76,10 @@ # Login using the API. This is less likely to break. use_api_login = False
+# Enable data recieve from all avalible API. + +use_api = False + # Get the names of all known families, and initialize # with empty dictionaries import wikipediatools as _wt
Modified: trunk/pywikipedia/family.py =================================================================== --- trunk/pywikipedia/family.py 2009-07-14 07:32:04 UTC (rev 7058) +++ trunk/pywikipedia/family.py 2009-07-14 07:37:25 UTC (rev 7059) @@ -3600,7 +3600,7 @@
# The URL to get a page, in the format indexed by Google. def nice_get_address(self, code, name): - return '/wiki/%s' % (name) + return '%s%s' % (self.nicepath(code), name)
def edit_address(self, code, name): return '%s?title=%s&action=edit&useskin=monobook' % (self.path(code), name)