2010/10/11 Brad Jorsch
<b-jorsch@alum.northwestern.edu>
On Sun, Oct 10, 2010 at 07:50:43PM -0400, Roy Smith wrote:
> Lacking such intuition, is
> there any better mechanism in the API other than an exhaustive search
> through the category tree?
This is the output of my python prompt working by bot into it:wikisource (where: Poemi and Romanzi are two category names; list_in_cat is a simple python routine which returns the list of articles into a category; Georgiche is the name of a page, a poem):
>>> "Georgiche" in list_in_cat("Poemi")
Getting [[Categoria:Poemi]]...
True
>>> "Georgiche" in list_in_cat("Romanzi")
Getting [[Categoria:Romanzi]]...
False
>>>
Do you need something like this?
Alex