HiI have changed ‘1.16.0’ for ‘pass’ or for ‘’And still same error line 152.RegardsCobraFrom: BinárisSent: Thursday, December 23, 2010 2:35 PMSubject: Re: [Pywikipedia-l] setting my custom bot for my ncdb wikiFile "D:\development\pymw\families\ncdb_family.py", line 152def version(self, code):
^
IndentationError: expected an indented block
Look, I found the error for you in the pastebin.
For some reasons, the numbering begins from 1 after copying, but it is at the given place. The previous function contains ONLY comments, therefore it is not accepted and you get an indentation error. But the real error is not in line 152, it is in function apipath, which should contain at least one not-commented line. If you are sure that all this must be commented, then put a "pass" (empty instruction) in the apipath function, but I think that a function should return some value under any circumstances, that's why it is a function.
def apipath(self, code): # raise NotImplementedError, "%s wiki family does not support api.php" % self.name # return '%s/api.php' % self.scriptpath(code) # Which version of MediaWiki is used? REQUIRED def version(self, code): # Replace with the actual version being run on your wiki return '1.16.0'
--
Bináris
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l