Home | Trees | Index | Help |
|
---|
Package pywikipedia :: Module category :: Class CategoryDatabase |
|
Method Summary | |
---|---|
__init__(self,
rebuild,
filename)
| |
Saves the contents of the dictionaries superclassDB and catContentDB to disk. | |
For a given category, return a list of Pages for all its articles. | |
For a given supercategory, return a list of Categorys for all its subcategories. | |
getSupercats(self,
subcat)
| |
rebuild(self)
|
Method Details |
---|
dump(self, filename='category.dump.bz2')Saves the contents of the dictionaries superclassDB and catContentDB to disk. |
getArticles(self, cat)For a given category, return a list of Pages for all its articles. Saves this list in a temporary database so that it won't be loaded from the server next time it's required. |
getSubcats(self, supercat)For a given supercategory, return a list of Categorys for all its subcategories. Saves this list in a temporary database so that it won't be loaded from the server next time it's required. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Jul 03 17:07:38 2005 | http://epydoc.sf.net |