Revision: 7029 Author: alexsh Date: 2009-07-07 20:14:05 +0000 (Tue, 07 Jul 2009)
Log Message: ----------- UpInfo: Manually update wesolve family
Modified Paths: -------------- trunk/pywikipedia/families/wesolve_family.py
Modified: trunk/pywikipedia/families/wesolve_family.py =================================================================== --- trunk/pywikipedia/families/wesolve_family.py 2009-07-07 19:16:16 UTC (rev 7028) +++ trunk/pywikipedia/families/wesolve_family.py 2009-07-07 20:14:05 UTC (rev 7029) @@ -12,66 +12,27 @@ def __init__(self): family.Family.__init__(self) self.name = 'wesolve' - self.langs = {} - for lang in ['en','it']: - self._addlang(lang, - location = 'wesolveitnet.com', - namespaces = {-2: u'Media', - -1: u'Special', - 0: None, - 1: u'Talk', - 2: u'User', - 3: u'User talk', - 4: u'MozillaWiki', - 5: u'MozillaWiki talk', - 6: u'Image', - 7: u'Image talk', - 8: u'MediaWiki', - 9: u'MediaWiki talk', - 10: u'Template', - 11: u'Template talk', - 12: u'Help', - 13: u'Help talk', - 14: u'Category', - 15: u'Category talk'}) + self.langs = { + 'wesolve': None, + }
- def version(self, code): - return "1.4" + self.namespaces[4] = { + '_default': u'Wordsandmore', + } + self.namespaces[5] = { + '_default': u'Wordsandmore talk', + }
- def put_address(self, code, name): - return '/wsiwiki/index.php?title=%s&action=submit'%name
- def get_address(self, code, name): - return '/wsiwiki/index.php?title='+name+"&redirect=no" + def version(self, code): + return "1.5.7"
- def references_address(self, code, name): - return ("/wsiwiki/index.php?title=%s:Whatlinkshere&target=%s&limit=%d" - % (self.special_namespace_url(code), name, - config.special_page_limit)) + def scriptpath(self, code): + return ''
- def upload_address(self, code): - raise UploadDisabled + def hostname(self, code): + return 'wordsandmore.org'
- def allmessages_address(self, code): - return ("/wsiwiki/index.php?title=%s:Allmessages&ot=html" % - self.special_namespace_url(code)) - - def login_address(self, code): - return ('/wsiwiki/index.php?title=%s:Userlogin&action=submit' % - self.special_namespace_url(code)) - - def move_address(self, code): - return ('/wsiwiki/index.php?title=%s:Movepage&action=submit' % - self.special_namespace_url(code)) - - def delete_address(self, code, name): - return '/wsiwiki/index.php?title=%s&action=delete' % name - - def version_history_address(self, code, name): - return ('/wsiwiki/index.php?title=%s&action=history&limit=%d' - % (name, config.special_page_limit)) - - def export_address(self, code): - return ('/wsiwiki/index.php?title=%s:Export' - % self.special_namespace_url(code)) - + def apipath(self, code): + raise NotImplementedError( + "The wesolve family does not support api.php")
pywikipedia-svn@lists.wikimedia.org