Exemple #1
0
 def __init__(self, site, name, info=None, namespace=None):
     page.Page.__init__(self, site, name, info)
     kwargs = {}
     kwargs.update((compatibility.cmtitle(self, self.site.require(1, 12, raise_error=False), prefix='gcm'), ))
     if namespace:
         kwargs['gcmnamespace'] = namespace
     GeneratorList.__init__(self, site, 'categorymembers', 'cm', **kwargs)
Exemple #2
0
	def members(self, prop = 'ids|title', namespace = None, sort = 'sortkey', 
			dir = 'asc', start = None, end = None, generator = True):
		prefix = self.get_prefix('cm', generator)
		kwargs = dict(self.generate_kwargs(prefix, prop = prop, namespace = namespace,
			sort = sort, dir = dir, start = start, end = end, *(compatibility.cmtitle(
			self, self.site.require(1, 12, raise_error = False)), )))
		return self.get_list(generator)(self.site, 'categorymembers', 'cm', **kwargs)
Exemple #3
0
	def members(self, prop = 'ids|title', namespace = None, sort = 'sortkey', 
			dir = 'asc', start = None, end = None, generator = True):
		prefix = self.get_prefix('cm', generator)
		kwargs = dict(self.generate_kwargs(prefix, prop = prop, namespace = namespace,
			sort = sort, dir = dir, start = start, end = end, *(compatibility.cmtitle(
			self, self.site.require(1, 12, raise_error = False)), )))
		return self.get_list(generator)(self.site, 'categorymembers', 'cm', **kwargs)
Exemple #4
0
	def __init__(self, site, name, info = None, namespace = None):
		page.Page.__init__(self, site, name, info)
		kwargs = {}
		kwargs.update((compatibility.cmtitle(self, self.site.require(
			1, 12, raise_error = False), prefix = 'gcm'), ))
		if namespace: kwargs['gcmnamespace'] = namespace
		GeneratorList.__init__(self, site, 'categorymembers', 'cm', **kwargs)